Class WorkgroupConfigDAO
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.assignment.business.WorkgroupConfigDAO
- All Implemented Interfaces:
IWorkgroupConfigDAO
@ApplicationScoped
@Named("workflow.workgroupConfigDAO")
public class WorkgroupConfigDAO
extends Object
implements IWorkgroupConfigDAO
TaskAssignmentConfigDAO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all workgroups associated to the configurationvoidinsert(WorkgroupConfig workgroupConf, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new workgroupload a workgroup by primarey keyselectByConfig(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select the workgroups associated to the configuration
-
Constructor Details
-
WorkgroupConfigDAO
public WorkgroupConfigDAO()
-
-
Method Details
-
load
public WorkgroupConfig load(int nIdTask, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin) load a workgroup by primarey key- Specified by:
loadin interfaceIWorkgroupConfigDAO- Parameters:
nIdTask- the task idstrWorkgroupKey- the workgroup keyplugin- the plugin- Returns:
- a workgroupConfig object
-
selectByConfig
public List<WorkgroupConfig> selectByConfig(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Select the workgroups associated to the configuration- Specified by:
selectByConfigin interfaceIWorkgroupConfigDAO- Parameters:
nIdTask- the task idplugin- the plugin- Returns:
- a list of EntityOwner Object
-
deleteByTask
public void deleteByTask(int nIdTask, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete all workgroups associated to the configuration- Specified by:
deleteByTaskin interfaceIWorkgroupConfigDAO- Parameters:
nIdTask- the task idplugin- the plugin
-
insert
public void insert(WorkgroupConfig workgroupConf, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new workgroup- Specified by:
insertin interfaceIWorkgroupConfigDAO- Parameters:
workgroupConf- workgroupConfig Objectplugin- the plugin
-