Package org.opencms.relations
Class CmsRelationDeleteValidator
- java.lang.Object
-
- org.opencms.relations.CmsRelationDeleteValidator
-
public class CmsRelationDeleteValidator extends java.lang.Object
Util class to find broken links in a bundle of resources to be deleted.- Since:
- 6.5.3
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map<java.lang.String,java.util.List<CmsRelation>>
m_brokenRelations
The internal computed broken relations map.
-
Constructor Summary
Constructors Constructor Description CmsRelationDeleteValidator(CmsObject cms, java.util.List<java.lang.String> resourceNames, boolean includeSiblings)
Creates a new helper object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CmsRelationValidatorInfoEntry
getInfoEntry(java.lang.String resourceName)
Returns the information bean for the given entry.boolean
isEmpty()
If no relation would be broken deleting the given resources.java.util.Set<java.lang.String>
keySet()
java.util.Collection<java.util.List<CmsRelation>>
values()
-
-
-
Field Detail
-
m_brokenRelations
protected java.util.Map<java.lang.String,java.util.List<CmsRelation>> m_brokenRelations
The internal computed broken relations map.
-
-
Constructor Detail
-
CmsRelationDeleteValidator
public CmsRelationDeleteValidator(CmsObject cms, java.util.List<java.lang.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 Detail
-
getInfoEntry
public CmsRelationValidatorInfoEntry getInfoEntry(java.lang.String resourceName)
Returns the information bean for the given entry.- Parameters:
resourceName
- the entry name- Returns:
- the information bean for the given entry
-
isEmpty
public boolean isEmpty()
If no relation would be broken deleting the given resources.- Returns:
true
if no relation would be broken deleting the given resources
-
keySet
public java.util.Set<java.lang.String> keySet()
- Returns:
- the broken relations key set
- See Also:
Map.keySet()
-
values
public java.util.Collection<java.util.List<CmsRelation>> values()
- Returns:
- the broken relations value set
- See Also:
Map.values()
-
-