public class AttivioAcl extends Object implements Acl, Iterable<AttivioAclEntry>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static AttivioAcl |
ANON_ACL
Represents the ACL that grants read access to the anonymous user (and therefore, effectively to everyone).
|
| Constructor and Description |
|---|
AttivioAcl()
Creates a blank ACL object.
|
AttivioAcl(String aclName)
Creates a blank ACL object with a name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEntries(Iterable<AttivioAclEntry> entries2) |
void |
addEntries(List<AttivioAclEntry> newEntries)
Adds entries to the ACL.
|
boolean |
addEntry(AclEntry entry)
Adds an ACL entry to the ACL.
|
boolean |
addEntry(Principal caller,
AclEntry entry) |
boolean |
addOwner(Principal caller,
Principal owner) |
boolean |
checkPermission(Principal principal,
Permission permission) |
boolean |
deleteOwner(Principal caller,
Principal owner) |
Enumeration<AclEntry> |
entries() |
boolean |
equals(Object obj) |
String |
getName() |
Enumeration<Permission> |
getPermissions(Principal prin) |
int |
hashCode() |
boolean |
isOwner(Principal owner) |
Iterator<AttivioAclEntry> |
iterator() |
boolean |
removeEntry(Principal caller,
AclEntry entry) |
void |
setName(Principal caller,
String name) |
int |
size() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final AttivioAcl ANON_ACL
public AttivioAcl()
public AttivioAcl(String aclName)
aclName - the ACL namepublic boolean addEntry(Principal caller, AclEntry entry) throws NotOwnerException
addEntry in interface AclNotOwnerExceptionpublic boolean addEntry(AclEntry entry)
entry - the entry to addpublic void addEntries(List<AttivioAclEntry> newEntries)
newEntries - the entries to addpublic boolean checkPermission(Principal principal, Permission permission)
checkPermission in interface Aclpublic Enumeration<AclEntry> entries()
public int size()
public Enumeration<Permission> getPermissions(Principal prin)
getPermissions in interface Aclpublic boolean removeEntry(Principal caller, AclEntry entry) throws NotOwnerException
removeEntry in interface AclNotOwnerExceptionpublic void setName(Principal caller, String name) throws NotOwnerException
setName in interface AclNotOwnerExceptionpublic boolean addOwner(Principal caller, Principal owner) throws NotOwnerException
addOwner in interface OwnerNotOwnerExceptionpublic boolean deleteOwner(Principal caller, Principal owner) throws NotOwnerException, LastOwnerException
deleteOwner in interface OwnerNotOwnerExceptionLastOwnerExceptionpublic String toString()
public Iterator<AttivioAclEntry> iterator()
iterator in interface Iterable<AttivioAclEntry>public void addEntries(Iterable<AttivioAclEntry> entries2)
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.