All Known Implementing Classes:
ArchiveService

public interface IArchiveService
Service for Archive Task
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    void
    createArchiveResource(fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow resourceWorkflow, ArchiveConfig config)
    Creates the Archive Resource.
    getArchiveResource(int nIdHistory, int nIdTask)
    fr.paris.lutece.plugins.workflowcore.business.resource.ResourceWorkflow
    Get resource owning the history
    boolean
    isResourceUpForArchival(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.
    void
    removeArchiveResource(int idResource, int idTask)
    Delete the ArchiveResource by idResource
    void
    removeConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
    Deletes the config for the task.
  • Method Details

    • loadConfig

      ArchiveConfig loadConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
      Load config of task.
      Parameters:
      task -
      Returns:
    • getArchiveResource

      ArchiveResource getArchiveResource(int nIdHistory, int nIdTask)
      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 the ArchiveResource by idResource
      Parameters:
      idResource -
      idTask -
    • removeConfig

      void removeConfig(fr.paris.lutece.plugins.workflowcore.service.task.ITask task)
      Deletes the config for the task.
      Parameters:
      task -