public final class IdentityHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addIdentityChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange identityChange)
add an identity change event in history table
|
static void |
cancelMerge(Identity identity) |
static Identity |
create(Identity identity,
int dataRetentionPeriodInMonth)
Create an instance of the identity class
|
static void |
deleteAttributeHistory(int identityId)
Delete all attribute history of the identity's provided id.
|
static List<Identity> |
findAll()
Select All
Identity |
static List<String> |
findByAttributeExisting(List<Integer> idAttributeList,
int nbFilledAttributes,
boolean notMerged,
boolean notSuspicious)
Find all identities that have all attributes specified in the list in parameters.
Identities MUST have all those attributes in order to be returned. |
static List<Identity> |
findByAttributesValueForApiSearch(Map<String,List<String>> mapAttributes,
int max)
Find all identities matching one of the values defined on each of the selected Attributes.
|
static Identity |
findByConnectionId(String strConnectionId)
Find by connection ID
|
static Identity |
findByCustomerId(String strCustomerId)
Find by customer ID
|
static Identity |
findByPrimaryKey(int nKey)
Returns an instance of a identity whose identifier is specified in parameter
|
static List<Identity> |
findExpiredNotMergedAndNotConnectedIdentities(int limit)
Search for identities that are not connected, and have a past expirationDate.
|
static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> |
findHistoryByCustomerId(String strCustomerId)
Find history by customer ID
|
static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> |
findHistoryBySearchParameters(String strCustomerId,
String clientCode,
String authorName,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChangeType changeType,
Map<String,String> metadata,
Integer nbDaysFrom)
Find history by customer search parameters
|
static int |
findIdByCustomerId(String strCustomerId)
Find an identity ID from the specified customer ID
|
static Identity |
findMasterIdentityByConnectionId(String strConnectionId)
Find by connection ID
|
static Identity |
findMasterIdentityByConnectionIdNoAttributes(String strConnectionId)
Find by connection ID without attributes
|
static Identity |
findMasterIdentityByCustomerId(String strCustomerId)
Find by customer ID
|
static Identity |
findMasterIdentityByCustomerIdNoAttributes(String strCustomerId)
Find not merged identity by customer ID, without populating attributes.
|
static List<Identity> |
findMergedIdentities(int identityId)
Search for identities that are merged to the provided identity ID.
|
static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UpdatedIdentityDto> |
findUpdatedIdentities(Integer days,
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChangeType> identityChangeTypes,
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchUpdatedAttribute> updatedAttributes)
get identities that have been updated during the previous `days`.
|
static void |
hardRemove(int nIdentityId)
Remove the identity whose identifier is specified in parameter
|
static Identity |
merge(Identity identity)
Archive identities which have been merge as secondary
|
static void |
softRemove(String strCuid) |
static Identity |
update(Identity identity)
Update of the identity which is specified in parameter
|
public static Identity create(Identity identity, int dataRetentionPeriodInMonth)
identity - The instance of the Identity which contains the informations to storepublic static Identity update(Identity identity)
identity - The instance of the Identity which contains the data to storepublic static Identity merge(Identity identity)
identity - public static void cancelMerge(Identity identity)
public static void hardRemove(int nIdentityId)
nIdentityId - The identity Idpublic static void softRemove(String strCuid)
public static int findIdByCustomerId(String strCustomerId)
strCustomerId - the customer IDpublic static Identity findByPrimaryKey(int nKey)
nKey - The identity primary keypublic static Identity findByConnectionId(String strConnectionId)
strConnectionId - The connection IDpublic static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> findHistoryByCustomerId(String strCustomerId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strCustomerId - The customer IDfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> findHistoryBySearchParameters(String strCustomerId, String clientCode, String authorName, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChangeType changeType, Map<String,String> metadata, Integer nbDaysFrom) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strCustomerId - The customer IDfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic static Identity findByCustomerId(String strCustomerId)
strCustomerId - The customer IDpublic static Identity findMasterIdentityByCustomerId(String strCustomerId)
strCustomerId - The customer IDpublic static Identity findMasterIdentityByCustomerIdNoAttributes(String strCustomerId)
strCustomerId - The customer IDpublic static Identity findMasterIdentityByConnectionId(String strConnectionId)
strConnectionId - The customer IDpublic static Identity findMasterIdentityByConnectionIdNoAttributes(String strConnectionId)
strConnectionId - The customer IDpublic static List<Identity> findByAttributesValueForApiSearch(Map<String,List<String>> mapAttributes, int max)
mapAttributes - A map that associates the id of each attributes selected with the list of valuespublic static List<String> findByAttributeExisting(List<Integer> idAttributeList, int nbFilledAttributes, boolean notMerged, boolean notSuspicious)
idAttributeList - the attributes idnotMerged - if the returned identities have to be not mergednotSuspicious - if the returned identities have to not be suspiciousnbFilledAttributes - minimum number of filled attributes over idAttributeListpublic static void addIdentityChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange identityChange)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityChange - identity change eventfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UpdatedIdentityDto> findUpdatedIdentities(Integer days, List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChangeType> identityChangeTypes, List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchUpdatedAttribute> updatedAttributes)
days - max number of days since the last updateidentityChangeTypes - filters on specific change typesupdatedAttributes - filters on specific updated attributespublic static List<Identity> findExpiredNotMergedAndNotConnectedIdentities(int limit)
limit - the max number of returned resultsIdentitypublic static List<Identity> findMergedIdentities(int identityId)
identityId - the 'master' identity IDIdentitypublic static void deleteAttributeHistory(int identityId)
identityId - the identity idCopyright © 2023 City of Paris. All rights reserved.