public class HierarchicalDirectoryDeleteConstraint extends AbstractDirectoryDeleteConstraint
Needs to know the child directory name and the field where parent entry id is declared on it.
Modifier and Type | Field and Description |
---|---|
protected String |
targetDirectory |
protected String |
targetDirectoryField |
properties
Constructor and Description |
---|
HierarchicalDirectoryDeleteConstraint() |
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.
|
protected String targetDirectory
protected String targetDirectoryField
public HierarchicalDirectoryDeleteConstraint()
public void setProperties(Map<String,String> properties) throws DirectoryException
DirectoryDeleteConstraint
setProperties
in interface DirectoryDeleteConstraint
setProperties
in class AbstractDirectoryDeleteConstraint
DirectoryException
public boolean canDelete(DirectoryService dirService, String entryId) throws DirectoryException
DirectoryDeleteConstraint
dirService
- the directory serviceentryId
- the entry to delete idDirectoryException
Copyright © 2018 Nuxeo. All rights reserved.