Class SuspiciousIdentityHome
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.business.duplicates.suspicions.SuspiciousIdentityHome
-
public final class SuspiciousIdentityHome extends Object
This class provides instances management methods (create, find, ...) for SuspiciousIdentity objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountSuspiciousIdentity()static intcountSuspiciousIdentity(int ruleId)static SuspiciousIdentitycreate(SuspiciousIdentity suspiciousIdentity)Create an instance of the suspiciousIdentity classstatic voidexclude(String firstCuid, String secondCuid, String authorType, String authorName)Update of the suspiciousIdentity which is specified in parameterstatic booleanexcluded(String firstCuid, String secondCuid)Check if a couple of suspicious identities are marked as excludedstatic booleanexcluded(String firstCuid, List<String> cuids)Check if a couple of suspicious identities are marked as excludedstatic Optional<SuspiciousIdentity>findByPrimaryKey(int nKey)Returns an instance of a suspiciousIdentity whose identifier is specified in parameterstatic List<ExcludedIdentities>getExcludedIdentitiesList()Load the data of all the excluded identities objects and returns them as a liststatic List<ExcludedIdentities>getExcludedIdentitiesList(String customerId)Load the data of all the excluded identities objects and returns them as a liststatic List<Integer>getIdSuspiciousIdentitysList()Load the id of all the suspiciousIdentity objects and returns them as a liststatic List<String>getSuspiciousIdentityCuidsList(String ruleCode)Load the data of all the suspiciousIdentity objects and returns them as a liststatic List<SuspiciousIdentity>getSuspiciousIdentitysList(String ruleCode, int max, Integer priority)Load the data of all the suspiciousIdentity objects and returns them as a liststatic List<SuspiciousIdentity>getSuspiciousIdentitysList(String ruleCode, List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, Integer max, Integer priority)Load the data of all the suspiciousIdentity objects and returns them as a liststatic List<SuspiciousIdentity>getSuspiciousIdentitysListByIds(List<Integer> listIds)Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListgetSuspiciousIdentitysReferenceList()Load the data of all the suspiciousIdentity objects and returns them as a referenceListstatic booleanhasSuspicious(List<String> customerIds)Verify if at least one customer ID within a list is identified as suspiciousstatic booleanmanageLock(String customerId, String authorName, String authorType, boolean lock)static voidpurge()static voidpurge(Integer ruleId)static voidpurgeLocks()static voidremove(int nId)Remove the suspiciousIdentity whose identifier is specified in parameterstatic voidremove(String customerId)Remove the suspiciousIdentity whose identifier is specified in parameterstatic voidremoveExcludedIdentities(String cuid)static voidremoveExcludedIdentities(String firstCuid, String secondCuid)static SuspiciousIdentityselectByCustomerID(String customerId)static List<SuspiciousIdentity>selectByCustomerIDs(List<String> customerIds)static SuspiciousIdentityupdate(SuspiciousIdentity suspiciousIdentity)Update of the suspiciousIdentity which is specified in parameter
-
-
-
Method Detail
-
create
public static SuspiciousIdentity create(SuspiciousIdentity suspiciousIdentity)
Create an instance of the suspiciousIdentity class- Parameters:
suspiciousIdentity- The instance of the SuspiciousIdentity which contains the informations to store- Returns:
- The instance of suspiciousIdentity which has been created with its primary key.
-
update
public static SuspiciousIdentity update(SuspiciousIdentity suspiciousIdentity)
Update of the suspiciousIdentity which is specified in parameter- Parameters:
suspiciousIdentity- The instance of the SuspiciousIdentity which contains the data to store- Returns:
- The instance of the suspiciousIdentity which has been updated
-
exclude
public static void exclude(String firstCuid, String secondCuid, String authorType, String authorName)
Update of the suspiciousIdentity which is specified in parameter- Parameters:
firstCuid- The CUID of the SuspiciousIdentity which contains the data to storesecondCuid- The CUID of the SuspiciousIdentity which contains the data to store
-
excluded
public static boolean excluded(String firstCuid, String secondCuid)
Check if a couple of suspicious identities are marked as excluded- Parameters:
firstCuid- The CUID of the SuspiciousIdentity which contains the data to storesecondCuid- The CUID of the SuspiciousIdentity which contains the data to store- Returns:
- true if excluded
-
excluded
public static boolean excluded(String firstCuid, List<String> cuids)
Check if a couple of suspicious identities are marked as excluded- Parameters:
firstCuid- The CUID of the SuspiciousIdentity which contains the data to storecuids- The CUIDs of the SuspiciousIdentities which contains the data to store- Returns:
- true if excluded
-
hasSuspicious
public static boolean hasSuspicious(List<String> customerIds)
Verify if at least one customer ID within a list is identified as suspicious- Parameters:
customerIds- The list of CUID- Returns:
- true if excluded
-
remove
public static void remove(int nId)
Remove the suspiciousIdentity whose identifier is specified in parameter- Parameters:
nId- The suspiciousIdentity customer Id
-
remove
public static void remove(String customerId)
Remove the suspiciousIdentity whose identifier is specified in parameter- Parameters:
customerId- The suspiciousIdentity customer Id
-
findByPrimaryKey
public static Optional<SuspiciousIdentity> findByPrimaryKey(int nKey)
Returns an instance of a suspiciousIdentity whose identifier is specified in parameter- Parameters:
nKey- The suspiciousIdentity primary key- Returns:
- an instance of SuspiciousIdentity
-
getSuspiciousIdentitysList
public static List<SuspiciousIdentity> getSuspiciousIdentitysList(String ruleCode, int max, Integer priority) 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- max number of suspicious identities to return- Returns:
- the list which contains the data of all the suspiciousIdentity objects
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getSuspiciousIdentitysList
public static List<SuspiciousIdentity> getSuspiciousIdentitysList(String ruleCode, List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, Integer max, Integer priority) 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- attributes to filter the results onmax- max number of suspicious identities to return- Returns:
- the list which contains the data of all the suspiciousIdentity objects
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getExcludedIdentitiesList
public static List<ExcludedIdentities> getExcludedIdentitiesList()
Load the data of all the excluded identities objects and returns them as a list- Returns:
- the list which contains the data of all the suspiciousIdentity objects
-
getExcludedIdentitiesList
public static List<ExcludedIdentities> getExcludedIdentitiesList(String customerId)
Load the data of all the excluded identities objects and returns them as a list- Returns:
- the list which contains the data of all the suspiciousIdentity objects
-
removeExcludedIdentities
public static void removeExcludedIdentities(String firstCuid, String secondCuid)
-
removeExcludedIdentities
public static void removeExcludedIdentities(String cuid)
-
getSuspiciousIdentityCuidsList
public static List<String> getSuspiciousIdentityCuidsList(String ruleCode)
Load the data of all the suspiciousIdentity objects and returns them as a list- Parameters:
ruleCode- code of the duplicate rule- Returns:
- the list which contains the data of all the suspiciousIdentity objects
-
getIdSuspiciousIdentitysList
public static List<Integer> getIdSuspiciousIdentitysList()
Load the id of all the suspiciousIdentity objects and returns them as a list- Returns:
- the list which contains the id of all the suspiciousIdentity objects
-
getSuspiciousIdentitysReferenceList
public static fr.paris.lutece.util.ReferenceList getSuspiciousIdentitysReferenceList()
Load the data of all the suspiciousIdentity objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the suspiciousIdentity objects
-
getSuspiciousIdentitysListByIds
public static List<SuspiciousIdentity> getSuspiciousIdentitysListByIds(List<Integer> listIds)
Load the data of all the avant objects and returns them as a list- Parameters:
listIds- liste of ids- Returns:
- the list which contains the data of all the avant objects
-
selectByCustomerID
public static SuspiciousIdentity selectByCustomerID(String customerId)
-
selectByCustomerIDs
public static List<SuspiciousIdentity> selectByCustomerIDs(List<String> customerIds)
-
purge
public static void purge(Integer ruleId)
-
purge
public static void purge()
-
countSuspiciousIdentity
public static int countSuspiciousIdentity(int ruleId)
-
countSuspiciousIdentity
public static int countSuspiciousIdentity()
-
manageLock
public static boolean manageLock(String customerId, String authorName, String authorType, boolean lock) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
purgeLocks
public static void purgeLocks()
-
-