Interface ISuspiciousIdentityDAO
-
- All Known Implementing Classes:
SuspiciousIdentityDAO
public interface ISuspiciousIdentityDAOISuspiciousIdentityDAO Interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckIfContainsSuspicious(java.util.List<java.lang.String> customerIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)Verify if at least one customer ID within a list is identified as suspiciousbooleancheckIfExcluded(java.lang.String firstCuid, java.lang.String secondCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)Verify if suspicious identities are already marked as excludedbooleancheckIfExcluded(java.lang.String firstCuid, java.util.List<java.lang.String> cuids, fr.paris.lutece.portal.service.plugin.Plugin plugin)Verify if suspicious identities are already marked as excludedintcountSuspiciousIdentities(int ruleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the number of pending suspicious identities for a given rule.intcountSuspiciousIdentities(fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the number of pending suspicious identitiesvoiddelete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddelete(java.lang.String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablejava.util.List<SuspiciousIdentity>getAllLocks(fr.paris.lutece.portal.service.plugin.Plugin plugin)voidinsert(SuspiciousIdentity suspiciousIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.voidinsertExcluded(java.lang.String firstCuid, java.lang.String secondCuid, java.lang.String authorType, java.lang.String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)java.util.Optional<SuspiciousIdentity>load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablebooleanmanageLock(java.lang.String customerId, boolean lock, java.lang.String authorType, java.lang.String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)voidpurge(fr.paris.lutece.portal.service.plugin.Plugin plugin)Truncates duplicate suspicionsvoidpurgeByRuleId(java.lang.Integer ruleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)voidpurgeLocks(fr.paris.lutece.portal.service.plugin.Plugin plugin)voidremoveExcludedIdentities(java.lang.String cuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)voidremoveExcludedIdentities(java.lang.String firstCuid, java.lang.String secondCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)voidremoveLock(java.lang.String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)SuspiciousIdentityselectByCustomerID(java.lang.String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of suspiciousIdentity with customerID matching argumentjava.util.List<SuspiciousIdentity>selectByCustomerIDs(java.util.List<java.lang.String> customerIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get theSuspiciousIdentitylist that has been marked for this list of CUIDs, if anyjava.util.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 listjava.util.List<ExcludedIdentities>selectExcludedIdentitiesList(java.lang.String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)java.util.List<java.lang.Integer>selectIdSuspiciousIdentitysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the id of all the suspiciousIdentity objects and returns them as a listjava.util.List<java.lang.String>selectSuspiciousIdentityCuidsList(java.lang.String ruleCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)java.util.List<SuspiciousIdentity>selectSuspiciousIdentitysList(java.lang.String ruleCode, int max, java.lang.Integer priority, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the suspiciousIdentity objects and returns them as a listjava.util.List<SuspiciousIdentity>selectSuspiciousIdentitysList(java.lang.String ruleCode, java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, java.lang.Integer max, java.lang.Integer priority, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the suspiciousIdentity objects and returns them as a listjava.util.List<SuspiciousIdentity>selectSuspiciousIdentitysListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectSuspiciousIdentitysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the suspiciousIdentity objects and returns them as a referenceListvoidstore(SuspiciousIdentity suspiciousIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
void insert(SuspiciousIdentity suspiciousIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Parameters:
suspiciousIdentity- instance of the SuspiciousIdentity object to insertplugin- the Plugin
-
store
void store(SuspiciousIdentity suspiciousIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Parameters:
suspiciousIdentity- the reference of the SuspiciousIdentityplugin- the Plugin
-
delete
void delete(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
nId- The identifier of the SuspiciousIdentity to deleteplugin- the Plugin
-
delete
void delete(java.lang.String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
customerId- The identifier of the SuspiciousIdentity to deleteplugin- the Plugin
-
insertExcluded
void insertExcluded(java.lang.String firstCuid, java.lang.String secondCuid, java.lang.String authorType, java.lang.String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
checkIfExcluded
boolean checkIfExcluded(java.lang.String firstCuid, java.lang.String secondCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)Verify if suspicious identities are already marked as excluded- Parameters:
firstCuid- cuid of the firstCuid identitysecondCuid- cuid of the secondCuid identityplugin-
-
checkIfExcluded
boolean checkIfExcluded(java.lang.String firstCuid, java.util.List<java.lang.String> cuids, fr.paris.lutece.portal.service.plugin.Plugin plugin)Verify if suspicious identities are already marked as excluded- Parameters:
firstCuid- cuid of the firstCuid identitycuids- cuids of the potential secondCuid identityplugin-
-
checkIfContainsSuspicious
boolean checkIfContainsSuspicious(java.util.List<java.lang.String> customerIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)Verify if at least one customer ID within a list is identified as suspicious- Parameters:
customerIds- list of cuidsplugin-
-
load
java.util.Optional<SuspiciousIdentity> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nKey- The identifier of the suspiciousIdentityplugin- the Plugin- Returns:
- The instance of the suspiciousIdentity
-
selectSuspiciousIdentitysList
java.util.List<SuspiciousIdentity> selectSuspiciousIdentitysList(java.lang.String ruleCode, int max, java.lang.Integer priority, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Load the data of all the suspiciousIdentity objects and returns them as a list- Parameters:
max- maximum number ofSuspiciousIdentityto returnplugin- the Plugin- Returns:
- The list which contains the data of all the suspiciousIdentity objects
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
selectSuspiciousIdentitysList
java.util.List<SuspiciousIdentity> selectSuspiciousIdentitysList(java.lang.String ruleCode, java.util.List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, java.lang.Integer max, java.lang.Integer priority, fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
Load the data of all the suspiciousIdentity objects and returns them as a list- Parameters:
attributes- attribute keys and values to filter onmax- maximum number ofSuspiciousIdentityto returnplugin- the Plugin- Returns:
- The list which contains the data of all the suspiciousIdentity objects
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
selectExcludedIdentitiesList
java.util.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- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the suspiciousIdentity objects
-
selectIdSuspiciousIdentitysList
java.util.List<java.lang.Integer> selectIdSuspiciousIdentitysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the suspiciousIdentity objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the id of all the suspiciousIdentity objects
-
selectSuspiciousIdentitysReferenceList
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- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the suspiciousIdentity objects
-
selectSuspiciousIdentitysListByIds
java.util.List<SuspiciousIdentity> selectSuspiciousIdentitysListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, java.util.List<java.lang.Integer> listIds)
Load the data of all the avant objects and returns them as a list- Parameters:
plugin- the PluginlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectByCustomerID
SuspiciousIdentity selectByCustomerID(java.lang.String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of suspiciousIdentity with customerID matching argument- Parameters:
plugin- the PlugincustomerId- id of the customer- Returns:
- The SuspiciousIdentity
-
selectByCustomerIDs
java.util.List<SuspiciousIdentity> selectByCustomerIDs(java.util.List<java.lang.String> customerIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get theSuspiciousIdentitylist that has been marked for this list of CUIDs, if any- Parameters:
customerIds- the list of CUIDs to search forplugin- the plugin- Returns:
- the
SuspiciousIdentitylist that has been marked for this list of CUIDs, if any
-
purge
void purge(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Truncates duplicate suspicions- Parameters:
plugin-
-
countSuspiciousIdentities
int countSuspiciousIdentities(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the number of pending suspicious identities- Returns:
- the count
-
countSuspiciousIdentities
int countSuspiciousIdentities(int ruleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Return the number of pending suspicious identities for a given rule.- Parameters:
ruleId- the rule ID- Returns:
- the count
-
manageLock
boolean manageLock(java.lang.String customerId, boolean lock, java.lang.String authorType, java.lang.String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
purgeLocks
void purgeLocks(fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
getAllLocks
java.util.List<SuspiciousIdentity> getAllLocks(fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
removeLock
void removeLock(java.lang.String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
selectSuspiciousIdentityCuidsList
java.util.List<java.lang.String> selectSuspiciousIdentityCuidsList(java.lang.String ruleCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
removeExcludedIdentities
void removeExcludedIdentities(java.lang.String firstCuid, java.lang.String secondCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
removeExcludedIdentities
void removeExcludedIdentities(java.lang.String cuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
selectExcludedIdentitiesList
java.util.List<ExcludedIdentities> selectExcludedIdentitiesList(java.lang.String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
purgeByRuleId
void purgeByRuleId(java.lang.Integer ruleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
-
-