Class PmpJavaConnector
java.lang.Object
de.fraunhofer.iese.mydata.connector.java.PmpJavaConnector
- All Implemented Interfaces:
IComponentService
,IBasicManagementService
,IMyDataComponent
,IPolicyService
,ITimerService
-
Constructor Summary
-
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) getPipState
(ComponentId componentId) getPolicies
(SolutionId solutionId) getPxp
(ComponentId id) getPxpState
(ComponentId componentId) 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
-
PmpJavaConnector
-
PmpJavaConnector
-
-
Method Details
-
getHealth
- Specified by:
getHealth
in interfaceIMyDataComponent
- Throws:
IOException
-
getId
- Specified by:
getId
in interfaceIMyDataComponent
- Throws:
IOException
-
reset
- Specified by:
reset
in interfaceIMyDataComponent
- Throws:
IOException
NoSuchEntityException
-
addPolicy
public PolicyId addPolicy(Policy policy) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPolicy
in interfaceIPolicyService
- Throws:
IOException
ConflictingResourceException
ResourceUpdateException
InvalidEntityException
NoSuchEntityException
-
policyExists
- Specified by:
policyExists
in interfaceIPolicyService
- Throws:
IOException
InvalidEntityException
-
getPolicy
public Policy getPolicy(PolicyId policyId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPolicy
in interfaceIPolicyService
- Throws:
IOException
NoSuchEntityException
InvalidEntityException
-
getPolicies
public Set<Policy> getPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getPolicies
in interfaceIPolicyService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
listPolicies
public Set<PolicyId> listPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listPolicies
in interfaceIPolicyService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
getDeployedPolicies
- Specified by:
getDeployedPolicies
in interfaceIPolicyService
- Throws:
IOException
-
getDeployedPolicies
public Set<Policy> getDeployedPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getDeployedPolicies
in interfaceIPolicyService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
listDeployedPolicies
public Set<PolicyId> listDeployedPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listDeployedPolicies
in interfaceIPolicyService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
isPolicyDeployed
public boolean isPolicyDeployed(PolicyId policyId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
isPolicyDeployed
in interfaceIPolicyService
- Throws:
IOException
NoSuchEntityException
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 IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException, ConflictingResourceException - Specified by:
deletePolicy
in interfaceIPolicyService
- Throws:
IOException
ResourceUpdateException
NoSuchEntityException
InvalidEntityException
ConflictingResourceException
-
addTimer
public TimerId addTimer(Timer timer) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addTimer
in interfaceITimerService
- Throws:
IOException
ConflictingResourceException
ResourceUpdateException
InvalidEntityException
NoSuchEntityException
-
getTimer
public Timer getTimer(TimerId timerId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getTimer
in interfaceITimerService
- Throws:
IOException
NoSuchEntityException
InvalidEntityException
-
getTimers
public Set<Timer> getTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getTimers
in interfaceITimerService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
listTimers
public Set<TimerId> listTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listTimers
in interfaceITimerService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
getDeployedTimers
public Set<Timer> getDeployedTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getDeployedTimers
in interfaceITimerService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
listDeployedTimers
public Set<TimerId> listDeployedTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listDeployedTimers
in interfaceITimerService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
isTimerDeployed
public boolean isTimerDeployed(TimerId timerId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
isTimerDeployed
in interfaceITimerService
- Throws:
IOException
NoSuchEntityException
InvalidEntityException
-
deployTimer
public void deployTimer(TimerId timerId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deployTimer
in interfaceITimerService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
revokeTimer
public void revokeTimer(TimerId timerId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
revokeTimer
in interfaceITimerService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
deleteTimer
public void deleteTimer(TimerId timerId) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException, ConflictingResourceException - Specified by:
deleteTimer
in interfaceITimerService
- Throws:
IOException
ResourceUpdateException
NoSuchEntityException
InvalidEntityException
ConflictingResourceException
-
timerExists
- Specified by:
timerExists
in interfaceITimerService
- Throws:
IOException
InvalidEntityException
-
addPdp
public ComponentId addPdp(PdpComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPdp
in interfaceIComponentService
- Throws:
IOException
ConflictingResourceException
ResourceUpdateException
InvalidEntityException
NoSuchEntityException
-
addPep
public ComponentId addPep(PepComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPep
in interfaceIComponentService
- Throws:
IOException
ConflictingResourceException
ResourceUpdateException
InvalidEntityException
NoSuchEntityException
-
addPip
public ComponentId addPip(PipComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPip
in interfaceIComponentService
- Throws:
IOException
ConflictingResourceException
ResourceUpdateException
InvalidEntityException
NoSuchEntityException
-
addPxp
public ComponentId addPxp(PxpComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPxp
in interfaceIComponentService
- Throws:
IOException
ConflictingResourceException
ResourceUpdateException
InvalidEntityException
NoSuchEntityException
-
pdpExists
- Specified by:
pdpExists
in interfaceIComponentService
- Throws:
IOException
InvalidEntityException
-
pepExists
- Specified by:
pepExists
in interfaceIComponentService
- Throws:
IOException
InvalidEntityException
-
pipExists
- Specified by:
pipExists
in interfaceIComponentService
- Throws:
IOException
InvalidEntityException
-
pxpExists
- Specified by:
pxpExists
in interfaceIComponentService
- Throws:
IOException
InvalidEntityException
-
getPdp
- Specified by:
getPdp
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
-
getPep
public PepComponentInformation getPep(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPep
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
InvalidEntityException
-
getPip
public PipComponentInformation getPip(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPip
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
InvalidEntityException
-
getPxp
public PxpComponentInformation getPxp(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPxp
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
InvalidEntityException
-
getPipState
public HealthStatus getPipState(ComponentId componentId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPipState
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
InvalidEntityException
-
getPxpState
public HealthStatus getPxpState(ComponentId componentId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPxpState
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
InvalidEntityException
-
getAllComponentStates
public Map<ComponentId,HealthStatus> getAllComponentStates(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getAllComponentStates
in interfaceIComponentService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
lookupPep
public Set<PepComponentInformation> lookupPep(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
lookupPep
in interfaceIComponentService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
lookupPip
public Set<PipComponentInformation> lookupPip(SolutionId solutionId, MethodInterfaceDescription query) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
lookupPip
in interfaceIComponentService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
lookupPxp
public Set<PxpComponentInformation> lookupPxp(SolutionId solutionId, MethodInterfaceDescription query) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
lookupPxp
in interfaceIComponentService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
updatePdp
public ComponentId updatePdp(PdpComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePdp
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
updatePep
public ComponentId updatePep(PepComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePep
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
updatePip
public ComponentId updatePip(PipComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePip
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
updatePxp
public ComponentId updatePxp(PxpComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePxp
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
deletePep
public void deletePep(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deletePep
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
deletePip
public void deletePip(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deletePip
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
deletePxp
public void deletePxp(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deletePxp
in interfaceIComponentService
- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
getRevokedPolicies
public Set<Policy> getRevokedPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getRevokedPolicies
in interfaceIPolicyService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
listRevokedPolicies
public Set<PolicyId> listRevokedPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listRevokedPolicies
in interfaceIPolicyService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
getRevokedTimers
public Set<Timer> getRevokedTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getRevokedTimers
in interfaceITimerService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
listRevokedTimers
public Set<TimerId> listRevokedTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listRevokedTimers
in interfaceITimerService
- Throws:
IOException
InvalidEntityException
NoSuchEntityException
-
updateTimer
public TimerId updateTimer(Timer timer) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException, ConflictingResourceException - Specified by:
updateTimer
in interfaceITimerService
- Throws:
IOException
ResourceUpdateException
NoSuchEntityException
InvalidEntityException
ConflictingResourceException
-