Package org.opencastproject.security.api
Class AccessControlList
- java.lang.Object
-
- org.opencastproject.security.api.AccessControlList
-
public final class AccessControlList extends Object
A list ofAccessControlEntry
s.
-
-
Constructor Summary
Constructors Constructor Description AccessControlList()
No-arg constructor needed by JAXBAccessControlList(List<AccessControlEntry> entries)
AccessControlList(AccessControlEntry... entries)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<AccessControlEntry>
getEntries()
int
hashCode()
boolean
isValid()
AccessControlList
merge(AccessControlList acl)
Merge this access control list with another one based on roles specified within.AccessControlList
mergeActions(AccessControlList acl)
Merge this access control list with another one based on actions specified within.String
toString()
-
-
-
Constructor Detail
-
AccessControlList
public AccessControlList()
No-arg constructor needed by JAXB
-
AccessControlList
public AccessControlList(AccessControlEntry... entries)
-
AccessControlList
public AccessControlList(List<AccessControlEntry> entries)
-
-
Method Detail
-
getEntries
public List<AccessControlEntry> getEntries()
- Returns:
- the entries
-
isValid
public boolean isValid()
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
merge
public AccessControlList merge(AccessControlList acl)
Merge this access control list with another one based on roles specified within. In case both lists specify rules for a specific role, the set of rules from the access control list passed as argument to this method will take precedence over the internal set of rules. Example:ROLE_USER1 ROLE_USER2 ROLE_USER3 read write read write read write this ok ok ok ok argument ok ok result ok ok ok ok
- Parameters:
acl
- Access control list to merge with- Returns:
- Merged access control list
-
mergeActions
public AccessControlList mergeActions(AccessControlList acl)
Merge this access control list with another one based on actions specified within. In case both lists specify rules for a specific action, the rules from the access control list passed as argument to this method will take precedence over the internal rules. Example:ROLE_USER1 ROLE_USER2 ROLE_USER3 read write read write read write this ok ok ok ok argument ok ok result ok ok ok ok ok
- Parameters:
acl
- Access control list to merge with- Returns:
- Merged access control list
-
-