Class ArchiveService
- java.lang.Object
-
- fr.paris.lutece.plugins.workflow.modules.archive.service.ArchiveService
-
- All Implemented Interfaces:
IArchiveService
public class ArchiveService extends Object implements IArchiveService
ImplementsIArchiveService
-
-
Field Summary
Fields Modifier and Type Field Description static StringBEAN_SERVICE
-
Constructor Summary
Constructors Constructor Description ArchiveService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarchiveResource(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.ArchiveResourcegetArchiveResource(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.ArchiveConfigloadConfig(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 Detail
-
BEAN_SERVICE
public static final String BEAN_SERVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
loadConfig
public ArchiveConfig loadConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
Description copied from interface:IArchiveServiceLoad config of task.- Specified by:
loadConfigin interfaceIArchiveService- Returns:
-
getArchiveResource
public ArchiveResource getArchiveResource(int nIdHistory, int nIdTask)
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
-
-