Class ResourceHistoryService
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Creation of a resource historyfindByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the ResourceHistory ObjectfindOldUnitByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the ResourceHistory Object id_history and old unitgetChannelHistoryMap(int nIdResource, String strResourceType, int nIdWorkflow) returns the list of id_history/channel associated to a ticket resource.voidremoveByHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the resource history by historyvoidremoveByResource(int nIdResource, String strResourceType) voidremoveResourceHistory(int nIdResource, String strResourceType, int nIdWorkflow) remove all the list of ticketing history resource associated to a ticket resource.
-
Field Details
-
BEAN_SERVICE
The name of the bean of this service- See Also:
-
-
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:
createin interfaceIResourceHistoryService- Parameters:
resourceHistory- The resource historyplugin- the plugin
-
removeByHistory
public void removeByHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Remove the resource history by history- Specified by:
removeByHistoryin interfaceIResourceHistoryService- Parameters:
nIdHistory- the history keyplugin- the Plugin
-
findByPrimaryKey
public ResourceHistory findByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the ResourceHistory Object- Specified by:
findByPrimaryKeyin interfaceIResourceHistoryService- Parameters:
nIdHistory- the history idplugin- the plugin- Returns:
- the ResourceHistory Object
-
removeByResource
- Specified by:
removeByResourcein interfacefr.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:
getChannelHistoryMapin interfacefr.paris.lutece.plugins.ticketing.business.resourcehistory.IResourceHistoryInformationService- Parameters:
nIdResource- the resource idstrResourceType- the resource typenIdWorkflow- the workflow id- Returns:
- the list of id_history/channel associated to a ticket resource
-
removeResourceHistory
remove all the list of ticketing history resource associated to a ticket resource.- Parameters:
nIdResource- the resource idstrResourceType- the resource typenIdWorkflow- 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:
findOldUnitByPrimaryKeyin interfaceIResourceHistoryService- Parameters:
nIdHistory- the history idplugin- the plugin- Returns:
- the ResourceHistory Object
-