Class 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 Detail

      • ctx

        protected final javax.servlet.ServletContext ctx
    • Constructor Detail

      • AbstractRelationshipPolicy

        public AbstractRelationshipPolicy​(javax.servlet.ServletContext ctx)
    • Method Detail

      • canModifyResource

        protected boolean canModifyResource​(String uri)
      • canModifyPredicate

        protected boolean canModifyPredicate​(Property predicate)
      • userNotAuthorizedToStatement

        protected PolicyDecision userNotAuthorizedToStatement()
      • inconclusiveDecision

        protected PolicyDecision inconclusiveDecision​(String message)
        An INCONCLUSIVE decision with a message like "PolicyClass: message".