Interface ISolutionService
- All Known Subinterfaces:
- IManagementService
public interface ISolutionService
The Interface ISolutionService.
- 
Method SummaryModifier and TypeMethodDescriptionaddSolution(Solution solution, AffiliationId affiliationId) Adds the solution.voidassignUser(SolutionId solutionId, String userUUID) Assign user.voiddeleteSolution(SolutionId solutionId) Delete solution.getSolution(SolutionId solutionId) Gets the solution.getSolutions(AffiliationId affiliationId, boolean includeLocked) Set solutions.getSolutions(String userId, boolean includeLocked) Set solutions.getZoneId(SolutionId solutionId) Returns the timezone for the policy's solution.listSolutions(AffiliationId affiliationId, boolean includeLocked) Set solutions.listSolutions(String userId, boolean includeLocked) Set solutions.booleansolutionExists(SolutionId solutionId) Solution exists.voidunassignUser(SolutionId solutionId, String userUUID) Unassign user.voidupdateSolution(Solution solution) Update solution.
- 
Method Details- 
addSolutionSolutionId addSolution(Solution solution, AffiliationId affiliationId) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException, NoSuchEntityException Adds the solution.- Parameters:
- solution- the solution
- affiliationId- the id of the affiliation the solution belongs to
- Returns:
- the solution id of the newly added solution
- Throws:
- IOException- Signals that an I/O exception has occurred.
- ConflictingResourceException- if there is already a solution with the given id
- ResourceUpdateException- if add is not successful
- InvalidEntityException- if the given solution or the fiven affiliation id is not valid
- NoSuchEntityException- if the affiliation does not exist
 
- 
solutionExistsSolution exists.- Parameters:
- solutionId- the id of the solution to check
- Returns:
- true, if successful
- Throws:
- IOException- Signals that an I/O exception has occurred.
- InvalidEntityException- if the given solution id is not valid
 
- 
updateSolutionvoid updateSolution(Solution solution) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException Update solution.- Parameters:
- solution- the solution
- Throws:
- IOException- Signals that an I/O exception has occurred.
- ResourceUpdateException- if update is not successful
- NoSuchEntityException- if there is no solution to update
- InvalidEntityException- if the given solution is not valid
 
- 
getSolutionSolution getSolution(SolutionId solutionId) throws IOException, NoSuchEntityException, InvalidEntityException Gets the solution.- Parameters:
- solutionId- the solution component_id
- Returns:
- the solution
- Throws:
- IOException- Signals that an I/O exception has occurred.
- NoSuchEntityException- if there is no solution with the given id
- InvalidEntityException- if the given solution id not valid
 
- 
listSolutionsSet<SolutionId> listSolutions(AffiliationId affiliationId, boolean includeLocked) throws IOException, NoSuchEntityException, InvalidEntityException Set solutions.- Parameters:
- affiliationId- the affiliation id
- includeLocked- the include locked
- Returns:
- the list
- Throws:
- IOException- Signals that an I/O exception has occurred.
- NoSuchEntityException- if there is no affilition with the given id
- InvalidEntityException- if the given affiliation id is not valid
 
- 
getSolutionsSet<Solution> getSolutions(AffiliationId affiliationId, boolean includeLocked) throws IOException, NoSuchEntityException, InvalidEntityException Set solutions.- Parameters:
- affiliationId- the affiliation id
- includeLocked- the include locked
- Returns:
- the list
- Throws:
- IOException- Signals that an I/O exception has occurred.
- NoSuchEntityException- if there is no affilition with the given id
- InvalidEntityException- if the given- AffiliationIdis not valiud
 
- 
listSolutionsSet<SolutionId> listSolutions(String userId, boolean includeLocked) throws IOException, NoSuchEntityException Set solutions.- Parameters:
- userId- the user id
- includeLocked- the include locked
- Returns:
- the list
- Throws:
- IOException- Signals that an I/O exception has occurred.
- NoSuchEntityException- if there is no user with the given id
 
- 
getSolutionsSet<Solution> getSolutions(String userId, boolean includeLocked) throws IOException, NoSuchEntityException Set solutions.- Parameters:
- userId- the user id
- includeLocked- the include locked
- Returns:
- the list
- Throws:
- IOException- Signals that an I/O exception has occurred.
- NoSuchEntityException- if there is no user with the given id
 
- 
deleteSolutionvoid deleteSolution(SolutionId solutionId) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException Delete solution.- Parameters:
- solutionId- the solution id
- Throws:
- IOException- Signals that an I/O exception has occurred.
- ResourceUpdateException- if delete is not successful
- NoSuchEntityException- the no such element exception
- InvalidEntityException- if the given solution id is not valid
 
- 
assignUservoid assignUser(SolutionId solutionId, String userUUID) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException Assign user.- Parameters:
- solutionId- the solution id
- userUUID- the user component_id
- Throws:
- IOException- Signals that an I/O exception has occurred.
- ResourceUpdateException- if it was not possible to assign the user to the solution
- NoSuchEntityException- if there is no solution or user with the given id
- InvalidEntityException- if the given solution id is not valid
 
- 
unassignUservoid unassignUser(SolutionId solutionId, String userUUID) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException Unassign user.- Parameters:
- solutionId- the solution id
- userUUID- the user component_id
- Throws:
- IOException- Signals that an I/O exception has occurred.
- ResourceUpdateException- if it was not possible to unassign the user to the solution
- NoSuchEntityException- if there is no solution or user with the given id
- InvalidEntityException- if the given solution id is not valid
 
- 
getZoneIdZoneId getZoneId(SolutionId solutionId) throws IOException, NoSuchEntityException, InvalidEntityException Returns the timezone for the policy's solution.- Parameters:
- solutionId- the solution id
- Returns:
- ZoneId
- Throws:
- IOException- Signals that an I/O exception has occurred.
- NoSuchEntityException- the no such element exception
- InvalidEntityException- if the given solution id is not valid
 
 
-