|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.repository.infomodel.bean.AccessControlEntry
public class AccessControlEntry
Represents an entry in the AccessControlList
.
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()
Retrievess 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 |
---|
public static final java.lang.String READ_CONTENT_USER_PERM
Permission allowing the user to read the content of a resource.
public static final java.lang.String WRITE_ACL_USER_PERM
Permission allowing the user to set an ACL on a resource.
public static final java.lang.String WRITE_USER_PERM
Permission allowing the user to write repository metadata and content.
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.
Constructor Detail |
---|
public AccessControlEntry()
Creates a new instance of AccessControlEntry.
Method Detail |
---|
public void setPrincipal(java.lang.String principal)
principal
- The principal for this entry.public java.lang.String getPrincipal()
public java.util.List getPermissions()
null
java.util.List
of String
objects representing the permissions.public void addPermission(java.lang.String permission)
permission
- The permission to be added.public void removePermission(java.lang.String permission)
permission
- The permission to be removed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |