Package com.fifa.connectid.sdk.core
Class FifaConnectIdClientImpl
- java.lang.Object
-
- com.fifa.connectid.sdk.core.FifaConnectIdClientImpl
-
- All Implemented Interfaces:
FifaConnectIdClient
public class FifaConnectIdClientImpl extends Object implements FifaConnectIdClient
Client used to make request to FIFA Connect ID service. One instance allows to make multiple requests. This class is not thread safe.
-
-
Constructor Summary
Constructors Constructor Description FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger)FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver)FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, com.fifa.connectservicebus.sdk.ProxySettings proxySettings)FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, com.fifa.connectservicebus.sdk.ProxySettings proxySettings, ExecutorService executorService)FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, com.fifa.connectservicebus.sdk.ProxySettings proxySettings, ExecutorService executorService, HashedPersonProcessor hashedPersonProcessor)FifaConnectIdClientImpl(HashingServiceClient hashingServiceClient, IdDirectoryServiceClient idDirectoryServiceClient, com.fifa.connectservicebus.sdk.logging.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PersonTypeaddRegistrations(AddRegistrationsRequestType request, Boolean force)Adds person registrationsBulkDeactivateRegistrationsResponseTypebulkDeactivateRegistrations(BulkDeactivateRegistrationsRequestType request)Bulk deactivate registrations given in request.FindFacilitiesResponseTypefindFacilities(FindFacilitiesRequestType request)Searches for facilities.FindOrganisationsResponseTypefindOrganisations(FindOrganisationsRequestType request)Searches for organisations.StringforceRegisterPerson(PersonData personData)Registers a new person even if possible duplicates are found.StringforceRegisterPerson(PersonData personData, String personLocalId)Registers a new person even if possible duplicates are found.NationalAssociationsOnboardedResponseTypegetAllNationalAssociationsOnboardedStatus()Asks Connect ID if specific organisation is onboarded.List<String>getDataHoldersOfPerson(String personFifaId)Gets systems registered as Data Holder for the given personFacilityLocalTypegetFacility(String facilityFifaId)Gets facility data associated with the specified FIFA Unique Identifier.List<FacilityLocalType>getFacilityDuplicates(FacilityLocalType facility)Gets a list of facilities this facility may be duplicated with.HashingServiceClientgetHashingClient()Returns current instance of HashingClientIdDirectoryServiceClientgetIdDirectoryClient()Returns current instance of IdDirectoryClientMemberAssociationResponseTypegetMemberAssociationForFifaId(String organisationFifaId)Gets FIFA Id and short name of the Member Association the searched organisation belongs to.List<String>getMergedSecondaryFifaIdsForPerson(String personFifaId)Gets secondary FIFA IDs directly merged into personNationalAssociationsOnboardedResponseTypegetNationalAssociationsOnboardedStatus(NationalAssociationsOnboardedRequestType request)Asks Connect ID if specific organisation is onboarded.OrganisationLocalTypegetOrganisation(String organisationFifaId)Gets organisation data associated with the specified FIFA Unique Identifier.List<OrganisationLocalType>getOrganisationDuplicates(OrganisationLocalType organisation)Gets a list of organisations this organisation may be duplicated with.PersonTypegetPerson(String personFifaId)Gets person data associated with the specified FIFA Unique Identifier.List<PersonDuplicateType>getPersonDuplicates(PersonData personData)Gets a list of people this person may be duplicated with.List<PersonDuplicateType>getPersonDuplicates(PersonData personData, List<String> organisationsIds)Gets a list of people this person may be duplicated with.GetDuplicatesOfRegisteredPersonResponseTypegetPersonDuplicatesExceptTrustedKnownDuplicates(String personFifaId, List<String> trustedOrganisationsIds)Gets a list of people this person may be duplicated with.RegistrationTypegetPrimaryDataProviderRegistrationType(String personFifaId)Gets registration belonging to the primary data provider of the person with the specified FIFA Unique Identifier.OrganisationLocalTypemergeOrganisations(String primaryOrganisationFifaId, String secondaryOrganisationFifaId)Merges two organisations.PersonTypemergePersons(String primaryPersonId, String secondaryPersonId)Merges two persons.voidregisterAsDataHolderOfPerson(String personFifaId)Registers current system as Data Holder for the given personStringregisterFacility(FacilityLocalType facility)Registers a new facility and assigns FIFA Unique Identifier.StringregisterFacility(FacilityLocalType facility, Boolean force)Registers a new facility and assigns FIFA Unique Identifier.StringregisterOrganisation(OrganisationLocalType organisation)Registers a new organisation and assigns FIFA Unique Identifier.StringregisterOrganisation(OrganisationLocalType organisation, Boolean force)Registers a new organisation and assigns FIFA Unique Identifier.StringregisterPerson(PersonData personData)Registers a new person and assigns FIFA Unique Identifier.StringregisterPerson(PersonData personData, String peronLocalId)Registers a new person and assigns FIFA Unique Identifier.OrganisationLocalTypeunmergeOrganisations(String primaryOrganisationFifaId, String secondaryOrganisationFifaId)Reverts merge operation.PersonTypeunmergePersons(String primaryPersonId, String secondaryPersonId)Reverts merge operation.FacilityLocalTypeupdateFacility(FacilityLocalType facility)Updates the facility.FacilityLocalTypeupdateFacility(FacilityLocalType facility, Boolean force)Updates the facility.OrganisationLocalTypeupdateOrganisation(OrganisationLocalType organisation)Updates the organisation.OrganisationLocalTypeupdateOrganisation(OrganisationLocalType organisation, Boolean force)Updates the organisation.PersonTypeupdatePerson(String personId, List<PersonName> names, org.joda.time.LocalDate dateOfBirth, boolean force)Updates person data.PersonTypeupdatePerson(String personId, List<PersonName> names, org.joda.time.LocalDate dateOfBirth, String gender, boolean force)Updates person data.PersonTypeupdateRegistrations(UpdateRegistrationsRequestType request, Boolean force)Updates person registrations
-
-
-
Constructor Detail
-
FifaConnectIdClientImpl
public FifaConnectIdClientImpl(HashingServiceClient hashingServiceClient, IdDirectoryServiceClient idDirectoryServiceClient, com.fifa.connectservicebus.sdk.logging.Logger logger)
-
FifaConnectIdClientImpl
public FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, com.fifa.connectservicebus.sdk.ProxySettings proxySettings, ExecutorService executorService, HashedPersonProcessor hashedPersonProcessor)
-
FifaConnectIdClientImpl
public FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, com.fifa.connectservicebus.sdk.ProxySettings proxySettings, ExecutorService executorService)
-
FifaConnectIdClientImpl
public FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver, com.fifa.connectservicebus.sdk.ProxySettings proxySettings)
-
FifaConnectIdClientImpl
public FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger, ActorResolver actorResolver)
-
FifaConnectIdClientImpl
public FifaConnectIdClientImpl(ConnectIdEnvironment connectIdEnvironment, com.fifa.connectservicebus.sdk.authentication.ClientCredentials clientCredentials, com.fifa.connectservicebus.sdk.logging.Logger logger)
-
-
Method Detail
-
getPerson
public PersonType getPerson(String personFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets person data associated with the specified FIFA Unique Identifier.- Specified by:
getPersonin interfaceFifaConnectIdClient- Parameters:
personFifaId- FIFA Unique Identifier.- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionFifaPersonMergedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getPrimaryDataProviderRegistrationType
public RegistrationType getPrimaryDataProviderRegistrationType(String personFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets registration belonging to the primary data provider of the person with the specified FIFA Unique Identifier.- Specified by:
getPrimaryDataProviderRegistrationTypein interfaceFifaConnectIdClient- Parameters:
personFifaId- FIFA Unique Identifier.- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionFifaPersonMergedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getPersonDuplicates
public List<PersonDuplicateType> getPersonDuplicates(PersonData personData) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets a list of people this person may be duplicated with. Uses 'PersonLocalType' as defined in FIFA Data Standard.- Specified by:
getPersonDuplicatesin interfaceFifaConnectIdClient- Parameters:
personData- - object containing information about local and international names of the person, as well as the date of birth.- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getPersonDuplicates
public List<PersonDuplicateType> getPersonDuplicates(PersonData personData, List<String> organisationsIds) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets a list of people this person may be duplicated with. Uses 'PersonLocalType' as defined in FIFA Data Standard.- Specified by:
getPersonDuplicatesin interfaceFifaConnectIdClient- Parameters:
personData- - object containing information about local and international names of the person, as well as the date of birth.organisationsIds- - organisations' FIFA Unique Identifiers- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getPersonDuplicatesExceptTrustedKnownDuplicates
public GetDuplicatesOfRegisteredPersonResponseType getPersonDuplicatesExceptTrustedKnownDuplicates(String personFifaId, List<String> trustedOrganisationsIds) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets a list of people this person may be duplicated with. Duplicates marked as known duplicate by trusted organisations would not be returned.- Specified by:
getPersonDuplicatesExceptTrustedKnownDuplicatesin interfaceFifaConnectIdClient- Parameters:
personFifaId- - Person FIFA Unique Identifier.trustedOrganisationsIds- - Trusted organisations' FIFA Unique Identifiers.- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getOrganisationDuplicates
public List<OrganisationLocalType> getOrganisationDuplicates(OrganisationLocalType organisation) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets a list of organisations this organisation may be duplicated with. Uses 'OrganisationLocal' as defined in FIFA Data Standard.- Specified by:
getOrganisationDuplicatesin interfaceFifaConnectIdClient- Parameters:
organisation- - object containing information about organisation- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getFacilityDuplicates
public List<FacilityLocalType> getFacilityDuplicates(FacilityLocalType facility) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets a list of facilities this facility may be duplicated with. Uses 'FacilityType' as defined in FIFA Data Standard.- Specified by:
getFacilityDuplicatesin interfaceFifaConnectIdClient- Parameters:
facility- - object containing information about facility- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
registerPerson
public String registerPerson(PersonData personData) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Registers a new person and assigns FIFA Unique Identifier. If duplicates are found the person is not registered. Uses 'PersonLocalType' as defined in FIFA Data Standard.- Specified by:
registerPersonin interfaceFifaConnectIdClient- Parameters:
personData- - object containing information about local and international names of the person, as well as the date of birth.- Throws:
InvalidClientDataExceptionFifaDuplicatedPersonFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
registerPerson
public String registerPerson(PersonData personData, String peronLocalId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Registers a new person and assigns FIFA Unique Identifier. If duplicates are found the person is not registered. Uses 'PersonLocalType' as defined in FIFA Data Standard.- Specified by:
registerPersonin interfaceFifaConnectIdClient- Parameters:
personData- - object containing information about local and international names of the person, as well as the date of birth.- Throws:
InvalidClientDataExceptionFifaDuplicatedPersonFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
forceRegisterPerson
public String forceRegisterPerson(PersonData personData) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Registers a new person even if possible duplicates are found. Uses 'PersonLocalType' as defined in FIFA Data Standard.- Specified by:
forceRegisterPersonin interfaceFifaConnectIdClient- Parameters:
personData- - object containing information about local and international names of the person, as well as the date of birth.- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
forceRegisterPerson
public String forceRegisterPerson(PersonData personData, String personLocalId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Registers a new person even if possible duplicates are found. Uses 'PersonLocalType' as defined in FIFA Data Standard.- Specified by:
forceRegisterPersonin interfaceFifaConnectIdClient- Parameters:
personData- - object containing information about local and international names of the person, as well as the date of birth.personLocalId- - Local identifier of person- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
updatePerson
public PersonType updatePerson(String personId, List<PersonName> names, org.joda.time.LocalDate dateOfBirth, boolean force) throws com.fifa.connectservicebus.sdk.AuthenticationException, FifaConnectIdException, ValidationException
Updates person data.- Specified by:
updatePersonin interfaceFifaConnectIdClient- Parameters:
personId- Fifa Identifier of personnames- Person names that need to be updateddateOfBirth- Person date of birth that need to be updatedforce- - when set to true updates a person even if possible duplicates are found- Throws:
com.fifa.connectservicebus.sdk.AuthenticationExceptionInvalidClientDataExceptionFifaDuplicateOfRegisteredPersonFoundExceptionFifaConnectIdExceptionFifaEntityNotFoundExceptionUnauthorizedExceptionTooManyRequestsExceptionValidationException
-
updatePerson
public PersonType updatePerson(String personId, List<PersonName> names, org.joda.time.LocalDate dateOfBirth, String gender, boolean force) throws com.fifa.connectservicebus.sdk.AuthenticationException, FifaConnectIdException, ValidationException
Updates person data.- Specified by:
updatePersonin interfaceFifaConnectIdClient- Parameters:
personId- Fifa Identifier of personnames- Person names that need to be updateddateOfBirth- Person date of birth that need to be updatedgender- Sex of a personforce- - when set to true updates a person even if possible duplicates are found- Throws:
com.fifa.connectservicebus.sdk.AuthenticationExceptionInvalidClientDataExceptionFifaDuplicateOfRegisteredPersonFoundExceptionFifaConnectIdExceptionFifaEntityNotFoundExceptionUnauthorizedExceptionTooManyRequestsExceptionValidationException
-
addRegistrations
public PersonType addRegistrations(AddRegistrationsRequestType request, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Adds person registrations- Specified by:
addRegistrationsin interfaceFifaConnectIdClient- Parameters:
request- - object containing registration informationforce- - when set to true validation of acting organisation will not be checked.- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
updateRegistrations
public PersonType updateRegistrations(UpdateRegistrationsRequestType request, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Updates person registrations- Specified by:
updateRegistrationsin interfaceFifaConnectIdClient- Parameters:
request- - object containing registration informationforce- - when set to true validation of acting organisation will not be checked.- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getOrganisation
public OrganisationLocalType getOrganisation(String organisationFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets organisation data associated with the specified FIFA Unique Identifier.- Specified by:
getOrganisationin interfaceFifaConnectIdClient- Parameters:
organisationFifaId- FIFA Unique Identifier.- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaOrganisationMergedExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
registerOrganisation
public String registerOrganisation(OrganisationLocalType organisation, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Registers a new organisation and assigns FIFA Unique Identifier. Uses organisation data as defined in FIFA Data Standard.- Specified by:
registerOrganisationin interfaceFifaConnectIdClient- Parameters:
organisation- - object containing information about the organisation.force- - force register organisation- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionFifaDuplicatedOrganisationFoundExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
registerOrganisation
public String registerOrganisation(OrganisationLocalType organisation) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Registers a new organisation and assigns FIFA Unique Identifier. Uses organisation data as defined in FIFA Data Standard.- Specified by:
registerOrganisationin interfaceFifaConnectIdClient- Parameters:
organisation- - object containing information about the organisation.- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionFifaDuplicatedOrganisationFoundExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
mergePersons
public PersonType mergePersons(String primaryPersonId, String secondaryPersonId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Merges two persons. Returns the primary person.- Specified by:
mergePersonsin interfaceFifaConnectIdClient- Parameters:
primaryPersonId- Primary person FIFA Unique IdentifiersecondaryPersonId- Secondary person FIFA Unique Identifier- Throws:
FifaConnectIdExceptionUnauthorizedExceptionInvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConflictExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
unmergePersons
public PersonType unmergePersons(String primaryPersonId, String secondaryPersonId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Reverts merge operation. Returns the secondary person which will be active again when unmerge operations is completed.- Specified by:
unmergePersonsin interfaceFifaConnectIdClient- Parameters:
primaryPersonId- Primary person FIFA Unique IdentifiersecondaryPersonId- Secondary person FIFA Unique Identifier- Throws:
FifaConnectIdExceptionUnauthorizedExceptionInvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConflictExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
bulkDeactivateRegistrations
public BulkDeactivateRegistrationsResponseType bulkDeactivateRegistrations(BulkDeactivateRegistrationsRequestType request) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Bulk deactivate registrations given in request.- Specified by:
bulkDeactivateRegistrationsin interfaceFifaConnectIdClient- Throws:
FifaConnectIdExceptionInvalidClientDataExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
mergeOrganisations
public OrganisationLocalType mergeOrganisations(String primaryOrganisationFifaId, String secondaryOrganisationFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Merges two organisations. Returns the primary organisation.- Specified by:
mergeOrganisationsin interfaceFifaConnectIdClient- Parameters:
primaryOrganisationFifaId- Primary organisation FIFA Unique IdentifiersecondaryOrganisationFifaId- Secondary organisation FIFA Unique Identifier- Throws:
FifaConnectIdExceptionUnauthorizedExceptionInvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConflictExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
unmergeOrganisations
public OrganisationLocalType unmergeOrganisations(String primaryOrganisationFifaId, String secondaryOrganisationFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Reverts merge operation. Returns the secondary organisation when unmerge operations is completed.- Specified by:
unmergeOrganisationsin interfaceFifaConnectIdClient- Parameters:
primaryOrganisationFifaId- Primary organisation FIFA Unique IdentifiersecondaryOrganisationFifaId- Secondary organisation FIFA Unique Identifier- Throws:
FifaConnectIdExceptionUnauthorizedExceptionInvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConflictExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
updateOrganisation
public OrganisationLocalType updateOrganisation(OrganisationLocalType organisation, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Updates the organisation.- Specified by:
updateOrganisationin interfaceFifaConnectIdClient- Parameters:
organisation- Object containing information about the organisation to updateforce- - force update organisation- Throws:
FifaConnectIdExceptionInvalidClientDataExceptionFifaEntityNotFoundExceptionUnauthorizedExceptionFifaDuplicatedOrganisationFoundExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
updateOrganisation
public OrganisationLocalType updateOrganisation(OrganisationLocalType organisation) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Updates the organisation.- Specified by:
updateOrganisationin interfaceFifaConnectIdClient- Parameters:
organisation- Object containing information about the organisation to update- Throws:
FifaConnectIdExceptionInvalidClientDataExceptionFifaEntityNotFoundExceptionUnauthorizedExceptionFifaDuplicatedOrganisationFoundExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getFacility
public FacilityLocalType getFacility(String facilityFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets facility data associated with the specified FIFA Unique Identifier.- Specified by:
getFacilityin interfaceFifaConnectIdClient- Parameters:
facilityFifaId- FIFA Unique Identifier.- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
registerFacility
public String registerFacility(FacilityLocalType facility, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Registers a new facility and assigns FIFA Unique Identifier. Uses facility data as defined in FIFA Data Standard.- Specified by:
registerFacilityin interfaceFifaConnectIdClient- Parameters:
facility- - object containing information about the facility.force- - force register facility- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionFifaDuplicatedFacilityFoundExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
registerFacility
public String registerFacility(FacilityLocalType facility) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Registers a new facility and assigns FIFA Unique Identifier. Uses facility data as defined in FIFA Data Standard.- Specified by:
registerFacilityin interfaceFifaConnectIdClient- Parameters:
facility- - object containing information about the facility.- Throws:
InvalidClientDataExceptionFifaConnectIdExceptionUnauthorizedExceptionFifaDuplicatedFacilityFoundExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
updateFacility
public FacilityLocalType updateFacility(FacilityLocalType facility, Boolean force) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Updates the facility.- Specified by:
updateFacilityin interfaceFifaConnectIdClient- Parameters:
facility- Object containing information about the facility.force- - force update facility- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionFifaDuplicatedFacilityFoundExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
updateFacility
public FacilityLocalType updateFacility(FacilityLocalType facility) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Updates the facility.- Specified by:
updateFacilityin interfaceFifaConnectIdClient- Parameters:
facility- Object containing information about the facility.- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionFifaDuplicatedFacilityFoundExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
findOrganisations
public FindOrganisationsResponseType findOrganisations(FindOrganisationsRequestType request) throws FifaConnectIdException, IOException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Searches for organisations.- Specified by:
findOrganisationsin interfaceFifaConnectIdClient- Parameters:
request- - >Object containing search criteria- Returns:
- FindOrganisationsResponseType - Object containing a list of found organisations
- Throws:
FifaConnectIdExceptionTooManyRequestsExceptionIOExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
findFacilities
public FindFacilitiesResponseType findFacilities(FindFacilitiesRequestType request) throws FifaConnectIdException, IOException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Searches for facilities.- Specified by:
findFacilitiesin interfaceFifaConnectIdClient- Parameters:
request- - Object containing search criteria- Returns:
- FindFacilitiesResponseType - Object containing a list of found facilities
- Throws:
FifaConnectIdExceptionTooManyRequestsExceptionIOExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
getAllNationalAssociationsOnboardedStatus
public NationalAssociationsOnboardedResponseType getAllNationalAssociationsOnboardedStatus() throws IOException, com.fifa.connectservicebus.sdk.AuthenticationException, FifaConnectIdException
Asks Connect ID if specific organisation is onboarded.- Specified by:
getAllNationalAssociationsOnboardedStatusin interfaceFifaConnectIdClient- Returns:
- NationalAssociationsOnboardedResponseType - Object containing list of all national associations fifa identifiers and corresponding onboarded statuses.
- Throws:
com.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionFifaConnectIdExceptionTooManyRequestsExceptionIOException
-
getNationalAssociationsOnboardedStatus
public NationalAssociationsOnboardedResponseType getNationalAssociationsOnboardedStatus(NationalAssociationsOnboardedRequestType request) throws IOException, com.fifa.connectservicebus.sdk.AuthenticationException, FifaConnectIdException, ValidationException
Asks Connect ID if specific organisation is onboarded.- Specified by:
getNationalAssociationsOnboardedStatusin interfaceFifaConnectIdClient- Parameters:
request- - Object containing list of national association identifiers- Returns:
- NationalAssociationsOnboardedResponseType - Object containing list of national associations fifa identifiers and corresponding onboarded statuses.
- Throws:
com.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionFifaEntityNotFoundExceptionInvalidClientDataExceptionFifaConnectIdExceptionTooManyRequestsExceptionValidationExceptionIOException
-
getMemberAssociationForFifaId
public MemberAssociationResponseType getMemberAssociationForFifaId(String organisationFifaId) throws FifaConnectIdException, com.fifa.connectservicebus.sdk.AuthenticationException, ValidationException
Gets FIFA Id and short name of the Member Association the searched organisation belongs to.- Specified by:
getMemberAssociationForFifaIdin interfaceFifaConnectIdClient- Returns:
- MemberAssociationResponseType
- Throws:
InvalidClientDataExceptionFifaEntityNotFoundExceptionFifaConnectIdExceptionUnauthorizedExceptionTooManyRequestsExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionValidationException
-
registerAsDataHolderOfPerson
public void registerAsDataHolderOfPerson(String personFifaId) throws ValidationException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, InvalidClientDataException, FifaPersonMergedException, FifaEntityNotFoundException, FifaEntityDeletedException, FifaConnectIdException
Registers current system as Data Holder for the given person- Specified by:
registerAsDataHolderOfPersonin interfaceFifaConnectIdClient- Parameters:
personFifaId- Person FIFA Unique Identifier- Throws:
ValidationExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionInvalidClientDataExceptionFifaPersonMergedExceptionFifaEntityNotFoundExceptionFifaEntityDeletedExceptionFifaConnectIdException
-
getDataHoldersOfPerson
public List<String> getDataHoldersOfPerson(String personFifaId) throws ValidationException, com.fifa.connectservicebus.sdk.AuthenticationException, UnauthorizedException, InvalidClientDataException, FifaPersonMergedException, FifaEntityNotFoundException, FifaEntityDeletedException, FifaConnectIdException
Gets systems registered as Data Holder for the given person- Specified by:
getDataHoldersOfPersonin interfaceFifaConnectIdClient- Parameters:
personFifaId- Person FIFA Unique Identifier- Returns:
- List of data holders
- Throws:
ValidationExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionInvalidClientDataExceptionFifaPersonMergedExceptionFifaEntityNotFoundExceptionFifaEntityDeletedExceptionFifaConnectIdException
-
getMergedSecondaryFifaIdsForPerson
public List<String> getMergedSecondaryFifaIdsForPerson(String personFifaId) throws ValidationException, com.fifa.connectservicebus.sdk.AuthenticationException, FifaConnectIdException
Gets secondary FIFA IDs directly merged into person- Specified by:
getMergedSecondaryFifaIdsForPersonin interfaceFifaConnectIdClient- Parameters:
personFifaId- Person FIFA Unique Identifier- Returns:
- List of merged secondary FIFA IDs
- Throws:
ValidationExceptioncom.fifa.connectservicebus.sdk.AuthenticationExceptionUnauthorizedExceptionInvalidClientDataExceptionFifaEntityNotFoundExceptionFifaEntityDeletedExceptionFifaConnectIdException
-
getHashingClient
public HashingServiceClient getHashingClient()
Returns current instance of HashingClient- Specified by:
getHashingClientin interfaceFifaConnectIdClient
-
getIdDirectoryClient
public IdDirectoryServiceClient getIdDirectoryClient()
Returns current instance of IdDirectoryClient- Specified by:
getIdDirectoryClientin interfaceFifaConnectIdClient
-
-