org.opencms.relations
Class CmsRelationDeleteValidator

java.lang.Object
  extended by 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
Version:
$Revision: 1.9 $
Author:
Michael Moossen

Field Summary
protected  java.util.Map m_brokenRelations
          The internal computed broken relations map.
 
Constructor Summary
CmsRelationDeleteValidator(CmsObject cms, java.util.List resourceNames, boolean includeSiblings)
          Creates a new helper object.
 
Method Summary
 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 keySet()
           
 java.util.Collection values()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_brokenRelations

protected java.util.Map m_brokenRelations
The internal computed broken relations map.

Constructor Detail

CmsRelationDeleteValidator

public CmsRelationDeleteValidator(CmsObject cms,
                                  java.util.List resourceNames,
                                  boolean includeSiblings)
Creates a new helper object.

Parameters:
cms - the cms object
resourceNames - a list of resource names to be deleted
includeSiblings - 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 keySet()
Returns:
the broken relations key set
See Also:
Map.keySet()

values

public java.util.Collection values()
Returns:
the broken relations value set
See Also:
Map.values()