Class PdpJavaConnector

  • All Implemented Interfaces:
    de.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent, de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint

    public class PdpJavaConnector
    extends Object
    implements de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
    • Constructor Detail

      • PdpJavaConnector

        public PdpJavaConnector​(de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint pdp)
      • PdpJavaConnector

        public PdpJavaConnector​(URI uri)
      • PdpJavaConnector

        public PdpJavaConnector​(URI uri,
                                de.fraunhofer.iese.mydata.component.connector.Authentication auth)
    • Method Detail

      • getId

        public de.fraunhofer.iese.mydata.component.ComponentId getId()
                                                              throws IOException
        Specified by:
        getId in interface de.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
        Throws:
        IOException
      • reset

        public boolean reset()
                      throws IOException,
                             de.fraunhofer.iese.mydata.exception.NoSuchEntityException
        Specified by:
        reset in interface de.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
        Throws:
        IOException
        de.fraunhofer.iese.mydata.exception.NoSuchEntityException
      • getHealth

        public de.fraunhofer.iese.mydata.component.health.HealthStatus getHealth()
                                                                          throws IOException
        Specified by:
        getHealth in interface de.fraunhofer.iese.mydata.component.interfaces.IMyDataComponent
        Throws:
        IOException
      • clearAllCaches

        public boolean clearAllCaches​(@Nullable
                                      de.fraunhofer.iese.mydata.solution.SolutionId solutionId)
                               throws IOException
        Specified by:
        clearAllCaches in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
      • decisionRequest

        public de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision decisionRequest​(de.fraunhofer.iese.mydata.policy.event.Event event)
                                                                                        throws IOException,
                                                                                               de.fraunhofer.iese.mydata.policy.exception.EvaluationUndecidableException
        Specified by:
        decisionRequest in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
        de.fraunhofer.iese.mydata.policy.exception.EvaluationUndecidableException
      • listDeployedPolicies

        public Set<String> listDeployedPolicies()
                                         throws IOException
        Specified by:
        listDeployedPolicies in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
      • addToBlacklist

        public boolean addToBlacklist​(Set<de.fraunhofer.iese.mydata.solution.SolutionId> ids)
                               throws IOException
        Specified by:
        addToBlacklist in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
      • decisionRequests

        public List<de.fraunhofer.iese.mydata.policy.decision.AuthorizationDecision> decisionRequests​(List<de.fraunhofer.iese.mydata.policy.event.Event> events)
                                                                                               throws IOException
        Specified by:
        decisionRequests in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
      • deploy

        public boolean deploy​(de.fraunhofer.iese.mydata.policy.Policy policy,
                              java.time.ZoneId zoneIdOfSolution)
                       throws IOException,
                              de.fraunhofer.iese.mydata.policy.exception.ConflictingPolicyException
        Specified by:
        deploy in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
        de.fraunhofer.iese.mydata.policy.exception.ConflictingPolicyException
      • evaluate

        public boolean evaluate​(de.fraunhofer.iese.mydata.policy.event.Event event)
                         throws IOException
        Specified by:
        evaluate in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
      • evaluate

        public boolean evaluate​(Set<de.fraunhofer.iese.mydata.policy.event.Event> events)
                         throws IOException
        Specified by:
        evaluate in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
      • removeFromBlacklist

        public boolean removeFromBlacklist​(Set<de.fraunhofer.iese.mydata.solution.SolutionId> ids)
                                    throws IOException
        Specified by:
        removeFromBlacklist in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
      • revokePolicy

        public boolean revokePolicy​(de.fraunhofer.iese.mydata.policy.PolicyId policyId)
                             throws IOException,
                                    de.fraunhofer.iese.mydata.exception.ResourceUpdateException
        Specified by:
        revokePolicy in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
        de.fraunhofer.iese.mydata.exception.ResourceUpdateException
      • setFailureMode

        public void setFailureMode​(boolean active)
                            throws IOException
        Specified by:
        setFailureMode in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
      • updatePolicy

        public boolean updatePolicy​(de.fraunhofer.iese.mydata.policy.Policy policy,
                                    java.time.ZoneId zoneIdOfSolution)
                             throws IOException,
                                    de.fraunhofer.iese.mydata.exception.ResourceUpdateException
        Specified by:
        updatePolicy in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
        de.fraunhofer.iese.mydata.exception.ResourceUpdateException
      • updatePolicyAndId

        public boolean updatePolicyAndId​(de.fraunhofer.iese.mydata.policy.Policy policyWithNewId,
                                         java.time.ZoneId zoneId,
                                         de.fraunhofer.iese.mydata.policy.PolicyId oldPolicyId)
                                  throws IOException,
                                         de.fraunhofer.iese.mydata.exception.ResourceUpdateException
        Specified by:
        updatePolicyAndId in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
        Throws:
        IOException
        de.fraunhofer.iese.mydata.exception.ResourceUpdateException
      • isWhitelistModeEnabled

        public boolean isWhitelistModeEnabled()
        Specified by:
        isWhitelistModeEnabled in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint
      • isInFailureMode

        public boolean isInFailureMode()
        Specified by:
        isInFailureMode in interface de.fraunhofer.iese.mydata.component.interfaces.IPolicyDecisionPoint