Package org.nuxeo.ecm.directory
Class HierarchicalDirectoryDeleteConstraint
java.lang.Object
org.nuxeo.ecm.directory.impl.AbstractDirectoryDeleteConstraint
org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint
- All Implemented Interfaces:
- Serializable,- DirectoryDeleteConstraint
Delete constraint preventing from removing an entry from a parent directory if it is referenced in a child directory.
 
Needs to know the child directory name and the field where parent entry id is declared on it.
- Author:
- Anahide Tchertchian
- See Also:
- 
Field SummaryFieldsFields inherited from class org.nuxeo.ecm.directory.impl.AbstractDirectoryDeleteConstraintproperties
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleancanDelete(DirectoryService dirService, String entryId) Returns true if given entry can be deleted from the directory where constraint is declared.voidsetProperties(Map<String, String> properties) Sets properties that may depend on the directory configuration.
- 
Field Details- 
targetDirectory
- 
targetDirectoryField
 
- 
- 
Constructor Details- 
HierarchicalDirectoryDeleteConstraintpublic HierarchicalDirectoryDeleteConstraint()
 
- 
- 
Method Details- 
setPropertiesDescription copied from interface:DirectoryDeleteConstraintSets properties that may depend on the directory configuration.- Specified by:
- setPropertiesin interface- DirectoryDeleteConstraint
- Overrides:
- setPropertiesin class- AbstractDirectoryDeleteConstraint
 
- 
canDeleteDescription copied from interface:DirectoryDeleteConstraintReturns true if given entry can be deleted from the directory where constraint is declared.- Parameters:
- dirService- the directory service
- entryId- the entry to delete id
 
 
-