public class AclEntryImpl extends Object implements AclEntry, Serializable
Constructor and Description |
---|
AclEntryImpl()
Constructs a new AclEntryImpl instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addPermission(Permission permission)
Adds the specified permission to this ACL entry.
|
boolean |
checkPermission(Permission permission)
Checks if the specified permission is part of the permission set in this
entry.
|
Principal |
getPrincipal()
Returns the principal for which permissions are granted by this
ACL entry.
|
Enumeration<Permission> |
permissions()
Returns an enumeration of the permissions in this ACL entry.
|
boolean |
removePermission(Permission permission)
Removes the specified permission from this ACL entry.
|
boolean |
setPrincipal(Principal user)
Specifies the principal for which permissions are granted or denied by
this ACL entry.
|
String |
toString()
Returns a string representation of the contents of this ACL entry.
|
public AclEntryImpl()
public boolean addPermission(Permission permission)
PagePermission
. Note: An entry
can have multiple permissions.addPermission
in interface AclEntry
permission
- the permission to be associated with the principal in
this entrytrue
if the permission was added,
false
if the permission was
already part of this entry's permission set, and false
if
the permission is not of type PagePermissionpublic boolean checkPermission(Permission permission)
checkPermission
in interface AclEntry
permission
- the permission to be checked for.public Principal getPrincipal()
getPrincipal
in interface AclEntry
public Enumeration<Permission> permissions()
permissions
in interface AclEntry
public boolean removePermission(Permission permission)
removePermission
in interface AclEntry
permission
- the permission to be removed from this entry.public boolean setPrincipal(Principal user)
setPrincipal
in interface AclEntry
user
- the principal to be set for this entryCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.