public final class SuspiciousIdentityDAO extends Object implements ISuspiciousIdentityDAO
| Constructor and Description |
|---|
SuspiciousIdentityDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkIfContainsSuspicious(List<String> customerIds,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verify if at least one customer ID within a list is identified as suspicious
|
boolean |
checkIfExcluded(String firstCuid,
List<String> cuids,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verify if suspicious identities are already marked as excluded
|
boolean |
checkIfExcluded(String firstCuid,
String secondCuid,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Verify if suspicious identities are already marked as excluded
|
int |
countSuspiciousIdentities(int ruleId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of pending suspicious identities for a given rule.
|
void |
delete(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
delete(String customerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(SuspiciousIdentity suspiciousIdentity,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insertExcluded(String firstCuid,
String secondCuid,
String authorType,
String authorName,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
Optional<SuspiciousIdentity> |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
boolean |
manageLock(String customerId,
boolean lock,
String authorType,
String authorName,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
purge(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Truncates duplicate suspicions
|
void |
purgeLocks(fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
removeExcludedIdentities(String cuid,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
removeExcludedIdentities(String firstCuid,
String secondCuid,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
SuspiciousIdentity |
selectByCustomerID(String customerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of suspiciousIdentity with customerID matching argument
|
List<ExcludedIdentities> |
selectExcludedIdentitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the excluded identities objects and returns them as a list
|
List<ExcludedIdentities> |
selectExcludedIdentitiesList(String customerId,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<Integer> |
selectIdSuspiciousIdentitysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the suspiciousIdentity objects and returns them as a list
|
List<String> |
selectSuspiciousIdentityCuidsList(String ruleCode,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
List<SuspiciousIdentity> |
selectSuspiciousIdentitysList(String ruleCode,
int max,
Integer priority,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the suspiciousIdentity objects and returns them as a list
|
List<SuspiciousIdentity> |
selectSuspiciousIdentitysList(String ruleCode,
List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes,
Integer max,
Integer priority,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the suspiciousIdentity objects and returns them as a list
|
List<SuspiciousIdentity> |
selectSuspiciousIdentitysListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin,
List<Integer> listIds)
Load the data of all the avant objects and returns them as a list
|
fr.paris.lutece.util.ReferenceList |
selectSuspiciousIdentitysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the suspiciousIdentity objects and returns them as a referenceList
|
void |
store(SuspiciousIdentity suspiciousIdentity,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(SuspiciousIdentity suspiciousIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ISuspiciousIdentityDAOsuspiciousIdentity - instance of the SuspiciousIdentity object to insertplugin - the Pluginpublic void insertExcluded(String firstCuid, String secondCuid, String authorType, String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertExcluded in interface ISuspiciousIdentityDAOpublic Optional<SuspiciousIdentity> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ISuspiciousIdentityDAOnKey - The identifier of the suspiciousIdentityplugin - the Pluginpublic SuspiciousIdentity selectByCustomerID(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByCustomerID in interface ISuspiciousIdentityDAOcustomerId - id of the customerplugin - the Pluginpublic void delete(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ISuspiciousIdentityDAOnId - The identifier of the SuspiciousIdentity to deleteplugin - the Pluginpublic void delete(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ISuspiciousIdentityDAOcustomerId - The identifier of the SuspiciousIdentity to deleteplugin - the Pluginpublic void store(SuspiciousIdentity suspiciousIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ISuspiciousIdentityDAOsuspiciousIdentity - the reference of the SuspiciousIdentityplugin - the Pluginpublic List<SuspiciousIdentity> selectSuspiciousIdentitysList(String ruleCode, int max, Integer priority, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
selectSuspiciousIdentitysList in interface ISuspiciousIdentityDAOmax - maximum number of SuspiciousIdentity to returnplugin - the Pluginfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic List<SuspiciousIdentity> selectSuspiciousIdentitysList(String ruleCode, List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, Integer max, Integer priority, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
selectSuspiciousIdentitysList in interface ISuspiciousIdentityDAOattributes - attribute keys and values to filter onmax - maximum number of SuspiciousIdentity to returnplugin - the Pluginfr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionpublic List<ExcludedIdentities> selectExcludedIdentitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISuspiciousIdentityDAOselectExcludedIdentitiesList in interface ISuspiciousIdentityDAOplugin - the Pluginpublic List<ExcludedIdentities> selectExcludedIdentitiesList(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectExcludedIdentitiesList in interface ISuspiciousIdentityDAOpublic List<Integer> selectIdSuspiciousIdentitysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdSuspiciousIdentitysList in interface ISuspiciousIdentityDAOplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectSuspiciousIdentitysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSuspiciousIdentitysReferenceList in interface ISuspiciousIdentityDAOplugin - the Pluginpublic List<SuspiciousIdentity> selectSuspiciousIdentitysListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
selectSuspiciousIdentitysListByIds in interface ISuspiciousIdentityDAOplugin - the PluginlistIds - liste of idspublic void purge(fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISuspiciousIdentityDAOpurge in interface ISuspiciousIdentityDAOpublic int countSuspiciousIdentities(int ruleId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countSuspiciousIdentities in interface ISuspiciousIdentityDAOruleId - the rule IDpublic boolean checkIfExcluded(String firstCuid, String secondCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISuspiciousIdentityDAOcheckIfExcluded in interface ISuspiciousIdentityDAOfirstCuid - cuid of the firstCuid identitysecondCuid - cuid of the secondCuid identitypublic boolean checkIfExcluded(String firstCuid, List<String> cuids, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISuspiciousIdentityDAOcheckIfExcluded in interface ISuspiciousIdentityDAOfirstCuid - cuid of the firstCuid identitycuids - cuids of the potential secondCuid identitypublic boolean checkIfContainsSuspicious(List<String> customerIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISuspiciousIdentityDAOcheckIfContainsSuspicious in interface ISuspiciousIdentityDAOcustomerIds - list of cuidspublic boolean manageLock(String customerId, boolean lock, String authorType, String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
manageLock in interface ISuspiciousIdentityDAOpublic void purgeLocks(fr.paris.lutece.portal.service.plugin.Plugin plugin)
purgeLocks in interface ISuspiciousIdentityDAOpublic List<String> selectSuspiciousIdentityCuidsList(String ruleCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSuspiciousIdentityCuidsList in interface ISuspiciousIdentityDAOpublic void removeExcludedIdentities(String firstCuid, String secondCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeExcludedIdentities in interface ISuspiciousIdentityDAOpublic void removeExcludedIdentities(String cuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeExcludedIdentities in interface ISuspiciousIdentityDAOCopyright © 2023 City of Paris. All rights reserved.