java.lang.Object
fr.paris.lutece.plugins.workflow.modules.ticketing.business.resourcehistory.ResourceHistoryService
All Implemented Interfaces:
fr.paris.lutece.plugins.ticketing.business.resourcehistory.IResourceHistoryInformationService, IResourceHistoryService

public class ResourceHistoryService extends Object implements IResourceHistoryService, fr.paris.lutece.plugins.ticketing.business.resourcehistory.IResourceHistoryInformationService
ResourceHistoryService
  • Field Details

  • Constructor Details

    • ResourceHistoryService

      public ResourceHistoryService()
  • Method Details

    • create

      public void create(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Creation of a resource history
      Specified by:
      create in interface IResourceHistoryService
      Parameters:
      resourceHistory - The resource history
      plugin - the plugin
    • removeByHistory

      public void removeByHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove the resource history by history
      Specified by:
      removeByHistory in interface IResourceHistoryService
      Parameters:
      nIdHistory - the history key
      plugin - the Plugin
    • findByPrimaryKey

      public ResourceHistory findByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the ResourceHistory Object
      Specified by:
      findByPrimaryKey in interface IResourceHistoryService
      Parameters:
      nIdHistory - the history id
      plugin - the plugin
      Returns:
      the ResourceHistory Object
    • removeByResource

      public void removeByResource(int nIdResource, String strResourceType)
      Specified by:
      removeByResource in interface fr.paris.lutece.plugins.ticketing.business.resourcehistory.IResourceHistoryInformationService
    • getChannelHistoryMap

      public Map<String,fr.paris.lutece.plugins.ticketing.business.channel.Channel> getChannelHistoryMap(int nIdResource, String strResourceType, int nIdWorkflow)
      returns the list of id_history/channel associated to a ticket resource.
      Specified by:
      getChannelHistoryMap in interface fr.paris.lutece.plugins.ticketing.business.resourcehistory.IResourceHistoryInformationService
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nIdWorkflow - the workflow id
      Returns:
      the list of id_history/channel associated to a ticket resource
    • removeResourceHistory

      public void removeResourceHistory(int nIdResource, String strResourceType, int nIdWorkflow)
      remove all the list of ticketing history resource associated to a ticket resource.
      Parameters:
      nIdResource - the resource id
      strResourceType - the resource type
      nIdWorkflow - the workflow id
    • findOldUnitByPrimaryKey

      public ResourceHistory findOldUnitByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the ResourceHistory Object id_history and old unit
      Specified by:
      findOldUnitByPrimaryKey in interface IResourceHistoryService
      Parameters:
      nIdHistory - the history id
      plugin - the plugin
      Returns:
      the ResourceHistory Object