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 Modifier and Type Field Description static StringBEAN_SERVICEThe name of the bean of this service
-
Constructor Summary
Constructors Constructor Description ResourceHistoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Creation of a resource historyResourceHistoryfindByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the ResourceHistory ObjectResourceHistoryfindOldUnitByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the ResourceHistory Object id_history and old unitMap<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.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 Detail
-
BEAN_SERVICE
public static final String BEAN_SERVICE
The name of the bean of this service- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public void removeByResource(int nIdResource, String strResourceType)- 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
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 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
-
-