Class DisplayByRolePermission
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.permissions.Permission
-
- edu.cornell.mannlib.vitro.webapp.auth.permissions.DisplayByRolePermission
-
- All Implemented Interfaces:
Comparable<Permission>
public class DisplayByRolePermission extends Permission
Is the user authorized to display properties that are marked as restricted to a certain "Role Level"?
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAMESPACE-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.auth.permissions.Permission
uri
-
-
Constructor Summary
Constructors Constructor Description DisplayByRolePermission(String roleName, BaseResourceBean.RoleLevel roleLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAuthorized(RequestedAction whatToAuth)Is a user with this Permission authorized to perform this RequestedAction?StringtoString()-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.auth.permissions.Permission
compareTo, equals, getUri, hashCode
-
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
-
-
Constructor Detail
-
DisplayByRolePermission
public DisplayByRolePermission(String roleName, BaseResourceBean.RoleLevel roleLevel)
-
-
Method Detail
-
isAuthorized
public boolean isAuthorized(RequestedAction whatToAuth)
Description copied from class:PermissionIs a user with this Permission authorized to perform this RequestedAction?- Specified by:
isAuthorizedin classPermission
-
toString
public String toString()
- Overrides:
toStringin classPermission
-
-