Package org.opencms.relations
Class CmsRelationDeleteValidator
java.lang.Object
org.opencms.relations.CmsRelationDeleteValidator
Util class to find broken links in a bundle of resources to be deleted.
- Since:
- 6.5.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
List<CmsRelation>> The internal computed broken relations map. -
Constructor Summary
ConstructorDescriptionCmsRelationDeleteValidator
(CmsObject cms, List<String> resourceNames, boolean includeSiblings) 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
-
CmsRelationDeleteValidator
public CmsRelationDeleteValidator(CmsObject cms, List<String> resourceNames, boolean includeSiblings) Creates a new helper object.- Parameters:
cms
- the cms objectresourceNames
- a list of resource names to be deletedincludeSiblings
- if the siblings should also be deleted
-
-
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:
-