Package org.emau.icmvc.ttp.epix.service
Interface EPIXManagementService
public interface EPIXManagementService
- Author:
- geidell
-
Method Summary
Modifier and TypeMethodDescriptionaddIdentifierDomain
(IdentifierDomainDTO identifierDomain) long
countIdentityHistoriesForDomain
(String domainName, PaginationConfig paginationConfig) Counts matchingIdentityHistoryDTO
entries.long
countPossibleMatchHistoriesForDomain
(String domainName, PaginationConfig paginationConfig) Counts matchingPossibleMatchHistoryDTO
entries.void
deleteDomain
(String domainName, boolean force) void
deleteIdentifierDomain
(String identifierDomainName) void
deleteSource
(String sourceName) Parses a matching configuration encoded as XML into aConfigurationContainer
.getConfigurationForDomain
(String domainName) getDeacticatedIdentitiesForDomain
(String domainName) getDeactivatedPersonsForDomain
(String domainName) getDefinedDeduplicationReasons
(String domainName) getHistoryForContact
(long contactId) getHistoryForIdentifier
(String identifierDomainName, String value) getHistoryForIdentity
(long identityId) getHistoryForPerson
(String domainName, String mpiId) getIdentifierDomain
(String identifierDomainName) getIdentityById
(long id) getIdentityHistoriesForDomain
(String domainName) getIdentityHistoriesForDomainFiltered
(String domainName, Map<IdentityField, String> filter, boolean filterIsCaseSensitive) getIdentityHistoriesForDomainPaginated
(String domainName, PaginationConfig paginationConfig) Returns matchingIdentityHistoryDTO
entries.getIdentityHistoryByPersonId
(Long personId) getPersonById
(long id) getPossibleMatchHistoryByIdentity
(long identityId) getPossibleMatchHistoryForPerson
(String domainName, String mpiId) getPossibleMatchHistoryForUpdatedIdentity
(long updatedIdentityId) Parses a matching configuration encoded as XML into aConfigurationContainer
.updateDomain
(DomainDTO domain) updateDomainInUse
(String domainName, String label, String description) updateIdentifierDomain
(IdentifierDomainDTO identifierDomain) updateSource
(SourceDTO source)
-
Method Details
-
addIdentifierDomain
IdentifierDomainDTO addIdentifierDomain(IdentifierDomainDTO identifierDomain) throws DuplicateEntryException, InvalidParameterException, MPIException -
getIdentifierDomain
IdentifierDomainDTO getIdentifierDomain(String identifierDomainName) throws UnknownObjectException, InvalidParameterException -
getIdentifierDomains
List<IdentifierDomainDTO> getIdentifierDomains() -
updateIdentifierDomain
IdentifierDomainDTO updateIdentifierDomain(IdentifierDomainDTO identifierDomain) throws InvalidParameterException, MPIException, UnknownObjectException -
deleteIdentifierDomain
void deleteIdentifierDomain(String identifierDomainName) throws InvalidParameterException, MPIException, ObjectInUseException, UnknownObjectException -
addDomain
DomainDTO addDomain(DomainDTO domain) throws DuplicateEntryException, InvalidParameterException, MPIException, UnknownObjectException -
getDomain
-
getDomains
-
updateDomain
DomainDTO updateDomain(DomainDTO domain) throws InvalidParameterException, MPIException, ObjectInUseException, UnknownObjectException -
updateDomainInUse
DomainDTO updateDomainInUse(String domainName, String label, String description) throws InvalidParameterException, MPIException, UnknownObjectException -
deleteDomain
void deleteDomain(String domainName, boolean force) throws InvalidParameterException, MPIException, ObjectInUseException, UnknownObjectException -
addSource
SourceDTO addSource(SourceDTO source) throws DuplicateEntryException, InvalidParameterException, MPIException -
getSource
-
getSources
-
updateSource
SourceDTO updateSource(SourceDTO source) throws InvalidParameterException, MPIException, UnknownObjectException -
deleteSource
void deleteSource(String sourceName) throws InvalidParameterException, MPIException, ObjectInUseException, UnknownObjectException -
getPersonById
- Throws:
UnknownObjectException
-
getIdentityById
- Throws:
UnknownObjectException
-
getDeactivatedPersonsForDomain
List<PersonDTO> getDeactivatedPersonsForDomain(String domainName) throws InvalidParameterException, UnknownObjectException -
getDeacticatedIdentitiesForDomain
List<IdentityOutDTO> getDeacticatedIdentitiesForDomain(String domainName) throws InvalidParameterException, UnknownObjectException -
getHistoryForPerson
List<PersonHistoryDTO> getHistoryForPerson(String domainName, String mpiId) throws InvalidParameterException, UnknownObjectException -
getIdentityHistoriesForDomain
List<IdentityHistoryDTO> getIdentityHistoriesForDomain(String domainName) throws InvalidParameterException, UnknownObjectException -
getIdentityHistoriesForDomainFiltered
List<IdentityHistoryDTO> getIdentityHistoriesForDomainFiltered(String domainName, Map<IdentityField, String> filter, boolean filterIsCaseSensitive) throws InvalidParameterException, UnknownObjectException -
getIdentityHistoriesForDomainPaginated
List<IdentityHistoryDTO> getIdentityHistoriesForDomainPaginated(String domainName, PaginationConfig paginationConfig) throws InvalidParameterException, UnknownObjectException Returns matchingIdentityHistoryDTO
entries. IfIdentityField.NONE
is the only key in the filter map, then search for the corresponding pattern in all required fields (as defined in the configuration container) linked by OR (disjunction), otherwise search in all given fields for the respective pattern linked by AND (conjunction).- Parameters:
domainName
- the name of the domainpaginationConfig
- the pagination configuration- Returns:
- matching
IdentityHistoryDTO
entries. - Throws:
UnknownObjectException
- for a wrong domain nameInvalidParameterException
-
countIdentityHistoriesForDomain
long countIdentityHistoriesForDomain(String domainName, PaginationConfig paginationConfig) throws InvalidParameterException, UnknownObjectException Counts matchingIdentityHistoryDTO
entries. IfIdentityField.NONE
is the only key in the filter map, then search for the corresponding pattern in all required fields (as defined in the configuration container) linked by OR (disjunction), otherwise search in all given fields for the respective pattern linked by AND (conjunction).- Parameters:
domainName
- the name of the domainpaginationConfig
- the pagination configuration- Returns:
- number of matching
IdentityHistoryDTO
entries. - Throws:
UnknownObjectException
- for a wrong domain nameInvalidParameterException
-
countPossibleMatchHistoriesForDomain
long countPossibleMatchHistoriesForDomain(String domainName, PaginationConfig paginationConfig) throws UnknownObjectException, InvalidParameterException Counts matchingPossibleMatchHistoryDTO
entries. w.r.t the given domain and pagination config.Currently only the domain and the solution filter will be used for the search! A later implementation also should respect the identity filter map.
- Parameters:
domainName
- the name of the domainpaginationConfig
- the pagination configuration- Returns:
- number of matching
PossibleMatchHistoryDTO
entries - Throws:
UnknownObjectException
- for a wrong domain nameInvalidParameterException
-
getHistoryForIdentity
- Throws:
UnknownObjectException
-
getHistoryForContact
- Throws:
UnknownObjectException
-
getHistoryForIdentifier
List<IdentifierHistoryDTO> getHistoryForIdentifier(String identifierDomainName, String value) throws UnknownObjectException - Throws:
UnknownObjectException
-
getPossibleMatchHistoryForPerson
List<PossibleMatchHistoryDTO> getPossibleMatchHistoryForPerson(String domainName, String mpiId) throws InvalidParameterException, UnknownObjectException -
getPossibleMatchHistoryForUpdatedIdentity
List<PossibleMatchHistoryDTO> getPossibleMatchHistoryForUpdatedIdentity(long updatedIdentityId) throws InvalidParameterException, UnknownObjectException -
getPossibleMatchHistoryByIdentity
List<PossibleMatchHistoryDTO> getPossibleMatchHistoryByIdentity(long identityId) throws InvalidParameterException, UnknownObjectException -
getConfigurationForDomain
ConfigurationContainer getConfigurationForDomain(String domainName) throws InvalidParameterException, UnknownObjectException -
getIdentityHistoryByPersonId
- Throws:
UnknownObjectException
-
getDefinedDeduplicationReasons
List<ReasonDTO> getDefinedDeduplicationReasons(String domainName) throws InvalidParameterException, UnknownObjectException -
parseMatchingConfiguration
ConfigurationContainer parseMatchingConfiguration(String xml) throws InvalidParameterException, MPIException Parses a matching configuration encoded as XML into aConfigurationContainer
.- Parameters:
xml
- the configuration XML- Returns:
- a
ConfigurationContainer
describing the configuration - Throws:
InvalidParameterException
- if the XML is null or emptyMPIException
- if parsing failed
-
encodeMatchingConfiguration
String encodeMatchingConfiguration(ConfigurationContainer config) throws InvalidParameterException, MPIException Parses a matching configuration encoded as XML into aConfigurationContainer
.- Parameters:
config
- aConfigurationContainer
describing the configuration- Returns:
- the configuration as XML
- Throws:
InvalidParameterException
- if the config is nullMPIException
- if encoding failed
-