Class CandidateIdentityDAO

java.lang.Object
fr.paris.lutece.plugins.identityimport.business.CandidateIdentityDAO
All Implemented Interfaces:
ICandidateIdentityDAO

public final class CandidateIdentityDAO extends Object implements ICandidateIdentityDAO
This class provides Data Access methods for CandidateIdentity objects
  • Constructor Details

    • CandidateIdentityDAO

      public CandidateIdentityDAO()
  • Method Details

    • insert

      public void insert(CandidateIdentity candidateIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface ICandidateIdentityDAO
      Parameters:
      candidateIdentity - instance of the CandidateIdentity object to insert
      plugin - the Plugin
    • load

      public Optional<CandidateIdentity> load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface ICandidateIdentityDAO
      Parameters:
      nKey - The identifier of the candidateIdentity
      plugin - the Plugin
      Returns:
      The instance of the candidateIdentity
    • delete

      public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface ICandidateIdentityDAO
      Parameters:
      nKey - The identifier of the CandidateIdentity to delete
      plugin - the Plugin
    • deleteList

      public void deleteList(List<Integer> idList, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      deleteList in interface ICandidateIdentityDAO
    • store

      public void store(CandidateIdentity candidateIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface ICandidateIdentityDAO
      Parameters:
      candidateIdentity - the reference of the CandidateIdentity
      plugin - the Plugin
    • selectCandidateIdentitiesList

      public List<CandidateIdentity> selectCandidateIdentitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of all the candidateIdentity objects and returns them as a list
      Specified by:
      selectCandidateIdentitiesList in interface ICandidateIdentityDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the candidateIdentity objects
    • selectIdCandidateIdentitiesList

      public List<Integer> selectIdCandidateIdentitiesList(int nBatchId, Integer stateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the id of all the candidateIdentity objects and returns them as a list
      Specified by:
      selectIdCandidateIdentitiesList in interface ICandidateIdentityDAO
      plugin - the Plugin
      Returns:
      The list which contains the id of all the candidateIdentity objects
    • selectCandidateIdentitiesListByIds

      public List<CandidateIdentity> selectCandidateIdentitiesListByIds(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
      Specified by:
      selectCandidateIdentitiesListByIds in interface ICandidateIdentityDAO
      Parameters:
      plugin - the Plugin
      listIds - liste of ids
      Returns:
      The list which contains the data of all the avant objects
    • checkIfOneExists

      public boolean checkIfOneExists(fr.paris.lutece.portal.service.plugin.Plugin plugin, String batchReference, List<String> externalIds)
      Description copied from interface: ICandidateIdentityDAO
      Check if at least one of the externalIds exists in the batch identified by batchReference
      Specified by:
      checkIfOneExists in interface ICandidateIdentityDAO
      Parameters:
      plugin - the plugin
      batchReference - the reference of the batch
      externalIds - the list of external ids
      Returns:
      true if at least one external id exists in the batch
    • selectIdentityStates

      public List<ResourceState> selectIdentityStates(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      selectIdentityStates in interface ICandidateIdentityDAO
    • selectIdentityState

      public ResourceState selectIdentityState(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      selectIdentityState in interface ICandidateIdentityDAO
    • getHistory

      public List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> getHistory(int identityId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      getHistory in interface ICandidateIdentityDAO