Interface IAffiliationService
- All Known Subinterfaces:
IManagementService
public interface IAffiliationService
The Interface IAffiliationService.
-
Method Summary
Modifier and TypeMethodDescriptionaddAffiliation(Affiliation affiliation) Adds the affiliation.booleanaffiliationIdExists(AffiliationId affiliationId) Checks if this affiliationId existsvoiddeleteAffiliation(AffiliationId affiliationId) Delete affiliation.getAffiliation(AffiliationId affiliationId) Gets the affiliation.getAffiliationBySolutionId(SolutionId solutionId) Returns the affiliation a solutionid (solution) belongs togetAffiliationByUserUUID(String userUUID) Returns the affiliations for a specific user It can be a set as a super_admin is per default assigned to all affiliationsgetAffiliationIdBySolutionId(SolutionId solutionId) Returns the affiliationId a solutionid (solution) belongs togetAffiliationIdByUserUUID(String userUUID) Returns the affiliationids for a specific user It can be a set as a super_admin is per default assigned to all affiliationsgetAffiliations(boolean includeLocked) Gets the affiliations.listAffiliations(boolean includeLocked) Gets the affiliation ids.voidlockAffiliation(AffiliationId affiliationId) Lock affiliation.voidunlockAffiliation(AffiliationId affiliationId) Unlock affiliation.voidupdateAffiliation(Affiliation affiliation) Update affiliation.
-
Method Details
-
addAffiliation
AffiliationId addAffiliation(Affiliation affiliation) throws IOException, ConflictingResourceException, ResourceUpdateException, InvalidEntityException Adds the affiliation.- Parameters:
affiliation- the solution- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.ConflictingResourceExceptionResourceUpdateExceptionInvalidEntityException
-
affiliationIdExists
Checks if this affiliationId exists- Parameters:
affiliationId-- Returns:
- true if this id is already in the DB, false if not
- Throws:
IOExceptionInvalidEntityException
-
updateAffiliation
void updateAffiliation(Affiliation affiliation) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException Update affiliation.- Parameters:
affiliation- the solution- Throws:
IOException- Signals that an I/O exception has occurred.ResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityException
-
getAffiliation
Affiliation getAffiliation(AffiliationId affiliationId) throws IOException, InvalidEntityException, NoSuchEntityException Gets the affiliation.- Parameters:
affiliationId- the affiliation component_id- Returns:
- the affiliation
- Throws:
IOException- Signals that an I/O exception has occurred.InvalidEntityExceptionNoSuchEntityException
-
listAffiliations
Gets the affiliation ids.- Parameters:
includeLocked- : if true, also includes locked affiliations- Returns:
- the affiliation ids
- Throws:
IOException- Signals that an I/O exception has occurred.
-
getAffiliations
Gets the affiliations.- Parameters:
includeLocked- : if true, also includes locked affiliations- Returns:
- the affiliations
- Throws:
IOException- Signals that an I/O exception has occurred.
-
lockAffiliation
void lockAffiliation(AffiliationId affiliationId) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException Lock affiliation.- Parameters:
affiliationId-- Throws:
IOException- Signals that an I/O exception has occurred.ResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityException
-
unlockAffiliation
void unlockAffiliation(AffiliationId affiliationId) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException Unlock affiliation.- Parameters:
affiliationId-- Throws:
IOException- Signals that an I/O exception has occurred.ResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityException
-
deleteAffiliation
void deleteAffiliation(AffiliationId affiliationId) throws IOException, ResourceUpdateException, NoSuchEntityException, InvalidEntityException Delete affiliation.- Parameters:
affiliationId-- Throws:
IOException- Signals that an I/O exception has occurred.ResourceUpdateExceptionNoSuchEntityExceptionInvalidEntityException
-
getAffiliationByUserUUID
Returns the affiliations for a specific user It can be a set as a super_admin is per default assigned to all affiliations- Parameters:
userUUID-- Returns:
- a list(set) of affiliations
- Throws:
IOExceptionNoSuchEntityException
-
getAffiliationIdByUserUUID
Returns the affiliationids for a specific user It can be a set as a super_admin is per default assigned to all affiliations- Parameters:
userUUID-- Returns:
- a list(set) of affiliationids
- Throws:
IOExceptionNoSuchEntityException
-
getAffiliationIdBySolutionId
AffiliationId getAffiliationIdBySolutionId(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException Returns the affiliationId a solutionid (solution) belongs to- Parameters:
solutionId-- Returns:
- an affiliationid
- Throws:
IOExceptionInvalidEntityException- if the solution id is not validNoSuchEntityException- if the solution does not exist
-
getAffiliationBySolutionId
Affiliation getAffiliationBySolutionId(SolutionId solutionId) throws IOException, InvalidEntityException, NoSuchEntityException Returns the affiliation a solutionid (solution) belongs to- Parameters:
solutionId-- Returns:
- an affiliation
- Throws:
IOExceptionInvalidEntityException- if the solution id is not validNoSuchEntityException- if the solution does not exist
-