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, wait
forEach, spliterator
public 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 Acl
NotOwnerException
public 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 Acl
public Enumeration<AclEntry> entries()
public int size()
public Enumeration<Permission> getPermissions(Principal prin)
getPermissions
in interface Acl
public boolean removeEntry(Principal caller, AclEntry entry) throws NotOwnerException
removeEntry
in interface Acl
NotOwnerException
public void setName(Principal caller, String name) throws NotOwnerException
setName
in interface Acl
NotOwnerException
public boolean addOwner(Principal caller, Principal owner) throws NotOwnerException
addOwner
in interface Owner
NotOwnerException
public boolean deleteOwner(Principal caller, Principal owner) throws NotOwnerException, LastOwnerException
deleteOwner
in interface Owner
NotOwnerException
LastOwnerException
public 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.