Class CandidateIdentityHome
java.lang.Object
fr.paris.lutece.plugins.identityimport.business.CandidateIdentityHome
This class provides instances management methods (create, find, ...) for CandidateIdentity objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckIfOneExists(String batchReference, List<String> externalIds) Check if external IDs exist in a batch identified by its referencestatic CandidateIdentitycreate(CandidateIdentity candidateIdentity) Create an instance of the candidateIdentity classstatic voidRemove the candidateIdentities whose identifier list is specified in parameterstatic Optional<CandidateIdentity>findByPrimaryKey(int nKey) Returns an instance of a candidateIdentity whose identifier is specified in parameterstatic List<CandidateIdentity>Load the data of all the candidateIdentity objects and returns them as a liststatic List<CandidateIdentity>getCandidateIdentitiesListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a liststatic List<ResourceState>getCandidateIdentityStates(int batchId) static List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory>getHistory(int identityId) getIdCandidateIdentitiesList(int nBatchId, Integer stateId) Load the id of all the candidateIdentity objects and returns them as a liststatic ResourceStategetIdentityState(int id) static voidremove(int nKey) Remove the candidateIdentity whose identifier is specified in parameterstatic CandidateIdentityupdate(CandidateIdentity candidateIdentity) Update of the candidateIdentity which is specified in parameter
-
Method Details
-
create
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
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
Remove the candidateIdentities whose identifier list is specified in parameter- Parameters:
idList- The candidateIdentity Id list
-
findByPrimaryKey
Returns an instance of a candidateIdentity whose identifier is specified in parameter- Parameters:
nKey- The candidateIdentity primary key- Returns:
- an instance of 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
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
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
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
-
getHistory
public static List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> getHistory(int identityId) -
getIdentityState
-