Class CandidateIdentityHome

java.lang.Object
fr.paris.lutece.plugins.identityimport.business.CandidateIdentityHome

public final class CandidateIdentityHome extends Object
This class provides instances management methods (create, find, ...) for CandidateIdentity objects
  • Method Details

    • create

      public static CandidateIdentity create(CandidateIdentity candidateIdentity)
      Create an instance of the candidateIdentity class
      Parameters:
      candidateIdentity - The instance of the CandidateIdentity which contains the information to store
      Returns:
      The instance of candidateIdentity which has been created with its primary key.
    • update

      public static CandidateIdentity update(CandidateIdentity candidateIdentity)
      Update of the candidateIdentity which is specified in parameter
      Parameters:
      candidateIdentity - The instance of the CandidateIdentity which contains the data to store
      Returns:
      The instance of the candidateIdentity which has been updated
    • remove

      public static void remove(int nKey)
      Remove the candidateIdentity whose identifier is specified in parameter
      Parameters:
      nKey - The candidateIdentity Id
    • delete

      public static void delete(List<Integer> idList)
      Remove the candidateIdentities whose identifier list is specified in parameter
      Parameters:
      idList - The candidateIdentity Id list
    • findByPrimaryKey

      public static Optional<CandidateIdentity> findByPrimaryKey(int nKey)
      Returns an instance of a candidateIdentity whose identifier is specified in parameter
      Parameters:
      nKey - The candidateIdentity primary key
      Returns:
      an instance of CandidateIdentity
    • getCandidateIdentitiesList

      public static List<CandidateIdentity> getCandidateIdentitiesList()
      Load the data of all the candidateIdentity objects and returns them as a list
      Returns:
      the list which contains the data of all the candidateIdentity objects
    • getIdCandidateIdentitiesList

      public static List<Integer> getIdCandidateIdentitiesList(int nBatchId, Integer stateId)
      Load the id of all the candidateIdentity objects and returns them as a list
      Returns:
      the list which contains the id of all the candidateIdentity objects
    • getCandidateIdentitiesListByIds

      public static List<CandidateIdentity> getCandidateIdentitiesListByIds(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
    • checkIfOneExists

      public static boolean checkIfOneExists(String batchReference, List<String> externalIds)
      Check if external IDs exist in a batch identified by its reference
      Parameters:
      externalIds - liste of external ids
      Returns:
      true if one of the given externalIds exists in the batch
    • getCandidateIdentityStates

      public static List<ResourceState> getCandidateIdentityStates(int batchId)
    • getHistory

      public static List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> getHistory(int identityId)
    • getIdentityState

      public static ResourceState getIdentityState(int id)