org.opencms.relations
Class CmsRelationPublishValidator

java.lang.Object
  extended by org.opencms.relations.CmsRelationPublishValidator

public class CmsRelationPublishValidator
extends Object

Util class to find broken links in a bundle of resources to be published.

Since:
6.5.5

Field Summary
protected  Map<String,List<CmsRelation>> m_brokenRelations
          The internal computed broken relations map.
 
Constructor Summary
CmsRelationPublishValidator(CmsObject cms, CmsPublishList publishList)
          Creates a new helper object.
 
Method Summary
 CmsRelationValidatorInfoEntry getInfoEntry(String resourceName)
          Returns the information bean for the given entry.
 boolean isEmpty()
          If no relation would be broken deleting the given resources.
 Set<String> keySet()
           
 Collection<List<CmsRelation>> values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_brokenRelations

protected Map<String,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 object
publishList - a publish list to validate
Method Detail

getInfoEntry

public CmsRelationValidatorInfoEntry getInfoEntry(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 Set<String> keySet()
Returns:
the broken relations key set
See Also:
Map.keySet()

values

public Collection<List<CmsRelation>> values()
Returns:
the broken relations value set
See Also:
Map.values()