Interface IIdentityDAO
- All Known Implementing Classes:
IdentityDAO
public interface IIdentityDAO
IIdentityDAO Interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange identityChange, fr.paris.lutece.portal.service.plugin.Plugin plugin) log changesvoidaddOrUpdateChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange identityChange, fr.paris.lutece.portal.service.plugin.Plugin plugin) voidcancelMerge(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Cancel identity mergevoiddeleteAttributeHistory(int identityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all attribute history of the identity's provided id.getActionsTypesDuringInterval(int interval, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count how many actions and their type were done during an delimited time.getCountActiveMonParisdentities(boolean monParisActive, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count All identities that has been connected or not.getCountAttributesByIdentities(fr.paris.lutece.portal.service.plugin.Plugin plugin) Count how many attributes each entity has.getCountDeletedIdentities(boolean deleted, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count All identities that has been deleted or not.getCountIdentities(fr.paris.lutece.portal.service.plugin.Plugin plugin) Count All Identities.getCountIndexEligibleIdentities(fr.paris.lutece.portal.service.plugin.Plugin plugin) getCountIndexNotEligibleIdentities(fr.paris.lutece.portal.service.plugin.Plugin plugin) getCountMergedIdentities(boolean merged, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count All identities that has been merged or not.getCountUnmergedIdentitiesWithoutAttributes(fr.paris.lutece.portal.service.plugin.Plugin plugin) Count how many attributes has no attribute and isn't merged.getHistoryStatusList(fr.paris.lutece.portal.service.plugin.Plugin plugin) getIdentityLastUpdateDate(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the identity last update date coresponding to the given customer IDvoidhardDelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoidinsert(Identity identity, int dataRetentionPeriodInMonth, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidMerge identityvoidresetUnicityHashCode(Identity identity, fr.paris.lutece.portal.service.plugin.Plugin plugin) reset UnicityHashCode when necessaryselectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin) selectByAttributeExisting(List<Integer> idAttributeList, int nbFilledAttributes, boolean notMerged, boolean notSuspicious, int rulePriority, 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.selectByAttributesValueForApiSearch(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> searchAttributes, int maxNbIdentityReturned, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by a combination of Attribute values.selectByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by connection IDselectByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by customer IDselectExpiredNotMergedAndNotConnectedIdentities(int limit, boolean withGuidOnly, fr.paris.lutece.portal.service.plugin.Plugin plugin) Search for identities that are not connected, and have a past expirationDate.intselectIdByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find an identity ID from the specified customer IDList<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.IdentityChange>selectIdentityHistoryByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) get identity historyList<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, String changeStatus, String authorType, Date modificationDate, Map<String, String> metadata, Integer nbDaysFrom, org.apache.commons.lang3.tuple.Pair<Date, Date> modificationDateInterval, fr.paris.lutece.portal.service.plugin.Plugin plugin, int nMaxNbIdentityReturned) Search for history entries that matches the following parametersselectMergedIdentities(int identityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Search for identities that are merged to the provided identity ID.selectNotMergedByConnectionId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectNotMergedByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectNotMergedNotConnectedWithNonCertifiedAttributeCustomerIds(String attributeKey, String certProcess, int limit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Search for identity customer IDs that are not connected, not merged, and have the specified attribute non-certified.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`.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UpdatedIdentityDto>selectUpdatedFromIds(List<Integer> identityIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) select updated identities from their IDs.selectUpdatedIds(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 identity IDs that have been updated during the previous `days`.voidsoftDelete(String strCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin) Modify the columuns is_deleted and date_delete and connection_id to nullvoidUpdate the record in the table
-
Field Details
-
BEAN_NAME
- See Also:
-
-
Method Details
-
insert
void insert(Identity identity, int dataRetentionPeriodInMonth, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.- Parameters:
identity- instance of the Identity object to insertplugin- the Plugin
-
store
Update the record in the table- Parameters:
identity- the reference of the Identityplugin- the Plugin
-
merge
Merge identity- Parameters:
identity-plugin-
-
cancelMerge
Cancel identity merge- Parameters:
identity-plugin-
-
hardDelete
void hardDelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nKey- The identifier of the Identity to deleteplugin- the Plugin
-
softDelete
Modify the columuns is_deleted and date_delete and connection_id to null- Parameters:
strCuid- The id of the Identity to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the identityplugin- the Plugin- Returns:
- The instance of the identity
-
selectAll
-
selectByConnectionId
Identity selectByConnectionId(String strConnectionId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by connection ID- Parameters:
strConnectionId- The connection IDplugin- The plugin- Returns:
- The identity
-
selectByCustomerId
Identity selectByCustomerId(String strCustomerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by customer ID- Parameters:
strCustomerId- The customerIDplugin- The plugin- Returns:
- The identity
-
selectNotMergedByCustomerId
-
selectNotMergedByConnectionId
-
selectIdByCustomerId
Find an identity ID from the specified customer ID- Parameters:
strCustomerId- the customer IDplugin- the plugin- Returns:
- The identity ID
-
selectByAttributesValueForApiSearch
List<Identity> selectByAttributesValueForApiSearch(List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> searchAttributes, int maxNbIdentityReturned, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find by a combination of Attribute values. Search for identities that match the conditions defined for each of the selected attributes, that is on each of these attributes the exact value is in a list of expected values (no wildcards).- Parameters:
searchAttributes- The list of searched attributes selected with the list of valuesmaxNbIdentityReturned- The maximum number of Identity returned in the listplugin- The plugin- Returns:
- The identity
-
selectByAttributeExisting
List<String> selectByAttributeExisting(List<Integer> idAttributeList, int nbFilledAttributes, boolean notMerged, boolean notSuspicious, int rulePriority, 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.- Parameters:
idAttributeList- the attributes idnotMerged- if the returned identities have to be not mergednotSuspicious- if the returned identities have to not be suspiciousrulePriority- when suspicions are not filtered ( notSuspicious = false ), return only lower priority suspicionsnbFilledAttributes- minimum number of filled attributes over idAttributeListplugin- the plugin- Returns:
- A list of matching identities
-
addChangeHistory
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 log changes- Parameters:
identityChange-plugin-- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
addOrUpdateChangeHistory
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 - Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
selectIdentityHistoryByCustomerId
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 get identity history- Parameters:
strCustomerId-plugin-- Returns:
- the list of identity changes
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
selectUpdated
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`.- Parameters:
days- max number of days since the last updateidentityChangeTypes- filters on specific change typesupdatedAttributes- filters on specific updated attributes- Returns:
- the list of identities
-
selectUpdatedIds
List<Integer> selectUpdatedIds(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 identity IDs that have been updated during the previous `days`.- Parameters:
days- max number of days since the last updateidentityChangeTypes- filters on specific change typesupdatedAttributes- filters on specific updated attributes- Returns:
- the list of identities
-
selectUpdatedFromIds
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.crud.UpdatedIdentityDto> selectUpdatedFromIds(List<Integer> identityIds, fr.paris.lutece.portal.service.plugin.Plugin plugin) select updated identities from their IDs.- Parameters:
identityIds- list of desired identity IDsplugin- the plugin- Returns:
- the list of identities
-
selectIdentityHistoryBySearchParameters
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, String changeStatus, String authorType, Date modificationDate, Map<String, String> metadata, Integer nbDaysFrom, org.apache.commons.lang3.tuple.Pair<Date, throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionDate> modificationDateInterval, fr.paris.lutece.portal.service.plugin.Plugin plugin, int nMaxNbIdentityReturned) Search for history entries that matches the following parameters- Parameters:
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-- Returns:
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
selectExpiredNotMergedAndNotConnectedIdentities
List<Identity> selectExpiredNotMergedAndNotConnectedIdentities(int limit, boolean withGuidOnly, fr.paris.lutece.portal.service.plugin.Plugin plugin) Search for identities that are not connected, and have a past expirationDate.- Parameters:
limit- the max number of resultswithGuidOnly-plugin- the plugin- Returns:
- a list of
Identity
-
selectNotMergedNotConnectedWithNonCertifiedAttributeCustomerIds
List<String> selectNotMergedNotConnectedWithNonCertifiedAttributeCustomerIds(String attributeKey, String certProcess, int limit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Search for identity customer IDs that are not connected, not merged, and have the specified attribute non-certified.- Parameters:
attributeKey- the attribute key to be present and non-certifiedlimit- the max number of returned identities- Returns:
- a list of customer IDs
-
selectMergedIdentities
List<Identity> selectMergedIdentities(int identityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Search for identities that are merged to the provided identity ID.- Parameters:
identityId- the 'master' identity IDplugin- the plugin- Returns:
- a list of
Identity
-
deleteAttributeHistory
void deleteAttributeHistory(int identityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all attribute history of the identity's provided id.- Parameters:
identityId- the identity's idplugin- the plugin
-
getIdentityLastUpdateDate
Timestamp getIdentityLastUpdateDate(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the identity last update date coresponding to the given customer ID- Parameters:
customerId- the customer IDplugin- the plugin- Returns:
- the last update date or null if the identity doesn't exist for the provided CUID
-
getCountIdentities
Count All Identities. -
getCountDeletedIdentities
Integer getCountDeletedIdentities(boolean deleted, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count All identities that has been deleted or not.- Parameters:
deleted- define if the dao count deleted or not deleted identities
-
getCountMergedIdentities
Integer getCountMergedIdentities(boolean merged, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count All identities that has been merged or not.- Parameters:
merged- define if the dao count merged or not merged identities
-
getCountActiveMonParisdentities
Integer getCountActiveMonParisdentities(boolean monParisActive, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count All identities that has been connected or not.- Parameters:
monParisActive- define if the dao count connected or not connected identities
-
getCountAttributesByIdentities
Map<Integer,Integer> getCountAttributesByIdentities(fr.paris.lutece.portal.service.plugin.Plugin plugin) Count how many attributes each entity has. -
getCountUnmergedIdentitiesWithoutAttributes
Integer getCountUnmergedIdentitiesWithoutAttributes(fr.paris.lutece.portal.service.plugin.Plugin plugin) Count how many attributes has no attribute and isn't merged. -
getCountIndexEligibleIdentities
-
getCountIndexNotEligibleIdentities
-
getActionsTypesDuringInterval
List<IndicatorsActionsType> getActionsTypesDuringInterval(int interval, fr.paris.lutece.portal.service.plugin.Plugin plugin) Count how many actions and their type were done during an delimited time. -
getHistoryStatusList
-
resetUnicityHashCode
reset UnicityHashCode when necessary
-