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
FieldsModifier and TypeFieldDescriptionprotected Map<String, List<CmsRelation>> The internal computed broken relations map. -
Constructor Summary
ConstructorsConstructorDescriptionCmsRelationDeleteValidator(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.booleanisEmpty()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:
trueif 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:
-