Class Permission
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.permissions.Permission
-
- All Implemented Interfaces:
Comparable<Permission>
- Direct Known Subclasses:
BrokenPermission,DisplayByRolePermission,EditByRolePermission,PublishByRolePermission,SimplePermission
public abstract class Permission extends Object implements Comparable<Permission>
Interface that describes a unit of authorization, or permission to perform requested actions.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPermission(String uri)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(Permission that)booleanequals(Object obj)StringgetUri()Get the URI that identifies this Permission object.inthashCode()abstract booleanisAuthorized(RequestedAction whatToAuth)Is a user with this Permission authorized to perform this RequestedAction?StringtoString()
-
-
-
Field Detail
-
uri
protected final String uri
-
-
Constructor Detail
-
Permission
protected Permission(String uri)
-
-
Method Detail
-
getUri
public String getUri()
Get the URI that identifies this Permission object.
-
isAuthorized
public abstract boolean isAuthorized(RequestedAction whatToAuth)
Is a user with this Permission authorized to perform this RequestedAction?
-
compareTo
public int compareTo(Permission that)
- Specified by:
compareToin interfaceComparable<Permission>
-
-