java.lang.Object
fr.paris.lutece.plugins.workflow.modules.archive.service.ArchiveService
All Implemented Interfaces:
IArchiveService

public class ArchiveService extends Object implements IArchiveService
Implements IArchiveService
  • Field Details

  • Constructor Details

    • ArchiveService

      public ArchiveService()
  • Method Details

    • loadConfig

      public ArchiveConfig loadConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
      Description copied from interface: IArchiveService
      Load config of task.
      Specified by:
      loadConfig in interface IArchiveService
      Returns:
    • getArchiveResource

      public ArchiveResource getArchiveResource(int nIdHistory, int nIdTask)
      Description copied from interface: IArchiveService
      Specified by:
      getArchiveResource in interface IArchiveService
      Returns:
      ArchiveResource
    • createArchiveResource

      public void createArchiveResource(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config)
      Description copied from interface: IArchiveService
      Creates the Archive Resource.
      Specified by:
      createArchiveResource in interface IArchiveService
    • isResourceUpForArchival

      public boolean isResourceUpForArchival(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config)
      Description copied from interface: IArchiveService
      Determines if a resource is up for archival.
      Specified by:
      isResourceUpForArchival in interface IArchiveService
      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: IArchiveService
      Get resource owning the history
      Specified by:
      getResourceWorkflowByHistory in interface IArchiveService
      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: IArchiveService
      Archives the resource according to the specified config
      Specified by:
      archiveResource in interface IArchiveService
    • removeArchiveResource

      public void removeArchiveResource(int idResource, int idTask)
      Description copied from interface: IArchiveService
      Delete the ArchiveResource by idResource
      Specified by:
      removeArchiveResource in interface IArchiveService
    • removeConfig

      public void removeConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
      Description copied from interface: IArchiveService
      Deletes the config for the task.
      Specified by:
      removeConfig in interface IArchiveService