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 Details

    • 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 store
      secondCuid - 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 store
      secondCuid - 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 store
      cuids - 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 on
      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
    • 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
    • getExcludedIdentitiesUnicityHashCodeList

      public static List<String> getExcludedIdentitiesUnicityHashCodeList(String customerId)
      Load the unicity hashcodes of all the identities that are excluded with the provided CUID, and returns them as a list
    • 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()
    • getAllLocks

      public static List<SuspiciousIdentity> getAllLocks()
    • removeLock

      public static void removeLock(String custommerId)