Class CandidateIdentityDAO
java.lang.Object
fr.paris.lutece.plugins.identityimport.business.CandidateIdentityDAO
- All Implemented Interfaces:
ICandidateIdentityDAO
This class provides Data Access methods for CandidateIdentity objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckIfOneExists(fr.paris.lutece.portal.service.plugin.Plugin plugin, String batchReference, List<String> externalIds) Check if at least one of the externalIds exists in the batch identified by batchReferencevoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablevoiddeleteList(List<Integer> idList, fr.paris.lutece.portal.service.plugin.Plugin plugin) List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory>getHistory(int identityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) voidinsert(CandidateIdentity candidateIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectCandidateIdentitiesList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the candidateIdentity objects and returns them as a listselectCandidateIdentitiesListByIds(fr.paris.lutece.portal.service.plugin.Plugin plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a listselectIdCandidateIdentitiesList(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 listselectIdentityState(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectIdentityStates(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin) voidstore(CandidateIdentity candidateIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
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:
insertin interfaceICandidateIdentityDAO- Parameters:
candidateIdentity- instance of the CandidateIdentity object to insertplugin- 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:
loadin interfaceICandidateIdentityDAO- Parameters:
nKey- The identifier of the candidateIdentityplugin- 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:
deletein interfaceICandidateIdentityDAO- Parameters:
nKey- The identifier of the CandidateIdentity to deleteplugin- the Plugin
-
deleteList
- Specified by:
deleteListin interfaceICandidateIdentityDAO
-
store
public void store(CandidateIdentity candidateIdentity, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table- Specified by:
storein interfaceICandidateIdentityDAO- Parameters:
candidateIdentity- the reference of the CandidateIdentityplugin- 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:
selectCandidateIdentitiesListin interfaceICandidateIdentityDAO- 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:
selectIdCandidateIdentitiesListin interfaceICandidateIdentityDAOplugin- 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:
selectCandidateIdentitiesListByIdsin interfaceICandidateIdentityDAO- Parameters:
plugin- the PluginlistIds- 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:ICandidateIdentityDAOCheck if at least one of the externalIds exists in the batch identified by batchReference- Specified by:
checkIfOneExistsin interfaceICandidateIdentityDAO- Parameters:
plugin- the pluginbatchReference- the reference of the batchexternalIds- 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:
selectIdentityStatesin interfaceICandidateIdentityDAO
-
selectIdentityState
public ResourceState selectIdentityState(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
selectIdentityStatein interfaceICandidateIdentityDAO
-
getHistory
public List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> getHistory(int identityId, fr.paris.lutece.portal.service.plugin.Plugin plugin) - Specified by:
getHistoryin interfaceICandidateIdentityDAO
-