Class SuspiciousIdentityHome


  • public final class SuspiciousIdentityHome
    extends java.lang.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 int countSuspiciousIdentity()  
      static int countSuspiciousIdentity​(int ruleId)  
      static SuspiciousIdentity create​(SuspiciousIdentity suspiciousIdentity)
      Create an instance of the suspiciousIdentity class
      static void exclude​(java.lang.String firstCuid, java.lang.String secondCuid, java.lang.String authorType, java.lang.String authorName)
      Update of the suspiciousIdentity which is specified in parameter
      static boolean excluded​(java.lang.String firstCuid, java.lang.String secondCuid)
      Check if a couple of suspicious identities are marked as excluded
      static boolean excluded​(java.lang.String firstCuid, java.util.List<java.lang.String> cuids)
      Check if a couple of suspicious identities are marked as excluded
      static java.util.Optional<SuspiciousIdentity> findByPrimaryKey​(int nKey)
      Returns an instance of a suspiciousIdentity whose identifier is specified in parameter
      static java.util.List<SuspiciousIdentity> getAllLocks()  
      static java.util.List<ExcludedIdentities> getExcludedIdentitiesList()
      Load the data of all the excluded identities objects and returns them as a list
      static java.util.List<ExcludedIdentities> getExcludedIdentitiesList​(java.lang.String customerId)
      Load the data of all the excluded identities objects and returns them as a list
      static java.util.List<java.lang.Integer> getIdSuspiciousIdentitysList()
      Load the id of all the suspiciousIdentity objects and returns them as a list
      static java.util.List<java.lang.String> getSuspiciousIdentityCuidsList​(java.lang.String ruleCode)
      Load the data of all the suspiciousIdentity objects and returns them as a list
      static java.util.List<SuspiciousIdentity> getSuspiciousIdentitysList​(java.lang.String ruleCode, int max, java.lang.Integer priority)
      Load the data of all the suspiciousIdentity objects and returns them as a list
      static java.util.List<SuspiciousIdentity> getSuspiciousIdentitysList​(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)
      Load the data of all the suspiciousIdentity objects and returns them as a list
      static java.util.List<SuspiciousIdentity> getSuspiciousIdentitysListByIds​(java.util.List<java.lang.Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      static fr.paris.lutece.util.ReferenceList getSuspiciousIdentitysReferenceList()
      Load the data of all the suspiciousIdentity objects and returns them as a referenceList
      static boolean hasSuspicious​(java.util.List<java.lang.String> customerIds)
      Verify if at least one customer ID within a list is identified as suspicious
      static boolean manageLock​(java.lang.String customerId, java.lang.String authorName, java.lang.String authorType, boolean lock)  
      static void purge()  
      static void purge​(java.lang.Integer ruleId)  
      static void purgeLocks()  
      static void remove​(int nId)
      Remove the suspiciousIdentity whose identifier is specified in parameter
      static void remove​(java.lang.String customerId)
      Remove the suspiciousIdentity whose identifier is specified in parameter
      static void removeExcludedIdentities​(java.lang.String cuid)  
      static void removeExcludedIdentities​(java.lang.String firstCuid, java.lang.String secondCuid)  
      static void removeLock​(java.lang.String custommerId)  
      static SuspiciousIdentity selectByCustomerID​(java.lang.String customerId)  
      static java.util.List<SuspiciousIdentity> selectByCustomerIDs​(java.util.List<java.lang.String> customerIds)  
      static SuspiciousIdentity update​(SuspiciousIdentity suspiciousIdentity)
      Update of the suspiciousIdentity which is specified in parameter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(java.lang.String firstCuid,
                                   java.lang.String secondCuid,
                                   java.lang.String authorType,
                                   java.lang.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​(java.lang.String firstCuid,
                                       java.lang.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​(java.lang.String firstCuid,
                                       java.util.List<java.lang.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​(java.util.List<java.lang.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​(java.lang.String customerId)
        Remove the suspiciousIdentity whose identifier is specified in parameter
        Parameters:
        customerId - The suspiciousIdentity customer Id
      • findByPrimaryKey

        public static java.util.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 java.util.List<SuspiciousIdentity> getSuspiciousIdentitysList​(java.lang.String ruleCode,
                                                                                    int max,
                                                                                    java.lang.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 java.util.List<SuspiciousIdentity> getSuspiciousIdentitysList​(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)
                                                                             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 java.util.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 java.util.List<ExcludedIdentities> getExcludedIdentitiesList​(java.lang.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​(java.lang.String firstCuid,
                                                    java.lang.String secondCuid)
      • removeExcludedIdentities

        public static void removeExcludedIdentities​(java.lang.String cuid)
      • getSuspiciousIdentityCuidsList

        public static java.util.List<java.lang.String> getSuspiciousIdentityCuidsList​(java.lang.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 java.util.List<java.lang.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 java.util.List<SuspiciousIdentity> getSuspiciousIdentitysListByIds​(java.util.List<java.lang.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​(java.lang.String customerId)
      • selectByCustomerIDs

        public static java.util.List<SuspiciousIdentity> selectByCustomerIDs​(java.util.List<java.lang.String> customerIds)
      • purge

        public static void purge​(java.lang.Integer ruleId)
      • purge

        public static void purge()
      • countSuspiciousIdentity

        public static int countSuspiciousIdentity​(int ruleId)
      • countSuspiciousIdentity

        public static int countSuspiciousIdentity()
      • manageLock

        public static boolean manageLock​(java.lang.String customerId,
                                         java.lang.String authorName,
                                         java.lang.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()
      • removeLock

        public static void removeLock​(java.lang.String custommerId)