public class AttivioAclEntry extends Object implements AclEntry, Enumeration<Permission>, Serializable
Note that an ACL entry may be positive (access granted) or negative (access denied).
| Modifier and Type | Field and Description |
|---|---|
static AttivioAclEntry |
ANON_READ
The ACL entry defining read access granted to the anonymous user.
|
| Constructor and Description |
|---|
AttivioAclEntry()
Constructs a blank ACL entry.
|
AttivioAclEntry(AttivioPrincipal prin,
List<AttivioPermission> perms,
boolean isNeg)
Constructs an ACL entry, given a principal and their permissions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPermission(Permission perm) |
boolean |
checkPermission(Permission perm) |
Object |
clone() |
boolean |
equals(Object obj) |
AttivioPrincipal |
getAttivioPrincipal() |
List<AttivioPermission> |
getPermissions() |
Principal |
getPrincipal() |
int |
hashCode() |
boolean |
hasMoreElements() |
boolean |
isNegative() |
Permission |
nextElement() |
Enumeration<Permission> |
permissions() |
boolean |
removePermission(Permission perm) |
void |
setNegativePermissions() |
boolean |
setPrincipal(Principal prin) |
String |
toString() |
public static final AttivioAclEntry ANON_READ
public AttivioAclEntry()
public AttivioAclEntry(AttivioPrincipal prin, List<AttivioPermission> perms, boolean isNeg)
prin - the principal (must not be null)perms - the set of permissions (must not be null or empty)isNeg - if true, the permissions are denied, otherwise grantedpublic boolean addPermission(Permission perm)
addPermission in interface AclEntrypublic boolean checkPermission(Permission perm)
checkPermission in interface AclEntrypublic Principal getPrincipal()
getPrincipal in interface AclEntrypublic AttivioPrincipal getAttivioPrincipal()
public boolean isNegative()
isNegative in interface AclEntrypublic Enumeration<Permission> permissions()
permissions in interface AclEntrypublic List<AttivioPermission> getPermissions()
public boolean removePermission(Permission perm)
removePermission in interface AclEntrypublic void setNegativePermissions()
setNegativePermissions in interface AclEntrypublic boolean setPrincipal(Principal prin)
setPrincipal in interface AclEntrypublic Object clone()
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<Permission>public Permission nextElement()
nextElement in interface Enumeration<Permission>Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.