fr.paris.lutece.plugins.workflow.service.testresource
Class TestResourceService

java.lang.Object
  extended by fr.paris.lutece.plugins.workflow.service.testresource.TestResourceService
All Implemented Interfaces:
ITestResourceService

public class TestResourceService
extends Object
implements ITestResourceService

TestResourceService


Field Summary
static String BEAN_SERVICE
           
 
Constructor Summary
TestResourceService()
           
 
Method Summary
 void create(TestResource testResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of state
 TestResource findByPrimaryKey(int nIdTestResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the TestResource Object
 List<TestResource> getList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Select TestResource
 void remove(int nIdTestResource, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove testResource which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_SERVICE

public static final String BEAN_SERVICE
See Also:
Constant Field Values
Constructor Detail

TestResourceService

public TestResourceService()
Method Detail

create

@Transactional(value="workflow.transactionManager")
public void create(TestResource testResource,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of state

Specified by:
create in interface ITestResourceService
Parameters:
testResource - The instance of TestResource which contains the informations to store
plugin - the plugin

remove

@Transactional(value="workflow.transactionManager")
public void remove(int nIdTestResource,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove testResource which is specified in parameter

Specified by:
remove in interface ITestResourceService
Parameters:
nIdTestResource - The id of testResiurce to remove
plugin - the Plugin

findByPrimaryKey

public TestResource findByPrimaryKey(int nIdTestResource,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the TestResource Object

Specified by:
findByPrimaryKey in interface ITestResourceService
Parameters:
nIdTestResource - the test resource id
plugin - the plugin
Returns:
TestResource Object

getList

public List<TestResource> getList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select TestResource

Specified by:
getList in interface ITestResourceService
Parameters:
plugin - the plugin
Returns:
TestResource List


Copyright © 2013 Mairie de Paris. All Rights Reserved.