Class PmpJavaConnector
java.lang.Object
de.fraunhofer.iese.mydata.connector.java.PmpJavaConnector
- All Implemented Interfaces:
IComponentService,IBasicManagementService,IMyDataComponent,IPolicyService,ITimerService
-
Constructor Summary
Constructors -
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) getPipState(ComponentId componentId) getPolicies(SolutionId solutionId) getPxp(ComponentId id) getPxpState(ComponentId componentId) 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
-
PmpJavaConnector
-
PmpJavaConnector
-
-
Method Details
-
getHealth
- Specified by:
getHealthin interfaceIMyDataComponent- Throws:
IOException
-
getId
- Specified by:
getIdin interfaceIMyDataComponent- Throws:
IOException
-
reset
- Specified by:
resetin interfaceIMyDataComponent- Throws:
IOExceptionNoSuchEntityException
-
addPolicy
public PolicyId addPolicy(Policy policy) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPolicyin interfaceIPolicyService- Throws:
IOExceptionConflictingResourceExceptionResourceUpdateExceptionInvalidEntityExceptionNoSuchEntityException
-
policyExists
- Specified by:
policyExistsin interfaceIPolicyService- Throws:
IOExceptionInvalidEntityException
-
getPolicy
public Policy getPolicy(PolicyId policyId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPolicyin interfaceIPolicyService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
getPolicies
public Set<Policy> getPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getPoliciesin interfaceIPolicyService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
listPolicies
public Set<PolicyId> listPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listPoliciesin interfaceIPolicyService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
getDeployedPolicies
- Specified by:
getDeployedPoliciesin interfaceIPolicyService- Throws:
IOException
-
getDeployedPolicies
public Set<Policy> getDeployedPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getDeployedPoliciesin interfaceIPolicyService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
listDeployedPolicies
public Set<PolicyId> listDeployedPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listDeployedPoliciesin interfaceIPolicyService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
isPolicyDeployed
public boolean isPolicyDeployed(PolicyId policyId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
isPolicyDeployedin interfaceIPolicyService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
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 IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException, ConflictingResourceException - Specified by:
deletePolicyin interfaceIPolicyService- Throws:
IOExceptionResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityExceptionConflictingResourceException
-
addTimer
public TimerId addTimer(Timer timer) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addTimerin interfaceITimerService- Throws:
IOExceptionConflictingResourceExceptionResourceUpdateExceptionInvalidEntityExceptionNoSuchEntityException
-
getTimer
public Timer getTimer(TimerId timerId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getTimerin interfaceITimerService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
getTimers
public Set<Timer> getTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getTimersin interfaceITimerService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
listTimers
public Set<TimerId> listTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listTimersin interfaceITimerService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
getDeployedTimers
public Set<Timer> getDeployedTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getDeployedTimersin interfaceITimerService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
listDeployedTimers
public Set<TimerId> listDeployedTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listDeployedTimersin interfaceITimerService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
isTimerDeployed
public boolean isTimerDeployed(TimerId timerId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
isTimerDeployedin interfaceITimerService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
deployTimer
public void deployTimer(TimerId timerId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deployTimerin interfaceITimerService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
revokeTimer
public void revokeTimer(TimerId timerId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
revokeTimerin interfaceITimerService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
deleteTimer
public void deleteTimer(TimerId timerId) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException, ConflictingResourceException - Specified by:
deleteTimerin interfaceITimerService- Throws:
IOExceptionResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityExceptionConflictingResourceException
-
timerExists
- Specified by:
timerExistsin interfaceITimerService- Throws:
IOExceptionInvalidEntityException
-
addPdp
public ComponentId addPdp(PdpComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPdpin interfaceIComponentService- Throws:
IOExceptionConflictingResourceExceptionResourceUpdateExceptionInvalidEntityExceptionNoSuchEntityException
-
addPep
public ComponentId addPep(PepComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPepin interfaceIComponentService- Throws:
IOExceptionConflictingResourceExceptionResourceUpdateExceptionInvalidEntityExceptionNoSuchEntityException
-
addPip
public ComponentId addPip(PipComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPipin interfaceIComponentService- Throws:
IOExceptionConflictingResourceExceptionResourceUpdateExceptionInvalidEntityExceptionNoSuchEntityException
-
addPxp
public ComponentId addPxp(PxpComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException - Specified by:
addPxpin interfaceIComponentService- Throws:
IOExceptionConflictingResourceExceptionResourceUpdateExceptionInvalidEntityExceptionNoSuchEntityException
-
pdpExists
- Specified by:
pdpExistsin interfaceIComponentService- Throws:
IOExceptionInvalidEntityException
-
pepExists
- Specified by:
pepExistsin interfaceIComponentService- Throws:
IOExceptionInvalidEntityException
-
pipExists
- Specified by:
pipExistsin interfaceIComponentService- Throws:
IOExceptionInvalidEntityException
-
pxpExists
- Specified by:
pxpExistsin interfaceIComponentService- Throws:
IOExceptionInvalidEntityException
-
getPdp
- Specified by:
getPdpin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityException
-
getPep
public PepComponentInformation getPep(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPepin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
getPip
public PipComponentInformation getPip(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPipin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
getPxp
public PxpComponentInformation getPxp(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPxpin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
getPipState
public HealthStatus getPipState(ComponentId componentId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPipStatein interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
getPxpState
public HealthStatus getPxpState(ComponentId componentId) throws IOException, NoSuchEntityException, InvalidEntityException - Specified by:
getPxpStatein interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionInvalidEntityException
-
getAllComponentStates
public Map<ComponentId,HealthStatus> getAllComponentStates(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getAllComponentStatesin interfaceIComponentService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
lookupPep
public Set<PepComponentInformation> lookupPep(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
lookupPepin interfaceIComponentService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
lookupPip
public Set<PipComponentInformation> lookupPip(SolutionId solutionId, MethodInterfaceDescription query) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
lookupPipin interfaceIComponentService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
lookupPxp
public Set<PxpComponentInformation> lookupPxp(SolutionId solutionId, MethodInterfaceDescription query) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
lookupPxpin interfaceIComponentService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
updatePdp
public ComponentId updatePdp(PdpComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePdpin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
updatePep
public ComponentId updatePep(PepComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePepin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
updatePip
public ComponentId updatePip(PipComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePipin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
updatePxp
public ComponentId updatePxp(PxpComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
updatePxpin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
deletePep
public void deletePep(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deletePepin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
deletePip
public void deletePip(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deletePipin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
deletePxp
public void deletePxp(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException - Specified by:
deletePxpin interfaceIComponentService- Throws:
IOExceptionNoSuchEntityExceptionResourceUpdateExceptionInvalidEntityException
-
getRevokedPolicies
public Set<Policy> getRevokedPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getRevokedPoliciesin interfaceIPolicyService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
listRevokedPolicies
public Set<PolicyId> listRevokedPolicies(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listRevokedPoliciesin interfaceIPolicyService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
getRevokedTimers
public Set<Timer> getRevokedTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
getRevokedTimersin interfaceITimerService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
listRevokedTimers
public Set<TimerId> listRevokedTimers(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException - Specified by:
listRevokedTimersin interfaceITimerService- Throws:
IOExceptionInvalidEntityExceptionNoSuchEntityException
-
updateTimer
public TimerId updateTimer(Timer timer) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException, ConflictingResourceException - Specified by:
updateTimerin interfaceITimerService- Throws:
IOExceptionResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityExceptionConflictingResourceException
-