com.adobe.repository.infomodel.bean
Class AccessControlEntry

java.lang.Object
  extended by com.adobe.repository.infomodel.bean.AccessControlEntry
All Implemented Interfaces:
java.io.Serializable

public class AccessControlEntry
extends java.lang.Object
implements java.io.Serializable

Represents an entry in the AccessControlList.

See Also:
Serialized Form

Field Summary
static java.lang.String READ_CONTENT_USER_PERM
          Permission allowing the user to read the content of a resource.
static java.lang.String READ_METADATA_USER_PERM
          Permission allowing the user to include a resource in a list resources request or read the metadata of a resource.
static java.lang.String WRITE_ACL_USER_PERM
          Permission allowing the user to set an ACL on a resource.
static java.lang.String WRITE_USER_PERM
          Permission allowing the user to write repository metadata and content.
 
Constructor Summary
AccessControlEntry()
          Creates a new instance of AccessControlEntry.
 
Method Summary
 void addPermission(java.lang.String permission)
          Adds the specified permission to this entry.
 java.util.List getPermissions()
          Retrieves the permissions for this entry.
 java.lang.String getPrincipal()
          Retrieves the principal for this entry.
 void removePermission(java.lang.String permission)
          Removes the specified permission from this entry.
 void setPrincipal(java.lang.String principal)
          Sets the principal for this entry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ_CONTENT_USER_PERM

public static final java.lang.String READ_CONTENT_USER_PERM

Permission allowing the user to read the content of a resource.

See Also:
Constant Field Values

WRITE_ACL_USER_PERM

public static final java.lang.String WRITE_ACL_USER_PERM

Permission allowing the user to set an ACL on a resource.

See Also:
Constant Field Values

WRITE_USER_PERM

public static final java.lang.String WRITE_USER_PERM

Permission allowing the user to write repository metadata and content.

See Also:
Constant Field Values

READ_METADATA_USER_PERM

public static final java.lang.String READ_METADATA_USER_PERM

Permission allowing the user to include a resource in a list resources request or read the metadata of a resource.

See Also:
Constant Field Values
Constructor Detail

AccessControlEntry

public AccessControlEntry()

Creates a new instance of AccessControlEntry.

Method Detail

setPrincipal

public void setPrincipal(java.lang.String principal)
Sets the principal for this entry.

Parameters:
principal - The principal identifier for this entry. Its format is similar to the following example: "04B307F4-87B3-4517-E1C1-151AFB9982C1".

getPrincipal

public java.lang.String getPrincipal()
Retrieves the principal for this entry.

Returns:
The principal for this entry.

getPermissions

public java.util.List getPermissions()
Retrieves the permissions for this entry.

Returns:
A non-null java.util.List of java.lang.String objects representing the permissions.

addPermission

public void addPermission(java.lang.String permission)
Adds the specified permission to this entry.

Parameters:
permission - The permission to be added.

removePermission

public void removePermission(java.lang.String permission)
Removes the specified permission from this entry.

Parameters:
permission - The permission to be removed.


[an error occurred while processing this directive] [an error occurred while processing this directive]