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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPolicyManagementPoint(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) voiddeletePep(ComponentId componentId) voiddeletePip(ComponentId componentId) voiddeletePolicy(PolicyId policyId) voiddeletePxp(ComponentId componentId) voiddeleteTimer(TimerId timerId) voiddeployPolicy(PolicyId policyId) voiddeployTimer(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) booleanisPolicyDeployed(PolicyId policyId) booleanisTimerDeployed(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) booleanpdpExists(ComponentId componentId) booleanpepExists(ComponentId componentId) booleanpipExists(ComponentId componentId) booleanpolicyExists(PolicyId policyId) booleanpxpExists(ComponentId componentId) booleanreset()voidrevokePolicy(PolicyId policyId) voidrevokeTimer(TimerId timerId) booleantimerExists(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:
getHealthin interfaceIMyDataComponent
-
getId
- Specified by:
getIdin interfaceIMyDataComponent
-
reset
public boolean reset()- Specified by:
resetin interfaceIMyDataComponent
-
addPolicy
public PolicyId addPolicy(Policy policy) throws IOException, ResourceUpdateException, InvalidEntityException, ConflictingResourceException, NoSuchEntityException - Specified by:
addPolicyin interfaceIPolicyService- Throws:
IOExceptionResourceUpdateExceptionInvalidEntityExceptionConflictingResourceExceptionNoSuchEntityException
-
policyExists
- Specified by:
policyExistsin interfaceIPolicyService- Throws:
InvalidEntityException
-
getPolicy
- Specified by:
getPolicyin interfaceIPolicyService- Throws:
NoSuchEntityExceptionInvalidEntityException
-
getPolicies
- Specified by:
getPoliciesin interfaceIPolicyService- Throws:
InvalidEntityException
-
getRevokedPolicies
- Specified by:
getRevokedPoliciesin interfaceIPolicyService- Throws:
InvalidEntityException
-
listRevokedPolicies
- Specified by:
listRevokedPoliciesin interfaceIPolicyService- Throws:
InvalidEntityException
-
listPolicies
- Specified by:
listPoliciesin interfaceIPolicyService- Throws:
InvalidEntityException
-
getDeployedPolicies
- Specified by:
getDeployedPoliciesin interfaceIPolicyService
-
getDeployedPolicies
- Specified by:
getDeployedPoliciesin interfaceIPolicyService- Throws:
InvalidEntityException
-
listDeployedPolicies
- Specified by:
listDeployedPoliciesin interfaceIPolicyService- Throws:
InvalidEntityException
-
isPolicyDeployed
- Specified by:
isPolicyDeployedin interfaceIPolicyService- Throws:
InvalidEntityException
-
updatePolicy
public PolicyId updatePolicy(Policy policy) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException - Specified by:
updatePolicyin interfaceIPolicyService- Throws:
IOExceptionResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityException
-
deployPolicy
public void deployPolicy(PolicyId policyId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deployPolicyin interfaceIPolicyService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
revokePolicy
public void revokePolicy(PolicyId policyId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
revokePolicyin interfaceIPolicyService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
deletePolicy
public void deletePolicy(PolicyId policyId) throws ResourceUpdateException, NoSuchEntityException, InvalidEntityException - Specified by:
deletePolicyin interfaceIPolicyService- Throws:
ResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityException
-
addTimer
public TimerId addTimer(Timer timer) throws ResourceUpdateException, ConflictingResourceException, InvalidEntityException, NoSuchEntityException - Specified by:
addTimerin interfaceITimerService- Throws:
ResourceUpdateExceptionConflictingResourceExceptionInvalidEntityExceptionNoSuchEntityException
-
getTimer
- Specified by:
getTimerin interfaceITimerService- Throws:
NoSuchEntityExceptionInvalidEntityException
-
getTimers
- Specified by:
getTimersin interfaceITimerService- Throws:
InvalidEntityException
-
listTimers
- Specified by:
listTimersin interfaceITimerService- Throws:
InvalidEntityException
-
getDeployedTimers
- Specified by:
getDeployedTimersin interfaceITimerService- Throws:
InvalidEntityException
-
listDeployedTimers
- Specified by:
listDeployedTimersin interfaceITimerService- Throws:
InvalidEntityException
-
isTimerDeployed
public boolean isTimerDeployed(TimerId timerId) throws NoSuchEntityException, InvalidEntityException - Specified by:
isTimerDeployedin interfaceITimerService- Throws:
NoSuchEntityExceptionInvalidEntityException
-
deployTimer
public void deployTimer(TimerId timerId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deployTimerin interfaceITimerService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
revokeTimer
public void revokeTimer(TimerId timerId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
revokeTimerin interfaceITimerService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
deleteTimer
public void deleteTimer(TimerId timerId) throws ResourceUpdateException, NoSuchEntityException, InvalidEntityException - Specified by:
deleteTimerin interfaceITimerService- Throws:
ResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityException
-
timerExists
- Specified by:
timerExistsin interfaceITimerService- Throws:
InvalidEntityException
-
addPdp
public ComponentId addPdp(PdpComponentInformation component) throws ConflictingResourceException, InvalidEntityException - Specified by:
addPdpin interfaceIComponentService- Throws:
ConflictingResourceExceptionInvalidEntityException
-
addPep
public ComponentId addPep(PepComponentInformation component) throws ConflictingResourceException, InvalidEntityException - Specified by:
addPepin interfaceIComponentService- Throws:
ConflictingResourceExceptionInvalidEntityException
-
addPip
public ComponentId addPip(PipComponentInformation component) throws IOException, ConflictingResourceException, InvalidEntityException - Specified by:
addPipin interfaceIComponentService- Throws:
IOExceptionConflictingResourceExceptionInvalidEntityException
-
addPxp
public ComponentId addPxp(PxpComponentInformation component) throws IOException, ConflictingResourceException, InvalidEntityException - Specified by:
addPxpin interfaceIComponentService- Throws:
IOExceptionConflictingResourceExceptionInvalidEntityException
-
pdpExists
- Specified by:
pdpExistsin interfaceIComponentService- Throws:
InvalidEntityException
-
pepExists
- Specified by:
pepExistsin interfaceIComponentService- Throws:
InvalidEntityException
-
pipExists
- Specified by:
pipExistsin interfaceIComponentService- Throws:
InvalidEntityException
-
pxpExists
- Specified by:
pxpExistsin interfaceIComponentService- Throws:
InvalidEntityException
-
getPdp
- Specified by:
getPdpin interfaceIComponentService- Throws:
NoSuchEntityException
-
getPep
public PepComponentInformation getPep(ComponentId id) throws NoSuchEntityException, InvalidEntityException - Specified by:
getPepin interfaceIComponentService- Throws:
NoSuchEntityExceptionInvalidEntityException
-
getPip
public PipComponentInformation getPip(ComponentId id) throws NoSuchEntityException, InvalidEntityException - Specified by:
getPipin interfaceIComponentService- Throws:
NoSuchEntityExceptionInvalidEntityException
-
getPxp
public PxpComponentInformation getPxp(ComponentId id) throws NoSuchEntityException, InvalidEntityException - Specified by:
getPxpin interfaceIComponentService- Throws:
NoSuchEntityExceptionInvalidEntityException
-
getPipState
public HealthStatus getPipState(ComponentId id) throws NoSuchEntityException, InvalidEntityException, IOException - Specified by:
getPipStatein interfaceIComponentService- Throws:
NoSuchEntityExceptionInvalidEntityExceptionIOException
-
getPxpState
public HealthStatus getPxpState(ComponentId id) throws NoSuchEntityException, InvalidEntityException, IOException - Specified by:
getPxpStatein interfaceIComponentService- Throws:
NoSuchEntityExceptionInvalidEntityExceptionIOException
-
getAllComponentStates
- Specified by:
getAllComponentStatesin interfaceIComponentService
-
lookupPep
- Specified by:
lookupPepin interfaceIComponentService- Throws:
InvalidEntityException
-
lookupPip
public Set<PipComponentInformation> lookupPip(SolutionId solutionId, MethodInterfaceDescription query) throws InvalidEntityException - Specified by:
lookupPipin interfaceIComponentService- Throws:
InvalidEntityException
-
lookupPxp
public Set<PxpComponentInformation> lookupPxp(SolutionId solutionId, MethodInterfaceDescription query) throws InvalidEntityException - Specified by:
lookupPxpin interfaceIComponentService- Throws:
InvalidEntityException
-
updatePdp
public ComponentId updatePdp(PdpComponentInformation component) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePdpin interfaceIComponentService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
updatePep
public ComponentId updatePep(PepComponentInformation component) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePepin interfaceIComponentService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
updatePip
public ComponentId updatePip(PipComponentInformation component) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
updatePipin interfaceIComponentService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityExceptionIOException
-
updatePxp
public ComponentId updatePxp(PxpComponentInformation component) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
updatePxpin interfaceIComponentService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityExceptionIOException
-
deletePep
public void deletePep(ComponentId componentId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
deletePepin interfaceIComponentService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityExceptionIOException
-
deletePip
public void deletePip(ComponentId componentId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
deletePipin interfaceIComponentService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityExceptionIOException
-
deletePxp
public void deletePxp(ComponentId componentId) throws NoSuchEntityException, ResourceUpdateException, InvalidEntityException, IOException - Specified by:
deletePxpin interfaceIComponentService- Throws:
NoSuchEntityExceptionResourceUpdateExceptionInvalidEntityExceptionIOException
-
getRevokedTimers
- Specified by:
getRevokedTimersin interfaceITimerService- Throws:
InvalidEntityException
-
listRevokedTimers
- Specified by:
listRevokedTimersin interfaceITimerService- Throws:
InvalidEntityException
-
updateTimer
public TimerId updateTimer(Timer timer) throws ResourceUpdateException, NoSuchEntityException, InvalidEntityException, ConflictingResourceException - Specified by:
updateTimerin interfaceITimerService- Throws:
ResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityExceptionConflictingResourceException
-