Class BatchHome
java.lang.Object
fr.paris.lutece.plugins.identityimport.business.BatchHome
This class provides instances management methods (create, find, ...) for Batch objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic BatchCreate an instance of the batch classfindByPrimaryKey(int nKey) Returns an instance of a batch whose identifier is specified in parameterfindClosableBatches(int batchLimit) Load the data of all the batches in the initial workflow state and returns them as a listfindExpiredBatches(int batchLimit) Load the data of all the expired batch objects and returns them as a list.findInitialStateBatches(int batchLimit) Load the data of all the batches in the initial workflow state and returns them as a listgetBatch(int id) static Batchstatic List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory>getBatchHistory(int batchId) static intGet the id of the action for batches in initial statestatic intGet the id of the action for batches in initial stateLoad the data of all the batch objects and returns them as a listgetBatchsListByIds(List<Integer> listIds) Load the data of all the avant objects and returns them as a liststatic fr.paris.lutece.util.ReferenceListLoad the data of all the batch objects and returns them as a referenceListstatic ResourceStategetBatchState(int batchId) static List<ResourceState>getBatchStates(String filterAppCode, String filterClientCode) getIdBatchsList(ResourceState resourceState, String filterAppCode, String filterClientCode, String filterReference) Load the id of all the batch objects and returns them as a liststatic intgetIdentitiesCount(int resourceId) static voidremove(int nKey) Remove the batch whose identifier is specified in parameterstatic BatchUpdate of the batch which is specified in parameter
-
Method Details
-
create
Create an instance of the batch class- Parameters:
batch- The instance of the Batch which contains the information to store- Returns:
- The instance of batch which has been created with its primary key.
-
update
Update of the batch which is specified in parameter- Parameters:
batch- The instance of the Batch which contains the data to store- Returns:
- The instance of the batch which has been updated
-
remove
public static void remove(int nKey) Remove the batch whose identifier is specified in parameter- Parameters:
nKey- The batch Id
-
findByPrimaryKey
Returns an instance of a batch whose identifier is specified in parameter- Parameters:
nKey- The batch primary key- Returns:
- an instance of Batch
-
getBatchsList
Load the data of all the batch objects and returns them as a list- Returns:
- the list which contains the data of all the batch objects
-
getIdBatchsList
public static List<Integer> getIdBatchsList(ResourceState resourceState, String filterAppCode, String filterClientCode, String filterReference) Load the id of all the batch objects and returns them as a list- Returns:
- the list which contains the id of all the batch objects
-
getBatchsReferenceList
public static fr.paris.lutece.util.ReferenceList getBatchsReferenceList()Load the data of all the batch objects and returns them as a referenceList- Returns:
- the referenceList which contains the data of all the batch objects
-
getBatchsListByIds
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
-
getBatch
-
getBatch
-
findExpiredBatches
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.- Returns:
- The list which contains the data of all the expired batch objects
-
findInitialStateBatches
Load the data of all the batches in the initial workflow state and returns them as a list- Parameters:
batchLimit- the limit- Returns:
- batches in the initial workflow state
-
findClosableBatches
Load the data of all the batches in the initial workflow state and returns them as a list- Parameters:
batchLimit- the limit- Returns:
- batches in the initial workflow state
-
getBatchStates
-
getBatchState
-
getIdentitiesCount
public static int getIdentitiesCount(int resourceId) -
getBatchHistory
public static List<fr.paris.lutece.plugins.workflowcore.business.resource.ResourceHistory> getBatchHistory(int batchId) -
getBatchInitialActionId
public static int getBatchInitialActionId() throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionGet the id of the action for batches in initial state- Returns:
- the action id
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getBatchInTreatmentActionId
public static int getBatchInTreatmentActionId() throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreExceptionGet the id of the action for batches in initial state- Returns:
- the action id
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-