Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.directory.api.ui
Interface DirectoryUIDeleteConstraint

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractDirectoryUIDeleteConstraint, HierarchicalDirectoryUIDeleteConstraint

public interface DirectoryUIDeleteConstraint
extends java.io.Serializable

Interface for delete constraint on a directory, dependent to another directory

Author:
Anahide Tchertchian

Method Summary
 boolean canDelete(DirectoryService dirService, java.lang.String entryId)
          Returns true if given entry can be deleted from the directory where constraint is declared.
 void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
          Sets properties that may depend on the directory configuration
 

Method Detail

setProperties

void setProperties(java.util.Map<java.lang.String,java.lang.String> properties)
                   throws DirectoryException
Sets properties that may depend on the directory configuration

Parameters:
properties -
Throws:
DirectoryException

canDelete

boolean canDelete(DirectoryService dirService,
                  java.lang.String entryId)
                  throws DirectoryException,
                         ClientException
Returns 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
Throws:
DirectoryException
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.