public class HierarchicalDirectoryUIDeleteConstraint extends AbstractDirectoryUIDeleteConstraint
Needs to know the child directory name and the field where parent entry id is declared on it.
Constructor and Description |
---|
HierarchicalDirectoryUIDeleteConstraint() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete(DirectoryService dirService,
String entryId)
Returns true if given entry can be deleted from the directory where
constraint is declared.
|
void |
setProperties(Map<String,String> properties)
Sets properties that may depend on the directory configuration.
|
public HierarchicalDirectoryUIDeleteConstraint()
public void setProperties(Map<String,String> properties) throws DirectoryException
DirectoryUIDeleteConstraint
setProperties
in interface DirectoryUIDeleteConstraint
setProperties
in class AbstractDirectoryUIDeleteConstraint
DirectoryException
public boolean canDelete(DirectoryService dirService, String entryId) throws DirectoryException, ClientException
DirectoryUIDeleteConstraint
dirService
- the directory serviceentryId
- the entry to delete idDirectoryException
ClientException
Copyright © 2011 Nuxeo SA. All Rights Reserved.