org.nuxeo.ecm.directory.api.ui
Class HierarchicalDirectoryUIDeleteConstraint
java.lang.Object
org.nuxeo.ecm.directory.api.ui.AbstractDirectoryUIDeleteConstraint
org.nuxeo.ecm.directory.api.ui.HierarchicalDirectoryUIDeleteConstraint
- All Implemented Interfaces:
- Serializable, DirectoryUIDeleteConstraint
public class HierarchicalDirectoryUIDeleteConstraint
- extends AbstractDirectoryUIDeleteConstraint
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:
- Serialized Form
HierarchicalDirectoryUIDeleteConstraint
public HierarchicalDirectoryUIDeleteConstraint()
setProperties
public void setProperties(Map<String,String> properties)
throws DirectoryException
- Description copied from interface:
DirectoryUIDeleteConstraint
- Sets properties that may depend on the directory configuration.
- Specified by:
setProperties
in interface DirectoryUIDeleteConstraint
- Overrides:
setProperties
in class AbstractDirectoryUIDeleteConstraint
- Throws:
DirectoryException
canDelete
public boolean canDelete(DirectoryService dirService,
String entryId)
throws DirectoryException,
ClientException
- Description copied from interface:
DirectoryUIDeleteConstraint
- Returns true if given entry can be deleted from the directory where
constraint is declared.
- Parameters:
dirService
- the directory serviceentryId
- the entry to delete id
- Throws:
DirectoryException
ClientException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.