Package de.fraunhofer.iese.mydata.pmp
Class PolicyManagementPoint
java.lang.Object
de.fraunhofer.iese.mydata.pmp.PolicyManagementPoint
- All Implemented Interfaces:
IComponentService
,IBasicManagementService
,IMyDataComponent
,IPolicyService
,ITimerService
The core implementation for a policy management point.
- Author:
- Fraunhofer IESE
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPolicyManagementPoint
(ComponentId componentId, PdpComponentInformation pdpComponentInformation, IPolicyDecisionPoint policyDecisionPoint, ZoneId timeZone, org.quartz.Scheduler timerScheduler, ConnectorFactory connectorFactory) -
Method Summary
Modifier and TypeMethodDescriptionaddPdp
(PdpComponentInformation component) addPep
(PepComponentInformation component) addPip
(PipComponentInformation component) addPxp
(PxpComponentInformation component) void
deletePep
(ComponentId componentId) void
deletePip
(ComponentId componentId) void
deletePolicy
(PolicyId policyId) void
deletePxp
(ComponentId componentId) void
deleteTimer
(TimerId timerId) void
deployPolicy
(PolicyId policyId) void
deployTimer
(TimerId timerId) getAllComponentStates
(SolutionId solutionId) getDeployedPolicies
(SolutionId solutionId) getDeployedTimers
(SolutionId solutionId) getId()
getPdp()
getPep
(ComponentId id) getPip
(ComponentId id) getPolicies
(SolutionId solutionId) getPxp
(ComponentId id) getRevokedPolicies
(SolutionId solutionId) getRevokedTimers
(SolutionId solutionId) getTimers
(SolutionId solutionId) boolean
isPolicyDeployed
(PolicyId policyId) boolean
isTimerDeployed
(TimerId timerId) listDeployedPolicies
(SolutionId solutionId) listDeployedTimers
(SolutionId solutionId) listPolicies
(SolutionId solutionId) listRevokedPolicies
(SolutionId solutionId) listRevokedTimers
(SolutionId solutionId) listTimers
(SolutionId solutionId) lookupPep
(SolutionId solutionId) lookupPip
(SolutionId solutionId, MethodInterfaceDescription query) lookupPxp
(SolutionId solutionId, MethodInterfaceDescription query) boolean
pdpExists
(ComponentId componentId) boolean
pepExists
(ComponentId componentId) boolean
pipExists
(ComponentId componentId) boolean
policyExists
(PolicyId policyId) boolean
pxpExists
(ComponentId componentId) boolean
reset()
void
revokePolicy
(PolicyId policyId) void
revokeTimer
(TimerId timerId) boolean
timerExists
(TimerId timerId) updatePdp
(PdpComponentInformation component) updatePep
(PepComponentInformation component) updatePip
(PipComponentInformation component) updatePolicy
(Policy policy) updatePxp
(PxpComponentInformation component) updateTimer
(Timer timer)
-
Constructor Details
-
PolicyManagementPoint
public PolicyManagementPoint(ComponentId componentId, PdpComponentInformation pdpComponentInformation, IPolicyDecisionPoint policyDecisionPoint, ZoneId timeZone, org.quartz.Scheduler timerScheduler, ConnectorFactory connectorFactory) throws InvalidEntityException - Throws:
InvalidEntityException
-
-
Method Details
-
getHealth
- Specified by:
getHealth
in interfaceIMyDataComponent
-
getId
- Specified by:
getId
in interfaceIMyDataComponent
-
reset
public boolean reset()- Specified by:
reset
in interfaceIMyDataComponent
-
addPolicy
public PolicyId addPolicy(Policy policy) throws IOException, ResourceUpdateException, InvalidEntityException, ConflictingResourceException, NoSuchEntityException - Specified by:
addPolicy
in interfaceIPolicyService
- Throws:
IOException
ResourceUpdateException
InvalidEntityException
ConflictingResourceException
NoSuchEntityException
-
policyExists
- Specified by:
policyExists
in interfaceIPolicyService
- Throws:
InvalidEntityException
-
getPolicy
- Specified by:
getPolicy
in interfaceIPolicyService
- Throws:
NoSuchEntityException
InvalidEntityException
-
getPolicies
- Specified by:
getPolicies
in interfaceIPolicyService
- Throws:
InvalidEntityException
-
getRevokedPolicies
- Specified by:
getRevokedPolicies
in interfaceIPolicyService
- Throws:
InvalidEntityException
-
listRevokedPolicies
- Specified by:
listRevokedPolicies
in interfaceIPolicyService
- Throws:
InvalidEntityException
-
listPolicies
- Specified by:
listPolicies
in interfaceIPolicyService
- Throws:
InvalidEntityException
-
getDeployedPolicies
- Specified by:
getDeployedPolicies
in interfaceIPolicyService
-
getDeployedPolicies
- Specified by:
getDeployedPolicies
in interfaceIPolicyService
- Throws:
InvalidEntityException
-
listDeployedPolicies
- Specified by:
listDeployedPolicies
in interfaceIPolicyService
- Throws:
InvalidEntityException
-
isPolicyDeployed
- Specified by:
isPolicyDeployed
in interfaceIPolicyService
- Throws:
InvalidEntityException
-
updatePolicy
public PolicyId updatePolicy(Policy policy) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException - Specified by:
updatePolicy
in interfaceIPolicyService
- Throws:
IOException
ResourceUpdateException
NoSuchEntityException
InvalidEntityException
-
deployPolicy
public void deployPolicy(PolicyId policyId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deployPolicy
in interfaceIPolicyService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
revokePolicy
public void revokePolicy(PolicyId policyId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
revokePolicy
in interfaceIPolicyService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
deletePolicy
public void deletePolicy(PolicyId policyId) throws ResourceUpdateException, NoSuchEntityException, InvalidEntityException - Specified by:
deletePolicy
in interfaceIPolicyService
- Throws:
ResourceUpdateException
NoSuchEntityException
InvalidEntityException
-
addTimer
public TimerId addTimer(Timer timer) throws ResourceUpdateException, ConflictingResourceException, InvalidEntityException, NoSuchEntityException - Specified by:
addTimer
in interfaceITimerService
- Throws:
ResourceUpdateException
ConflictingResourceException
InvalidEntityException
NoSuchEntityException
-
getTimer
- Specified by:
getTimer
in interfaceITimerService
- Throws:
NoSuchEntityException
InvalidEntityException
-
getTimers
- Specified by:
getTimers
in interfaceITimerService
- Throws:
InvalidEntityException
-
listTimers
- Specified by:
listTimers
in interfaceITimerService
- Throws:
InvalidEntityException
-
getDeployedTimers
- Specified by:
getDeployedTimers
in interfaceITimerService
- Throws:
InvalidEntityException
-
listDeployedTimers
- Specified by:
listDeployedTimers
in interfaceITimerService
- Throws:
InvalidEntityException
-
isTimerDeployed
public boolean isTimerDeployed(TimerId timerId) throws NoSuchEntityException, InvalidEntityException - Specified by:
isTimerDeployed
in interfaceITimerService
- Throws:
NoSuchEntityException
InvalidEntityException
-
deployTimer
public void deployTimer(TimerId timerId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deployTimer
in interfaceITimerService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
revokeTimer
public void revokeTimer(TimerId timerId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
revokeTimer
in interfaceITimerService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
deleteTimer
public void deleteTimer(TimerId timerId) throws ResourceUpdateException, NoSuchEntityException, InvalidEntityException - Specified by:
deleteTimer
in interfaceITimerService
- Throws:
ResourceUpdateException
NoSuchEntityException
InvalidEntityException
-
timerExists
- Specified by:
timerExists
in interfaceITimerService
- Throws:
InvalidEntityException
-
addPdp
public ComponentId addPdp(PdpComponentInformation component) throws ConflictingResourceException, InvalidEntityException - Specified by:
addPdp
in interfaceIComponentService
- Throws:
ConflictingResourceException
InvalidEntityException
-
addPep
public ComponentId addPep(PepComponentInformation component) throws ConflictingResourceException, InvalidEntityException - Specified by:
addPep
in interfaceIComponentService
- Throws:
ConflictingResourceException
InvalidEntityException
-
addPip
public ComponentId addPip(PipComponentInformation component) throws IOException, ConflictingResourceException, InvalidEntityException - Specified by:
addPip
in interfaceIComponentService
- Throws:
IOException
ConflictingResourceException
InvalidEntityException
-
addPxp
public ComponentId addPxp(PxpComponentInformation component) throws IOException, ConflictingResourceException, InvalidEntityException - Specified by:
addPxp
in interfaceIComponentService
- Throws:
IOException
ConflictingResourceException
InvalidEntityException
-
pdpExists
- Specified by:
pdpExists
in interfaceIComponentService
- Throws:
InvalidEntityException
-
pepExists
- Specified by:
pepExists
in interfaceIComponentService
- Throws:
InvalidEntityException
-
pipExists
- Specified by:
pipExists
in interfaceIComponentService
- Throws:
InvalidEntityException
-
pxpExists
- Specified by:
pxpExists
in interfaceIComponentService
- Throws:
InvalidEntityException
-
getPdp
- Specified by:
getPdp
in interfaceIComponentService
- Throws:
NoSuchEntityException
-
getPep
public PepComponentInformation getPep(ComponentId id) throws NoSuchEntityException, InvalidEntityException - Specified by:
getPep
in interfaceIComponentService
- Throws:
NoSuchEntityException
InvalidEntityException
-
getPip
public PipComponentInformation getPip(ComponentId id) throws NoSuchEntityException, InvalidEntityException - Specified by:
getPip
in interfaceIComponentService
- Throws:
NoSuchEntityException
InvalidEntityException
-
getPxp
public PxpComponentInformation getPxp(ComponentId id) throws NoSuchEntityException, InvalidEntityException - Specified by:
getPxp
in interfaceIComponentService
- Throws:
NoSuchEntityException
InvalidEntityException
-
getPipState
public HealthStatus getPipState(ComponentId id) throws NoSuchEntityException, InvalidEntityException, IOException - Specified by:
getPipState
in interfaceIComponentService
- Throws:
NoSuchEntityException
InvalidEntityException
IOException
-
getPxpState
public HealthStatus getPxpState(ComponentId id) throws NoSuchEntityException, InvalidEntityException, IOException - Specified by:
getPxpState
in interfaceIComponentService
- Throws:
NoSuchEntityException
InvalidEntityException
IOException
-
getAllComponentStates
- Specified by:
getAllComponentStates
in interfaceIComponentService
-
lookupPep
- Specified by:
lookupPep
in interfaceIComponentService
- Throws:
InvalidEntityException
-
lookupPip
public Set<PipComponentInformation> lookupPip(SolutionId solutionId, MethodInterfaceDescription query) throws InvalidEntityException - Specified by:
lookupPip
in interfaceIComponentService
- Throws:
InvalidEntityException
-
lookupPxp
public Set<PxpComponentInformation> lookupPxp(SolutionId solutionId, MethodInterfaceDescription query) throws InvalidEntityException - Specified by:
lookupPxp
in interfaceIComponentService
- Throws:
InvalidEntityException
-
updatePdp
public ComponentId updatePdp(PdpComponentInformation component) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePdp
in interfaceIComponentService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
updatePep
public ComponentId updatePep(PepComponentInformation component) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePep
in interfaceIComponentService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
updatePip
public ComponentId updatePip(PipComponentInformation component) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
updatePip
in interfaceIComponentService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
IOException
-
updatePxp
public ComponentId updatePxp(PxpComponentInformation component) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
updatePxp
in interfaceIComponentService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
IOException
-
deletePep
public void deletePep(ComponentId componentId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
deletePep
in interfaceIComponentService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
IOException
-
deletePip
public void deletePip(ComponentId componentId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
deletePip
in interfaceIComponentService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
IOException
-
deletePxp
public void deletePxp(ComponentId componentId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
deletePxp
in interfaceIComponentService
- Throws:
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
IOException
-
getRevokedTimers
- Specified by:
getRevokedTimers
in interfaceITimerService
- Throws:
InvalidEntityException
-
listRevokedTimers
- Specified by:
listRevokedTimers
in interfaceITimerService
- Throws:
InvalidEntityException
-
updateTimer
public TimerId updateTimer(Timer timer) throws ResourceUpdateException, NoSuchEntityException, InvalidEntityException, ConflictingResourceException - Specified by:
updateTimer
in interfaceITimerService
- Throws:
ResourceUpdateException
NoSuchEntityException
InvalidEntityException
ConflictingResourceException
-