public final class IdentityDAO extends Object implements IIdentityDAO
BEAN_NAME| Constructor and Description |
|---|
IdentityDAO() |
| 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 |
deleteAttributeHistory(int identityId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete all attribute history of the identity's provided id.
|
Timestamp |
getIdentityLastUpdateDate(String customerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the identity last update date coresponding to the given customer ID
|
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
|
String |
newCustomerIdKey()
Generates a new customerId key using Java UUID
|
List<Identity> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) |
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 nMaxNbIdentityReturned,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find by a combination of Attribute values.
|
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<Identity> |
selectExpiredNotMergedAndNotConnectedIdentities(int limit,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search for identities that are not connected, and have a past expirationDate.
|
int |
selectIdByCustomerId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find an identity ID from the specified customer 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 customerId,
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
|
List<Identity> |
selectMergedIdentities(int identityId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Search for identities that are merged to the provided identity ID.
|
Identity |
selectNotMergedByConnectionId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
Identity |
selectNotMergedByCustomerId(String strCustomerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UpdatedIdentityDto> |
selectUpdated(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,
Integer max,
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
|
public String newCustomerIdKey()
public void insert(Identity identity, int dataRetentionPeriodInMonth, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IIdentityDAOidentity - instance of the Identity object to insertplugin - the Pluginpublic Identity load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IIdentityDAOnKey - The identifier of the identityplugin - the Pluginpublic void hardDelete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
hardDelete in interface IIdentityDAOnKey - The identifier of the Identity to deleteplugin - the Pluginpublic void softDelete(String strCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
softDelete in interface IIdentityDAOstrCuid - The id of the Identity to deleteplugin - the Pluginpublic void merge(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
merge in interface IIdentityDAOpublic void cancelMerge(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityDAOcancelMerge in interface IIdentityDAOpublic void store(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IIdentityDAOidentity - the reference of the Identityplugin - the Pluginpublic List<Identity> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface IIdentityDAOpublic Identity selectByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityDAOselectByConnectionId in interface IIdentityDAOstrConnectionId - The connection IDplugin - The pluginpublic Identity selectByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityDAOselectByCustomerId in interface IIdentityDAOstrCustomerId - The customerIDplugin - The pluginpublic Identity selectNotMergedByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNotMergedByCustomerId in interface IIdentityDAOpublic Identity selectNotMergedByConnectionId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNotMergedByConnectionId in interface IIdentityDAOpublic int selectIdByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IIdentityDAOselectIdByCustomerId in interface IIdentityDAOstrCustomerId - the customer IDplugin - the pluginpublic List<Identity> selectByAttributesValueForApiSearch(Map<String,List<String>> mapAttributes, int nMaxNbIdentityReturned, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByAttributesValueForApiSearch in interface IIdentityDAOmapAttributes - A map that associates the id of each attributes selected with the list of valuesnMaxNbIdentityReturned - The maximum number of Identity returned in the listplugin - The pluginpublic List<String> selectByAttributeExisting(List<Integer> idAttributeList, int nbFilledAttributes, boolean notMerged, boolean notSuspicious, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByAttributeExisting in interface IIdentityDAOidAttributeList - the attributes idnbFilledAttributes - minimum number of filled attributes over idAttributeListnotMerged - if the returned identities have to be not mergednotSuspicious - if the returned identities have to not be suspiciousplugin - the pluginpublic void 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
IIdentityDAOaddChangeHistory in interface IIdentityDAOfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic void 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
addOrUpdateChangeHistory in interface IIdentityDAOfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic List<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
selectIdentityHistoryByCustomerId in interface IIdentityDAOfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UpdatedIdentityDto> selectUpdated(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, Integer max, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUpdated in interface IIdentityDAOdays - max number of days since the last updateidentityChangeTypes - filters on specific change typesupdatedAttributes - filters on specific updated attributespublic List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange> selectIdentityHistoryBySearchParameters(String customerId, 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
IIdentityDAOselectIdentityHistoryBySearchParameters in interface IIdentityDAOcustomerId - 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 datefr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic List<Identity> selectExpiredNotMergedAndNotConnectedIdentities(int limit, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectExpiredNotMergedAndNotConnectedIdentities in interface IIdentityDAOlimit - the max number of resultsplugin - the pluginIdentitypublic List<Identity> selectMergedIdentities(int identityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectMergedIdentities in interface IIdentityDAOidentityId - the 'master' identity IDplugin - the pluginIdentitypublic void deleteAttributeHistory(int identityId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAttributeHistory in interface IIdentityDAOidentityId - the identity's idplugin - the pluginpublic Timestamp getIdentityLastUpdateDate(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getIdentityLastUpdateDate in interface IIdentityDAOcustomerId - the customer IDplugin - the pluginCopyright © 2024 City of Paris. All rights reserved.