com.centrasite.control.security.privileges
Interface PrivilegeDescriptor

All Known Implementing Classes:
BindPrivilegeDescriptor, ComplexDescriptor, ContentPrivilegeDescriptor, DeletePrivilegeDescriptor, PropertyPrivilegeDescriptor, ReadPrivilegeDescriptor, RegistryPrivilegeDescriptor, RegistrySecurityPrivilegeDescriptor, RegistryWritePrivilegeDescriptor, RepositoryFilePrivilegeDescriptor, RepositoryFileWritePrivilegeDescriptor, RepositoryFolderPrivilegeDescriptor, RepositoryFolderWritePrivilegeDescriptor, RepositorySecurityPrivilegeDescriptor, SecurityChangePrivilegeDescriptor, SecurityReadPrivilegeDescriptor, SecurityUserPrivilegeDescriptor, SimpleDescriptor, UnbindPrivilegeDescriptor

public interface PrivilegeDescriptor

Privilege Descriptor Interface


Field Summary
static java.lang.String ID_ALL
           
static java.lang.String ID_BIND
           
static java.lang.String ID_CHANGE
           
static java.lang.String ID_CONTENT
           
static java.lang.String ID_DELETE
           
static java.lang.String ID_PROPERTIES
           
static java.lang.String ID_READ
           
static java.lang.String ID_SECURITY
           
static java.lang.String ID_UNBIND
           
static java.lang.String ID_USERSPRIV
           
static java.lang.String ID_WRITE
           
 
Method Summary
 int getColumnCount()
          Get column count
 java.lang.String getId()
          Get id
 java.lang.String getName(java.util.Locale locale)
          Get name
 int getState(AbstractAce ace)
          Get state
 java.util.Iterator getSubDescriptors()
          Get sub privilege descriptors
 void setState(AbstractAce ace, int state)
          Set state
 

Field Detail

ID_ALL

static final java.lang.String ID_ALL
See Also:
Constant Field Values

ID_BIND

static final java.lang.String ID_BIND
See Also:
Constant Field Values

ID_READ

static final java.lang.String ID_READ
See Also:
Constant Field Values

ID_WRITE

static final java.lang.String ID_WRITE
See Also:
Constant Field Values

ID_CHANGE

static final java.lang.String ID_CHANGE
See Also:
Constant Field Values

ID_DELETE

static final java.lang.String ID_DELETE
See Also:
Constant Field Values

ID_UNBIND

static final java.lang.String ID_UNBIND
See Also:
Constant Field Values

ID_CONTENT

static final java.lang.String ID_CONTENT
See Also:
Constant Field Values

ID_SECURITY

static final java.lang.String ID_SECURITY
See Also:
Constant Field Values

ID_PROPERTIES

static final java.lang.String ID_PROPERTIES
See Also:
Constant Field Values

ID_USERSPRIV

static final java.lang.String ID_USERSPRIV
See Also:
Constant Field Values
Method Detail

getId

java.lang.String getId()
Get id

Returns:
Descriptor id

getName

java.lang.String getName(java.util.Locale locale)
Get name

Returns:
Descriptor name

getState

int getState(AbstractAce ace)
Get state

Parameters:
ace - The access control element
Returns:
One of the states above

setState

void setState(AbstractAce ace,
              int state)
Set state

Parameters:
ace - The access control element
state - The state to be set

getSubDescriptors

java.util.Iterator getSubDescriptors()
Get sub privilege descriptors

Returns:
Sub privilege descriptors in case of ComplexDescriptor, otherwise null.

getColumnCount

int getColumnCount()
Get column count

Returns:
the column count