Class AbstractRelationshipPolicy
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.auth.policy.specialrelationships.AbstractRelationshipPolicy
-
- All Implemented Interfaces:
PolicyIface
public abstract class AbstractRelationshipPolicy extends Object implements PolicyIface
A collection of building-block methods so we can code a policy based on the relationship of the object being edited to the identity of the user doing the editing.
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.servlet.ServletContextctx
-
Constructor Summary
Constructors Constructor Description AbstractRelationshipPolicy(javax.servlet.ServletContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanModifyPredicate(Property predicate)protected booleancanModifyResource(String uri)protected PolicyDecisioncantModifyPredicate(String uri)protected PolicyDecisioncantModifyResource(String uri)protected PolicyDecisioninconclusiveDecision(String message)An INCONCLUSIVE decision with a message like "PolicyClass: message".protected PolicyDecisionuserNotAuthorizedToStatement()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.auth.policy.ifaces.PolicyIface
isAuthorized
-
-
-
-
Method Detail
-
canModifyResource
protected boolean canModifyResource(String uri)
-
canModifyPredicate
protected boolean canModifyPredicate(Property predicate)
-
cantModifyResource
protected PolicyDecision cantModifyResource(String uri)
-
cantModifyPredicate
protected PolicyDecision cantModifyPredicate(String uri)
-
userNotAuthorizedToStatement
protected PolicyDecision userNotAuthorizedToStatement()
-
inconclusiveDecision
protected PolicyDecision inconclusiveDecision(String message)
An INCONCLUSIVE decision with a message like "PolicyClass: message".
-
-