All Known Implementing Classes:
SuspiciousIdentityDAO

public interface ISuspiciousIdentityDAO
ISuspiciousIdentityDAO Interface
  • Method Details

    • 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 insert
      plugin - 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 SuspiciousIdentity
      plugin - 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 delete
      plugin - the Plugin
    • delete

      void delete(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      customerId - The identifier of the SuspiciousIdentity to delete
      plugin - the Plugin
    • insertExcluded

      void insertExcluded(String firstCuid, String secondCuid, String authorType, String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • checkIfExcluded

      boolean checkIfExcluded(String firstCuid, 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 identity
      secondCuid - cuid of the secondCuid identity
      plugin -
    • checkIfExcluded

      boolean checkIfExcluded(String firstCuid, List<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 identity
      cuids - cuids of the potential secondCuid identity
      plugin -
    • checkIfContainsSuspicious

      boolean checkIfContainsSuspicious(List<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 cuids
      plugin -
    • load

      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 suspiciousIdentity
      plugin - the Plugin
      Returns:
      The instance of the suspiciousIdentity
    • selectSuspiciousIdentitysList

      List<SuspiciousIdentity> selectSuspiciousIdentitysList(String ruleCode, int max, 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 of SuspiciousIdentity to return
      plugin - the Plugin
      Returns:
      The list which contains the data of all the suspiciousIdentity objects
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • selectSuspiciousIdentitysList

      List<SuspiciousIdentity> selectSuspiciousIdentitysList(String ruleCode, List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.SearchAttribute> attributes, Integer max, 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 on
      max - maximum number of SuspiciousIdentity to return
      plugin - the Plugin
      Returns:
      The list which contains the data of all the suspiciousIdentity objects
      Throws:
      fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
    • selectExcludedIdentitiesList

      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

      List<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

      List<SuspiciousIdentity> selectSuspiciousIdentitysListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Parameters:
      plugin - the Plugin
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • selectByCustomerID

      SuspiciousIdentity selectByCustomerID(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of suspiciousIdentity with customerID matching argument
      Parameters:
      plugin - the Plugin
      customerId - id of the customer
      Returns:
      The SuspiciousIdentity
    • selectByCustomerIDs

      List<SuspiciousIdentity> selectByCustomerIDs(List<String> customerIds, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the SuspiciousIdentity list that has been marked for this list of CUIDs, if any
      Parameters:
      customerIds - the list of CUIDs to search for
      plugin - the plugin
      Returns:
      the SuspiciousIdentity list 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(String customerId, boolean lock, String authorType, String authorName, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • purgeLocks

      void purgeLocks(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • getAllLocks

      List<SuspiciousIdentity> getAllLocks(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • removeLock

      void removeLock(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • selectSuspiciousIdentityCuidsList

      List<String> selectSuspiciousIdentityCuidsList(String ruleCode, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • removeExcludedIdentities

      void removeExcludedIdentities(String firstCuid, String secondCuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • removeExcludedIdentities

      void removeExcludedIdentities(String cuid, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • selectExcludedIdentitiesList

      List<ExcludedIdentities> selectExcludedIdentitiesList(String customerId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    • purgeByRuleId

      void purgeByRuleId(Integer ruleId, fr.paris.lutece.portal.service.plugin.Plugin plugin)