public interface IIdentityDAO
| Modifier and Type | Method and Description |
|---|---|
void |
addChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange identityChange,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
log changes
|
void |
addOrUpdateChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange identityChange,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
cancelMerge(Identity identity,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Cancel identity merge
|
void |
hardDelete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Identity identity,
int dataRetentionPeriodInMonth,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Identity |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
void |
merge(Identity identity,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Merge identity
|
List<Identity> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<Identity> |
selectAllByConnectionId(String strConnectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all identities by connection ID.
|
List<Identity> |
selectAllByCustomerId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all identities by customer ID.
|
List<Identity> |
selectByAllAttributesValue(String strAttributeValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all identities matching the query on all Attributes, connection_id and customer_id fields..
|
List<String> |
selectByAttributeExisting(List<Integer> idAttributeList,
int nbFilledAttributes,
boolean notMerged,
boolean notSuspicious,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find all identities that have all attributes specified in the list in parameters.
Identities MUST have all those attributes in order to be returned. |
List<Identity> |
selectByAttributesValueForApiSearch(Map<String,List<String>> mapAttributes,
int maxNbIdentityReturned,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by a combination of Attribute values.
|
List<Identity> |
selectByAttributeValue(String strAttributeId,
String strAttributeValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by a given Attribute value
|
Identity |
selectByConnectionId(String strConnectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by connection ID
|
Identity |
selectByCustomerId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by customer ID
|
List<String> |
selectCustomerIdsList(int nStart,
int nLimit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of nLimit customerIds from the nStart identity and returns them as a list
|
List<String> |
selectCustomerIdsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the customer id of all the identity objects and returns them as a list
|
int |
selectIdByConnectionId(String strConnectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find an identity ID from the specified connection ID
|
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> |
selectIdentityHistoryByCustomerId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
get identity history
|
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> |
selectIdentityHistoryBySearchParameters(String strCustomerId,
String clientCode,
String authorName,
fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChangeType changeType,
Map<String,String> metadata,
Integer nbDaysFrom,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search for history entries that matches the following parameters
|
fr.paris.lutece.util.ReferenceList |
selectIdentitysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the identity objects and returns them as a referenceList
|
Identity |
selectNotMergedByConnectionId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
Identity |
selectNotMergedByCustomerId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
Identity |
selectNotMergedByCustomerIdAndConnectionID(String strCustomerId,
String strConnectionId,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UpdatedIdentityDto> |
selectUpdated(int days,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
get identities that have been updated during the previous `days`.
|
void |
softDelete(String strCuid,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Modify the columuns is_deleted and date_delete and connection_id to null
|
void |
store(Identity identity,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
static final String BEAN_NAME
void insert(Identity identity, int dataRetentionPeriodInMonth, fr.paris.lutece.portal.service.plugin.Plugin plugin)
identity - instance of the Identity object to insertplugin - the Pluginvoid store(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
identity - the reference of the Identityplugin - the Pluginvoid merge(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
identity - plugin - void cancelMerge(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
identity - plugin - void hardDelete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The identifier of the Identity to deleteplugin - the Pluginvoid softDelete(String strCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strCuid - The id of the Identity to deleteplugin - the PluginIdentity load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The identifier of the identityplugin - the PluginList<String> selectCustomerIdsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the PluginList<String> selectCustomerIdsList(int nStart, int nLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nStart - the count of customerId from where startednLimit - the max count of customerId to retrieveplugin - the Pluginfr.paris.lutece.util.ReferenceList selectIdentitysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the PluginIdentity selectByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strConnectionId - The connection IDplugin - The pluginIdentity selectByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strCustomerId - The customerIDplugin - The pluginIdentity selectNotMergedByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Identity selectNotMergedByConnectionId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Identity selectNotMergedByCustomerIdAndConnectionID(String strCustomerId, String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
int selectIdByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strConnectionId - the connection IDplugin - the pluginList<Identity> selectByAttributeValue(String strAttributeId, String strAttributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strAttributeId - The value to matchstrAttributeValue - The value to matchplugin - The pluginList<Identity> selectByAttributesValueForApiSearch(Map<String,List<String>> mapAttributes, int maxNbIdentityReturned, fr.paris.lutece.portal.service.plugin.Plugin plugin)
mapAttributes - A map that associates the id of each attributes selected with the list of valuesmaxNbIdentityReturned - The maximum number of Identity returned in the listplugin - The pluginList<Identity> selectByAllAttributesValue(String strAttributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strAttributeValue - The value to matchplugin - The pluginList<Identity> selectAllByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strCustomerId - The customer IDplugin - The pluginList<Identity> selectAllByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strConnectionId - The connection IDplugin - The pluginList<String> selectByAttributeExisting(List<Integer> idAttributeList, int nbFilledAttributes, boolean notMerged, boolean notSuspicious, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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 idAttributeListplugin - the pluginvoid addChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange identityChange,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
identityChange - plugin - fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionvoid addOrUpdateChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange identityChange,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionList<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> selectIdentityHistoryByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strCustomerId - plugin - fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionList<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UpdatedIdentityDto> selectUpdated(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin)
days - max number of days since the last updateList<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> selectIdentityHistoryBySearchParameters(String strCustomerId, String clientCode, String authorName, fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChangeType changeType, Map<String,String> metadata, Integer nbDaysFrom, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
strCustomerId - customer id of the identityclientCode - client code that modified the identityauthorName - name of the author that modified the identitychangeType - the type of identity changemetadata - metadata of the identity changenbDaysFrom - number of day from the current dateplugin - fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionCopyright © 2023 City of Paris. All rights reserved.