Class ArchiveService
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.archive.service.ArchiveService
- All Implemented Interfaces:
IArchiveService
@ApplicationScoped
@Named("workflow.archiveService")
public class ArchiveService
extends Object
implements IArchiveService
Implements
IArchiveService-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
BEAN_SERVICE
- See Also:
-
-
Constructor Details
-
ArchiveService
public ArchiveService()
-
-
Method Details
-
loadConfig
Description copied from interface:IArchiveServiceLoad config of task.- Specified by:
loadConfigin interfaceIArchiveService- Returns:
-
getArchiveResource
Description copied from interface:IArchiveServiceLoad theArchiveResource- Specified by:
getArchiveResourcein interfaceIArchiveService- Returns:
- ArchiveResource
-
createArchiveResource
public void createArchiveResource(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config) Description copied from interface:IArchiveServiceCreates the Archive Resource.- Specified by:
createArchiveResourcein interfaceIArchiveService
-
isResourceUpForArchival
public boolean isResourceUpForArchival(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config) Description copied from interface:IArchiveServiceDetermines if a resource is up for archival.- Specified by:
isResourceUpForArchivalin interfaceIArchiveService- Returns:
- true if the resource should be archived
-
getResourceWorkflowByHistory
public fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow getResourceWorkflowByHistory(int nIdHistory) Description copied from interface:IArchiveServiceGet resource owning the history- Specified by:
getResourceWorkflowByHistoryin interfaceIArchiveService- Returns:
-
archiveResource
public void archiveResource(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, fr.paris.lutece.plugins.workflowcore.service.task.ITask task, ArchiveConfig config) Description copied from interface:IArchiveServiceArchives the resource according to the specified config- Specified by:
archiveResourcein interfaceIArchiveService
-
removeArchiveResource
public void removeArchiveResource(int idResource, int idTask) Description copied from interface:IArchiveServiceDelete theArchiveResourceby idResource- Specified by:
removeArchiveResourcein interfaceIArchiveService
-
removeConfig
public void removeConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task) Description copied from interface:IArchiveServiceDeletes the config for the task.- Specified by:
removeConfigin interfaceIArchiveService
-