Package org.opencastproject.security.api
Class AccessControlEntry
java.lang.Object
org.opencastproject.security.api.AccessControlEntry
A tuple of role, action, and whether the combination is to be allowed.
-
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor needed by JAXBAccessControlEntry(String role, String action, boolean allow) Constructs an access control entry for a role, action, and allow tuple -
Method Summary
-
Constructor Details
-
AccessControlEntry
public AccessControlEntry()No-arg constructor needed by JAXB -
AccessControlEntry
Constructs an access control entry for a role, action, and allow tuple- Parameters:
role- the roleaction- the actionallow- Whether this role is allowed to take this action
-
-
Method Details
-
getRole
- Returns:
- the role
-
getAction
- Returns:
- the action
-
isAllow
public boolean isAllow()- Returns:
- the allow
-
isValid
public boolean isValid() -
equals
-
hashCode
public int hashCode() -
toString
-