Class IdDirectoryServiceClientImpl
- java.lang.Object
-
- com.fifa.connectid.sdk.core.iddirectory.IdDirectoryServiceClientImpl
-
- All Implemented Interfaces:
IdDirectoryServiceClient
public class IdDirectoryServiceClientImpl extends Object implements IdDirectoryServiceClient
-
-
Constructor Summary
Constructors Constructor Description IdDirectoryServiceClientImpl(Persons personOperations, Organisations organisationOperations, Facilitys facilityOperations, DataHolders dataHoldersOperations, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, HashedPersonProcessor hashedPersonProcessor)
-
Method Summary
-
-
-
Constructor Detail
-
IdDirectoryServiceClientImpl
public IdDirectoryServiceClientImpl(Persons personOperations, Organisations organisationOperations, Facilitys facilityOperations, DataHolders dataHoldersOperations, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, HashedPersonProcessor hashedPersonProcessor)
-
-
Method Detail
-
CreateSyncClient
public static IdDirectoryServiceClientImpl CreateSyncClient(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.AuthenticationService authenticationService, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, com.fifa.connectservicebus.sdk.ProxySettings proxySettings, HashedPersonProcessor hashedPersonProcessor)
-
getPerson
public PersonType getPerson(String personFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getPersonin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
getPrimaryDataProviderRegistrationType
public RegistrationType getPrimaryDataProviderRegistrationType(String personFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getPrimaryDataProviderRegistrationTypein interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
getPersonDuplicates
public GetDuplicatesResponseType getPersonDuplicates(GetDuplicatesRequestType request) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getPersonDuplicatesin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
getPersonDuplicates
public GetDuplicatesOfRegisteredPersonResponseType getPersonDuplicates(GetDuplicatesByFIFAIdRequestType request) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getPersonDuplicatesin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
getOrganisationDuplicates
public GetOrganisationDuplicatesResponseType getOrganisationDuplicates(OrganisationLocalType organisation) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getOrganisationDuplicatesin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
getFacilityDuplicates
public GetFacilityDuplicatesResponseType getFacilityDuplicates(FacilityLocalType facility) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getFacilityDuplicatesin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
registerPerson
public RegisterResponseType registerPerson(RegisterPersonRequestType request) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
registerPersonin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
forceRegisterPerson
public RegisterResponseType forceRegisterPerson(RegisterPersonRequestType request) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
forceRegisterPersonin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
updatePerson
public PersonType updatePerson(UpdatePersonRequestType request, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
- Specified by:
updatePersonin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
addRegistrations
public PersonType addRegistrations(AddRegistrationsRequestType request, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
addRegistrationsin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
updateRegistrations
public PersonType updateRegistrations(UpdateRegistrationsRequestType request, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
updateRegistrationsin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
bulkDeactivateRegistrations
public BulkDeactivateRegistrationsResponseType bulkDeactivateRegistrations(BulkDeactivateRegistrationsRequestType request) throws FifaConnectIdException, UnauthorizedException, com.fifa.connectservicebus.sdk.AuthenticationException, InvalidClientDataException, ValidationException
- Specified by:
bulkDeactivateRegistrationsin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptionUnauthorizedExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionInvalidClientDataExceptionValidationException
-
getOrganisation
public OrganisationLocalType getOrganisation(String organisationFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getOrganisationin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
mergeOrganisations
public OrganisationLocalType mergeOrganisations(String primaryOrganisationFifaId, String secondaryOrganisationFifaId) throws FifaConnectIdException, FifaConflictException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
mergeOrganisationsin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptionFifaConflictExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
unmergeOrganisations
public OrganisationLocalType unmergeOrganisations(String primaryOrganisationFifaId, String secondaryOrganisationFifaId) throws FifaConnectIdException, FifaConflictException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
unmergeOrganisationsin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptionFifaConflictExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
mergePersons
public PersonType mergePersons(String primaryPersonId, String secondaryPersonId) throws FifaConnectIdException, FifaConflictException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
mergePersonsin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptionFifaConflictExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
unmergePersons
public PersonType unmergePersons(String primaryPersonId, String secondaryPersonId) throws FifaConnectIdException, FifaConflictException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
unmergePersonsin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptionFifaConflictExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
registerOrganisation
public RegisterResponseType registerOrganisation(OrganisationLocalType organisation, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, FifaDuplicatedOrganisationFoundException, UnauthorizedException, ValidationException
- Specified by:
registerOrganisationin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionFifaDuplicatedOrganisationFoundExceptionUnauthorizedExceptionValidationException
-
updateOrganisation
public OrganisationLocalType updateOrganisation(OrganisationLocalType organisation, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
updateOrganisationin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
getFacility
public FacilityLocalType getFacility(String facilityId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getFacilityin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
registerFacility
public RegisterResponseType registerFacility(FacilityLocalType facility, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, FifaDuplicatedFacilityFoundException, UnauthorizedException, ValidationException
- Specified by:
registerFacilityin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionFifaDuplicatedFacilityFoundExceptionUnauthorizedExceptionValidationException
-
updateFacility
public FacilityLocalType updateFacility(FacilityLocalType facility, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
updateFacilityin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
findOrganisations
public FindOrganisationsResponseType findOrganisations(FindOrganisationsRequestType request) throws IOException, FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
- Specified by:
findOrganisationsin interfaceIdDirectoryServiceClient- Throws:
IOExceptionFifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
findFacilities
public FindFacilitiesResponseType findFacilities(FindFacilitiesRequestType request) throws IOException, FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
- Specified by:
findFacilitiesin interfaceIdDirectoryServiceClient- Throws:
IOExceptionFifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getActingOrganisations
public GetActingOrganisationsResponseType getActingOrganisations() throws IOException, FifaConnectIdException
- Specified by:
getActingOrganisationsin interfaceIdDirectoryServiceClient- Throws:
IOExceptionFifaConnectIdException
-
GetNationalAssociationsOnboardedStatus
public NationalAssociationsOnboardedResponseType GetNationalAssociationsOnboardedStatus(NationalAssociationsOnboardedRequestType request) throws UnauthorizedException, FifaEntityNotFoundException, IOException, com.fifa.connectservicebus.sdk.AuthenticationException, FifaConnectIdException, ValidationException
- Specified by:
GetNationalAssociationsOnboardedStatusin interfaceIdDirectoryServiceClient- Throws:
UnauthorizedExceptionFifaEntityNotFoundExceptionIOExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionFifaConnectIdExceptionValidationException
-
GetAllNationalAssociationsOnboardedStatus
public NationalAssociationsOnboardedResponseType GetAllNationalAssociationsOnboardedStatus() throws UnauthorizedException, IOException, com.fifa.connectservicebus.sdk.AuthenticationException, FifaConnectIdException
- Specified by:
GetAllNationalAssociationsOnboardedStatusin interfaceIdDirectoryServiceClient- Throws:
UnauthorizedExceptionIOExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionFifaConnectIdException
-
getMemberAssociationForFifaId
public MemberAssociationResponseType getMemberAssociationForFifaId(String organisationFifaId) throws InvalidClientDataException, FifaEntityNotFoundException, FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, ValidationException
- Specified by:
getMemberAssociationForFifaIdin interfaceIdDirectoryServiceClient- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionValidationException
-
getDataHoldersOfPerson
public ArrayList<String> getDataHoldersOfPerson(String personFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
- Specified by:
getDataHoldersOfPersonin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
registerAsDataHolderOfPerson
public void registerAsDataHolderOfPerson(String personFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
- Specified by:
registerAsDataHolderOfPersonin interfaceIdDirectoryServiceClient- Throws:
FifaConnectIdExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getMergedSecondaryFifaIdsForPerson
public List<String> getMergedSecondaryFifaIdsForPerson(String personFifaId) throws ValidationException, com.fifa.connectservicebus.sdk.AuthenticationException, FifaConnectIdException
- Specified by:
getMergedSecondaryFifaIdsForPersonin interfaceIdDirectoryServiceClient- Throws:
ValidationExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionFifaConnectIdException
-
getRequestTimeoutInSeconds
public static int getRequestTimeoutInSeconds()
-
setRequestTimeoutInSeconds
public static void setRequestTimeoutInSeconds(int requestTimeoutInSeconds)
-
-