public class ResourceHistoryService extends Object implements IResourceHistoryService, fr.paris.lutece.plugins.ticketing.business.resourcehistory.IResourceHistoryInformationService
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_SERVICE
The name of the bean of this service
|
Constructor and Description |
---|
ResourceHistoryService() |
Modifier and Type | Method and Description |
---|---|
void |
create(ResourceHistory resourceHistory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of a resource history
|
ResourceHistory |
findByPrimaryKey(int nIdHistory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the ResourceHistory Object
|
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.
|
void |
removeByHistory(int nIdHistory,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the resource history by history
|
void |
removeByResource(int nIdResource,
String strResourceType) |
void |
removeResourceHistory(int nIdResource,
String strResourceType,
int nIdWorkflow)
remove all the list of ticketing history resource associated to a ticket resource.
|
public static final String BEAN_SERVICE
public void create(ResourceHistory resourceHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create
in interface IResourceHistoryService
resourceHistory
- The resource historyplugin
- the pluginpublic void removeByHistory(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeByHistory
in interface IResourceHistoryService
nIdHistory
- the history keyplugin
- the Pluginpublic ResourceHistory findByPrimaryKey(int nIdHistory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface IResourceHistoryService
nIdHistory
- the history idplugin
- the pluginpublic void removeByResource(int nIdResource, String strResourceType)
removeByResource
in interface fr.paris.lutece.plugins.ticketing.business.resourcehistory.IResourceHistoryInformationService
public Map<String,fr.paris.lutece.plugins.ticketing.business.channel.Channel> getChannelHistoryMap(int nIdResource, String strResourceType, int nIdWorkflow)
getChannelHistoryMap
in interface fr.paris.lutece.plugins.ticketing.business.resourcehistory.IResourceHistoryInformationService
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idpublic void removeResourceHistory(int nIdResource, String strResourceType, int nIdWorkflow)
nIdResource
- the resource idstrResourceType
- the resource typenIdWorkflow
- the workflow idCopyright © 2017 City of Paris. All rights reserved.