fr.paris.lutece.plugins.workflow.business
Interface IStateDAO

All Known Implementing Classes:
StateDAO

public interface IStateDAO

IStateDAO


Method Summary
 void delete(int nIdState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the state Object
 fr.paris.lutece.portal.business.workflow.State findByResource(int nIdResource, java.lang.String strResourceType, int nIdWorkflow, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the state Object from the given resource
 void insert(fr.paris.lutece.portal.business.workflow.State state, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 fr.paris.lutece.portal.business.workflow.State load(int nIdState, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the state Object
 java.util.List<fr.paris.lutece.portal.business.workflow.State> selectStatesByFilter(StateFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          select all states by filter
 void store(fr.paris.lutece.portal.business.workflow.State state, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          update record in the table.
 

Method Detail

insert

void insert(fr.paris.lutece.portal.business.workflow.State state,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
state - instance of the State object to insert
plugin - the plugin

store

void store(fr.paris.lutece.portal.business.workflow.State state,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
update record in the table.

Parameters:
state - instance of the State object to update
plugin - the plugin

load

fr.paris.lutece.portal.business.workflow.State load(int nIdState,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the state Object

Parameters:
nIdState - the state id
plugin - the plugin
Returns:
the state Object

findByResource

fr.paris.lutece.portal.business.workflow.State findByResource(int nIdResource,
                                                              java.lang.String strResourceType,
                                                              int nIdWorkflow,
                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the state Object from the given resource

Parameters:
nIdResource - the resource id
strResourceType - the resource type
nIdWorkflow - the workflow id
plugin - the plugin
Returns:
the state Object

delete

void delete(int nIdState,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the state Object

Parameters:
nIdState - the state id
plugin - the plugin

selectStatesByFilter

java.util.List<fr.paris.lutece.portal.business.workflow.State> selectStatesByFilter(StateFilter filter,
                                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
select all states by filter

Parameters:
filter - StateFilter Object
plugin - the plugin
Returns:
a list of state


Copyright © 2012 Mairie de Paris. All Rights Reserved.