Interface IBatchDAO
- All Known Implementing Classes:
BatchDAO
public interface IBatchDAO
IBatchDAO Interface
-
Method Summary
Modifier and TypeMethodDescriptionintcountIdentities(int resourceId, fr.paris.lutece.portal.service.plugin.Plugin plugin) voiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tableList<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory>getBatchHistory(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin) intgetBatchInitialActionId(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the id of the action for batches in initial stateintgetBatchInTreatmentActionId(fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the id of the action for batches in treatment statevoidInsert a new record in the table.load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectBatchByReference(fr.paris.lutece.portal.service.plugin.Plugin plugin, String reference) selectBatchsList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the batch objects and returns them as a listselectBatchsListByIds(fr.paris.lutece.portal.service.plugin.Plugin _plugin, List<Integer> listIds) Load the data of all the avant objects and returns them as a listfr.paris.lutece.util.ReferenceListselectBatchsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the batch objects and returns them as a referenceListselectBatchState(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectBatchStates(String filterAppCode, String filterClientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) selectClosableBatches(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the batches in the in treatment workflow state and returns them as a listselectExpiredBatchsList(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the expired batch objects and returns them as a list.selectIdBatchsList(Integer batchStateId, String filterAppCode, String filterClientCode, String filterReference, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the batch objects that are in given state and returns them as a listselectInitialStateBatches(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the batches in the initial workflow state and returns them as a listvoidUpdate the record in the table
-
Method Details
-
insert
Insert a new record in the table.- Parameters:
batch- instance of the Batch object to insertplugin- the Plugin
-
store
Update the record in the table- Parameters:
batch- the reference of the Batchplugin- the Plugin
-
delete
void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nKey- The identifier of the Batch to deleteplugin- the Plugin
-
load
Load the data from the table- Parameters:
nKey- The identifier of the batchplugin- the Plugin- Returns:
- The instance of the batch
-
selectBatchsList
Load the data of all the batch objects and returns them as a list- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the batch objects
-
selectExpiredBatchsList
List<Batch> selectExpiredBatchsList(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the expired batch objects and returns them as a list.
A batch is considered expired if it is finalized and it's creation date exceeds data retention time of the client.- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the expired batch objects
-
selectInitialStateBatches
List<Batch> selectInitialStateBatches(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the batches in the initial workflow state and returns them as a list- Parameters:
batchLimit- the limitplugin- the plugin- Returns:
- batches in the initial workflow state
-
selectClosableBatches
List<Batch> selectClosableBatches(int batchLimit, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the batches in the in treatment workflow state and returns them as a list- Parameters:
batchLimit- the limitplugin- the plugin- Returns:
- batches in the initial workflow state
-
selectIdBatchsList
List<Integer> selectIdBatchsList(Integer batchStateId, String filterAppCode, String filterClientCode, String filterReference, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the id of all the batch objects that are in given state and returns them as a list- Parameters:
batchStateId- the id of the batch state to filter results withfilterAppCode- the application code to filter the results withplugin- the Plugin- Returns:
- The list which contains the id of all the batch objects
-
selectBatchsReferenceList
fr.paris.lutece.util.ReferenceList selectBatchsReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of all the batch objects and returns them as a referenceList- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the batch objects
-
selectBatchsListByIds
List<Batch> selectBatchsListByIds(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 PluginlistIds- liste of ids- Returns:
- The list which contains the data of all the avant objects
-
selectBatchByReference
-
selectBatchStates
List<ResourceState> selectBatchStates(String filterAppCode, String filterClientCode, fr.paris.lutece.portal.service.plugin.Plugin plugin) -
selectBatchState
-
countIdentities
int countIdentities(int resourceId, fr.paris.lutece.portal.service.plugin.Plugin plugin) -
getBatchHistory
List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> getBatchHistory(int batchId, fr.paris.lutece.portal.service.plugin.Plugin plugin) -
getBatchInitialActionId
int getBatchInitialActionId(fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Get the id of the action for batches in initial state- Parameters:
plugin- the plugin- Returns:
- the action id
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getBatchInTreatmentActionId
int getBatchInTreatmentActionId(fr.paris.lutece.portal.service.plugin.Plugin plugin) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException Get the id of the action for batches in treatment state- Parameters:
plugin- the plugin- Returns:
- the action id
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-