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, setExtensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtensions, setExtensions
public Principal getPrincipal()
Ace
getPrincipal
in interface Ace
public String getPrincipalId()
Ace
Shortcut for getPrincipal().getId()
.
getPrincipalId
in interface Ace
null
if no principal is setpublic void setPrincipal(Principal principal)
MutableAce
setPrincipal
in interface MutableAce
principal
- the principalpublic List<String> getPermissions()
Ace
getPermissions
in interface Ace
null
public void setPermissions(List<String> permissions)
MutableAce
setPermissions
in interface MutableAce
permissions
- the list of permissionpublic boolean isDirect()
Ace
public void setDirect(boolean direct)
MutableAce
setDirect
in interface MutableAce
direct
- true
if the ACE is a direct ACE, false
otherwisepublic String toString()
toString
in class AbstractExtensionData
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.