Class SuspiciousIdentityHome
java.lang.Object
fr.paris.lutece.plugins.identitystore.business.duplicates.suspicions.SuspiciousIdentityHome
This class provides instances management methods (create, find, ...) for SuspiciousIdentity objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic intcountSuspiciousIdentity(int ruleId) static SuspiciousIdentitycreate(SuspiciousIdentity suspiciousIdentity) Create an instance of the suspiciousIdentity classstatic voidUpdate of the suspiciousIdentity which is specified in parameterstatic booleanCheck if a couple of suspicious identities are marked as excludedstatic booleanCheck 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<SuspiciousIdentity>static List<ExcludedIdentities>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 listgetExcludedIdentitiesUnicityHashCodeList(String customerId) Load the unicity hashcodes of all the identities that are excluded with the provided CUID, and returns them as a listLoad the id of all the suspiciousIdentity objects and returns them as a listgetSuspiciousIdentityCuidsList(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.ReferenceListLoad 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 voidstatic voidstatic voidremove(int nId) Remove the suspiciousIdentity whose identifier is specified in parameterstatic voidRemove the suspiciousIdentity whose identifier is specified in parameterstatic voidstatic voidremoveExcludedIdentities(String firstCuid, String secondCuid) static voidremoveLock(String custommerId) 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 Details
-
create
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
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
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
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
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
Remove the suspiciousIdentity whose identifier is specified in parameter- Parameters:
customerId- The suspiciousIdentity customer Id
-
findByPrimaryKey
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
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
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
-
getExcludedIdentitiesUnicityHashCodeList
Load the unicity hashcodes of all the identities that are excluded with the provided CUID, and returns them as a list -
removeExcludedIdentities
-
removeExcludedIdentities
-
getSuspiciousIdentityCuidsList
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
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
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
-
selectByCustomerIDs
-
purge
-
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() -
getAllLocks
-
removeLock
-