Package org.opencastproject.security.api
Class AccessControlList
java.lang.Object
org.opencastproject.security.api.AccessControlList
A list of
AccessControlEntrys.-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor needed by JAXBAccessControlList(List<AccessControlEntry> entries) AccessControlList(AccessControlEntry... entries) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()booleanisValid()merge(AccessControlList acl) Merge this access control list with another one based on roles specified within.Merge this access control list with another one based on actions specified within.toString()
-
Constructor Details
-
AccessControlList
public AccessControlList()No-arg constructor needed by JAXB -
AccessControlList
-
AccessControlList
-
-
Method Details
-
getEntries
- Returns:
- the entries
-
isValid
public boolean isValid() -
toString
-
merge
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
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
-
equals
-
hashCode
public int hashCode()
-