Class DisplayRestrictedDataToSelfPolicy
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.policy.DisplayRestrictedDataToSelfPolicy
-
- All Implemented Interfaces:
PolicyIface
public class DisplayRestrictedDataToSelfPolicy extends Object implements PolicyIface
Permit display of various data if it relates to the user's associated individual. This policy is only to handle the case where a user would not be able to see data except for their self-editing status. If the data would be visible without that status, we assume that some other policy will grant access.
-
-
Constructor Summary
Constructors Constructor Description DisplayRestrictedDataToSelfPolicy(javax.servlet.ServletContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyDecisionisAuthorized(IdentifierBundle whoToAuth, RequestedAction whatToAuth)If the requested action is to display a property or a property statement, we might authorize it based on their role level.StringtoString()
-
-
-
Method Detail
-
isAuthorized
public PolicyDecision isAuthorized(IdentifierBundle whoToAuth, RequestedAction whatToAuth)
If the requested action is to display a property or a property statement, we might authorize it based on their role level.- Specified by:
isAuthorizedin interfacePolicyIface
-
-