public class AccessControlEntryImpl extends AbstractExtensionData implements MutableAce, Serializable
| Constructor and Description |
|---|
AccessControlEntryImpl()
Constructor.
|
AccessControlEntryImpl(Principal principal,
List<String> permissions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getPermissions()
Returns the permissions granted to the principal.
|
Principal |
getPrincipal()
Returns the ACE principal.
|
String |
getPrincipalId()
Returns the ACE principal ID.
|
boolean |
isDirect()
Indicates if the ACE was directly applied to the object or has been
inherited from another object (for example from the folder it resides
in).
|
void |
setDirect(boolean direct)
Sets whether this ACE is a direct ACE or not.
|
void |
setPermissions(List<String> permissions)
Sets the permissions granted to the principal.
|
void |
setPrincipal(Principal principal)
Sets the ACE principal.
|
String |
toString() |
getExtensions, setExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtensions, setExtensionspublic Principal getPrincipal()
AcegetPrincipal in interface Acepublic String getPrincipalId()
Ace
Shortcut for getPrincipal().getId().
getPrincipalId in interface Acenull if no principal is setpublic void setPrincipal(Principal principal)
MutableAcesetPrincipal in interface MutableAceprincipal - the principalpublic List<String> getPermissions()
AcegetPermissions in interface Acenullpublic void setPermissions(List<String> permissions)
MutableAcesetPermissions in interface MutableAcepermissions - the list of permissionpublic boolean isDirect()
Acepublic void setDirect(boolean direct)
MutableAcesetDirect in interface MutableAcedirect - true if the ACE is a direct ACE, false
otherwisepublic String toString()
toString in class AbstractExtensionDataCopyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.