Package org.opencms.relations
Class CmsRelationPublishValidator
- java.lang.Object
-
- org.opencms.relations.CmsRelationPublishValidator
-
public class CmsRelationPublishValidator extends java.lang.Object
Util class to find broken links in a bundle of resources to be published.- Since:
- 6.5.5
-
-
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 CmsRelationPublishValidator(CmsObject cms, CmsPublishList publishList)
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
-
CmsRelationPublishValidator
public CmsRelationPublishValidator(CmsObject cms, CmsPublishList publishList)
Creates a new helper object.- Parameters:
cms
- the cms objectpublishList
- a publish list to validate
-
-
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()
-
-