Interface IArchiveService
- All Known Implementing Classes:
ArchiveService
public interface IArchiveService
Service for Archive Task
-
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveResource(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, fr.paris.lutece.plugins.workflowcore.service.task.ITask task, ArchiveConfig config) Archives the resource according to the specified configvoidcreateArchiveResource(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config) Creates the Archive Resource.getArchiveResource(int nIdHistory, int nIdTask) Load theArchiveResourcefr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflowgetResourceWorkflowByHistory(int nIdHistory) Get resource owning the historybooleanisResourceUpForArchival(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config) Determines if a resource is up for archival.loadConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task) Load config of task.voidremoveArchiveResource(int idResource, int idTask) Delete theArchiveResourceby idResourcevoidremoveConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task) Deletes the config for the task.
-
Method Details
-
loadConfig
Load config of task.- Parameters:
task-- Returns:
-
getArchiveResource
Load theArchiveResource- Parameters:
nIdHistory-nIdTask-- Returns:
- ArchiveResource
-
createArchiveResource
void createArchiveResource(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config) Creates the Archive Resource.- Parameters:
resourceWorkflow-config-
-
isResourceUpForArchival
boolean isResourceUpForArchival(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config) Determines if a resource is up for archival.- Parameters:
resourceWorkflow-config-- Returns:
- true if the resource should be archived
-
getResourceWorkflowByHistory
fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow getResourceWorkflowByHistory(int nIdHistory) Get resource owning the history- Parameters:
nIdHistory-- Returns:
-
archiveResource
void archiveResource(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, fr.paris.lutece.plugins.workflowcore.service.task.ITask task, ArchiveConfig config) Archives the resource according to the specified config- Parameters:
resourceWorkflow-task-config-
-
removeArchiveResource
void removeArchiveResource(int idResource, int idTask) Delete theArchiveResourceby idResource- Parameters:
idResource-idTask-
-
removeConfig
void removeConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task) Deletes the config for the task.- Parameters:
task-
-