Interface IComponentService
- All Known Subinterfaces:
IBasicManagementService
,IManagementService
public interface IComponentService
The Interface IComponentService.
-
Method Summary
Modifier and TypeMethodDescriptionaddPdp
(PdpComponentInformation component) Adds a pdp.addPep
(PepComponentInformation component) Adds a pep.addPip
(PipComponentInformation component) Adds a pip.addPxp
(PxpComponentInformation component) Adds a pxp.void
deletePep
(ComponentId componentId) Delete a pep component from the databasevoid
deletePip
(ComponentId componentId) Delete a pip component from the databasevoid
deletePxp
(ComponentId componentId) Delete a pxp component from the databasegetAllComponentStates
(SolutionId solutionId) Gets the all component states.getPdp()
Returns the registered PDP.getPep
(ComponentId id) Lookup PEP byComponentId
.getPip
(ComponentId id) Lookup PIP byComponentId
.getPipState
(ComponentId componentId) Get the pip component stategetPxp
(ComponentId id) Lookup PXP byComponentId
.getPxpState
(ComponentId componentId) Get the pxp component statelookupPep
(SolutionId solutionId) Lookup all PEPs of a certain solution.lookupPip
(SolutionId solutionId, MethodInterfaceDescription query) Lookup all PIPs of a certain solution.lookupPxp
(SolutionId solutionId, MethodInterfaceDescription query) Lookup all PXPs of a certain solution.boolean
pdpExists
(ComponentId componentId) pdp component existsboolean
pepExists
(ComponentId componentId) Pep component existsboolean
pipExists
(ComponentId componentId) Pip component existsboolean
pxpExists
(ComponentId componentId) Pxp component existsupdatePdp
(PdpComponentInformation component) Adds a pdp.updatePep
(PepComponentInformation component) Adds a pep.updatePip
(PipComponentInformation component) Adds a pip.updatePxp
(PxpComponentInformation component) Adds a pxp.
-
Method Details
-
addPdp
ComponentId addPdp(PdpComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException Adds a pdp.- Parameters:
component
- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException
- communication failureConflictingResourceException
- if there is already a pdp componentResourceUpdateException
- if the pdp component could not be registeredInvalidEntityException
- if the pdp component is not validNoSuchEntityException
-
addPep
ComponentId addPep(PepComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException Adds a pep.- Parameters:
component
- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException
- communication failureConflictingResourceException
- if there is already a pep component with the id givenResourceUpdateException
- the resource update exceptionInvalidEntityException
- if the pep component is not validNoSuchEntityException
-
addPip
ComponentId addPip(PipComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException Adds a pip.- Parameters:
component
- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException
- communication failureConflictingResourceException
- if there is already a pip component with the id givenResourceUpdateException
- the resource update exceptionInvalidEntityException
- if the pip component is not validNoSuchEntityException
-
addPxp
ComponentId addPxp(PxpComponentInformation component) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException Adds a pxp.- Parameters:
component
- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException
- communication failureConflictingResourceException
- if there is already a pxp component with the id givenResourceUpdateException
- the resource update exceptionInvalidEntityException
- if the pxp component is not validNoSuchEntityException
-
pdpExists
pdp component exists- Parameters:
componentId
-- Returns:
- true if the pdp exists, false otherwise
- Throws:
IOException
InvalidEntityException
- if the component id is not valid
-
pepExists
Pep component exists- Parameters:
componentId
-- Returns:
- true if the pep exists, false otherwise
- Throws:
IOException
InvalidEntityException
- if the component id is not valid
-
pipExists
Pip component exists- Parameters:
componentId
-- Returns:
- true if the pip exists, false otherwise
- Throws:
IOException
InvalidEntityException
- if the component id is not valid
-
pxpExists
Pxp component exists- Parameters:
componentId
-- Returns:
- true if the pxp exists, false otherwise
- Throws:
IOException
InvalidEntityException
- if the component id is not valid
-
getPdp
Returns the registered PDP.- Returns:
- the PDP
- Throws:
IOException
- communication failureNoSuchEntityException
- the no such element exception
-
getPep
PepComponentInformation getPep(ComponentId id) throws IOException, InvalidEntityException, NoSuchEntityException Lookup PEP byComponentId
.- Parameters:
id
- the id- Returns:
- the component
- Throws:
IOException
- communication failureNoSuchEntityException
- if no pep component with the id given existsInvalidEntityException
- if the component id is not valid
-
getPip
PipComponentInformation getPip(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException Lookup PIP byComponentId
.- Parameters:
id
- the id- Returns:
- the component
- Throws:
IOException
- communication failureNoSuchEntityException
- if no pip component with the id given existsInvalidEntityException
- if the component id is not valid
-
getPxp
PxpComponentInformation getPxp(ComponentId id) throws IOException, NoSuchEntityException, InvalidEntityException Lookup PXP byComponentId
.- Parameters:
id
- the id- Returns:
- the component
- Throws:
IOException
- communication failureNoSuchEntityException
- if no pxp component with the id given existsInvalidEntityException
- if the component id is not valid
-
getPipState
HealthStatus getPipState(ComponentId componentId) throws IOException, NoSuchEntityException, InvalidEntityException Get the pip component state- Parameters:
componentId
-- Returns:
- HealthStatus of the PIP
- Throws:
IOException
- Signals that an I/O exception has occurred.NoSuchEntityException
- if there is no pip component with the id givenInvalidEntityException
- if the component id is not valid
-
getPxpState
HealthStatus getPxpState(ComponentId componentId) throws IOException, NoSuchEntityException, InvalidEntityException Get the pxp component state- Parameters:
componentId
-- Returns:
- HealthStatus of the PXP
- Throws:
IOException
- Signals that an I/O exception has occurred.NoSuchEntityException
- if there is no pxp component with the id givenInvalidEntityException
- if the component id is not valid
-
getAllComponentStates
Map<ComponentId,HealthStatus> getAllComponentStates(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException Gets the all component states.- Parameters:
solutionId
- the solution id- Returns:
- the all component states
- Throws:
IOException
- Signals that an I/O exception has occurred.InvalidEntityException
- the invalid entity exceptionNoSuchEntityException
-
lookupPep
Set<PepComponentInformation> lookupPep(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException Lookup all PEPs of a certain solution.- Parameters:
solutionId
- the solutionId- Returns:
- the list of Peps
- Throws:
IOException
- communication failureInvalidEntityException
- the invalid entity exceptionNoSuchEntityException
-
lookupPip
Set<PipComponentInformation> lookupPip(SolutionId solutionId, MethodInterfaceDescription query) throws IOException, InvalidEntityException, NoSuchEntityException Lookup all PIPs of a certain solution.- Parameters:
solutionId
- the solutionIdquery
- the required / availableMethodInterfaceDescription
s to match against; null to return all- Returns:
- the list of Pips
- Throws:
IOException
- communication failureInvalidEntityException
- the invalid entity exceptionNoSuchEntityException
-
lookupPxp
Set<PxpComponentInformation> lookupPxp(SolutionId solutionId, MethodInterfaceDescription query) throws IOException, InvalidEntityException, NoSuchEntityException Lookup all PXPs of a certain solution.- Parameters:
solutionId
- the solutionIdquery
- the required / availableMethodInterfaceDescription
s to match against; null to return all- Returns:
- the list of Pxps
- Throws:
IOException
- communication failureInvalidEntityException
- the invalid entity exceptionNoSuchEntityException
-
updatePdp
ComponentId updatePdp(PdpComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException Adds a pdp.- Parameters:
component
- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException
- communication failureNoSuchEntityException
- the no such element exceptionResourceUpdateException
- the resource update exceptionInvalidEntityException
- the invalid entity exception
-
updatePep
ComponentId updatePep(PepComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException Adds a pep.- Parameters:
component
- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException
- communication failureNoSuchEntityException
- the no such element exceptionResourceUpdateException
- the resource update exceptionInvalidEntityException
- the invalid entity exception
-
updatePip
ComponentId updatePip(PipComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException Adds a pip.- Parameters:
component
- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException
- communication failureNoSuchEntityException
- the no such element exceptionResourceUpdateException
- the resource update exceptionInvalidEntityException
- the invalid entity exception
-
updatePxp
ComponentId updatePxp(PxpComponentInformation component) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException Adds a pxp.- Parameters:
component
- the component- Returns:
- true if the component was successfully added, false otherwise
- Throws:
IOException
- communication failureNoSuchEntityException
- the no such element exceptionResourceUpdateException
- the resource update exceptionInvalidEntityException
- the invalid entity exception
-
deletePep
void deletePep(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException Delete a pep component from the database- Parameters:
componentId
-- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
- if the component id is not valid
-
deletePip
void deletePip(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException Delete a pip component from the database- Parameters:
componentId
-- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-
deletePxp
void deletePxp(ComponentId componentId) throws IOException, NoSuchEntityException, ResourceUpdateException, InvalidEntityException Delete a pxp component from the database- Parameters:
componentId
-- Throws:
IOException
NoSuchEntityException
ResourceUpdateException
InvalidEntityException
-