Package org.opencms.relations
Class CmsRelationPublishValidator
java.lang.Object
org.opencms.relations.CmsRelationPublishValidator
Util class to find broken links in a bundle of resources to be published.
- Since:
- 6.5.5
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
List<CmsRelation>> The internal computed broken relations map. -
Constructor Summary
ConstructorDescriptionCmsRelationPublishValidator
(CmsObject cms, CmsPublishList publishList) Creates a new helper object. -
Method Summary
Modifier and TypeMethodDescriptiongetInfoEntry
(String resourceName) Returns the information bean for the given entry.boolean
isEmpty()
If no relation would be broken deleting the given resources.keySet()
values()
-
Field Details
-
m_brokenRelations
The internal computed broken relations map.
-
-
Constructor Details
-
CmsRelationPublishValidator
Creates a new helper object.- Parameters:
cms
- the cms objectpublishList
- a publish list to validate
-
-
Method Details
-
getInfoEntry
Returns the information bean for the given entry.- Parameters:
resourceName
- the entry name- Returns:
- the information bean for the given entry
-
isEmpty
If no relation would be broken deleting the given resources.- Returns:
true
if no relation would be broken deleting the given resources
-
keySet
- Returns:
- the broken relations key set
- See Also:
-
values
- Returns:
- the broken relations value set
- See Also:
-