public final class TemplateControlDAO extends Object implements ITemplateControlDAO
Constructor and Description |
---|
TemplateControlDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteByControlTarget(int nIdControlTarget,
fr.paris.lutece.plugins.forms.business.ControlType controlType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table by the control target
|
void |
deleteControlQuestion(int nControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteControlQuestionValue(int nControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(fr.paris.lutece.plugins.forms.business.Control control,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insert(int nIdControl,
int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insert(int nIdControl,
int nIdQuestion,
String strValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
fr.paris.lutece.plugins.forms.business.Control |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
Set<Integer> |
loadIdQuestions(int nIdControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
List<fr.paris.lutece.plugins.forms.business.Control> |
selectControlByControlTargetAndType(int nIdControlTarget,
fr.paris.lutece.plugins.forms.business.ControlType controlType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select a control for conditional display based on its attached display id
|
List<fr.paris.lutece.plugins.forms.business.Control> |
selectControlByQuestion(int nIdQuestion,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select control list based on its attached question and control type
|
List<fr.paris.lutece.plugins.forms.business.Control> |
selectControlByQuestionAndType(int nIdQuestion,
String strControlType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Select control list based on its attached question and control type
|
List<fr.paris.lutece.plugins.forms.business.ControlMapping> |
selectMappingControlList(int nIdControl,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the control mapping and returns them as a List
|
void |
store(fr.paris.lutece.plugins.forms.business.Control control,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(fr.paris.lutece.plugins.forms.business.Control control, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ITemplateControlDAO
control
- instance of the Control object to insertplugin
- the Pluginpublic void insert(int nIdControl, int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ITemplateControlDAO
nIdQuestion
- the question idplugin
- the Pluginpublic void insert(int nIdControl, int nIdQuestion, String strValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ITemplateControlDAO
nIdQuestion
- the question idstrValue
- the valueplugin
- the Pluginpublic fr.paris.lutece.plugins.forms.business.Control load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ITemplateControlDAO
nKey
- The identifier of the controlplugin
- the Pluginpublic Set<Integer> loadIdQuestions(int nIdControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadIdQuestions
in interface ITemplateControlDAO
nIdControl
- The identifier of the controlplugin
- the Pluginpublic void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ITemplateControlDAO
nKey
- The identifier of the Control to deleteplugin
- the Pluginpublic void deleteControlQuestion(int nControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteControlQuestion
in interface ITemplateControlDAO
plugin
- the Pluginpublic void deleteControlQuestionValue(int nControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteControlQuestionValue
in interface ITemplateControlDAO
plugin
- the Pluginpublic void deleteByControlTarget(int nIdControlTarget, fr.paris.lutece.plugins.forms.business.ControlType controlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByControlTarget
in interface ITemplateControlDAO
nIdControlTarget
- The identifier of the Control targetcontrolType
- The control typeplugin
- the Pluginpublic void store(fr.paris.lutece.plugins.forms.business.Control control, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ITemplateControlDAO
control
- the reference of the Controlplugin
- the Pluginpublic List<fr.paris.lutece.plugins.forms.business.Control> selectControlByControlTargetAndType(int nIdControlTarget, fr.paris.lutece.plugins.forms.business.ControlType controlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ITemplateControlDAO
selectControlByControlTargetAndType
in interface ITemplateControlDAO
nIdControlTarget
- the control target idcontrolType
- the control typeplugin
- the Pluginpublic List<fr.paris.lutece.plugins.forms.business.Control> selectControlByQuestionAndType(int nIdQuestion, String strControlType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ITemplateControlDAO
selectControlByQuestionAndType
in interface ITemplateControlDAO
nIdQuestion
- the question idstrControlType
- the control typeplugin
- the Pluginpublic List<fr.paris.lutece.plugins.forms.business.Control> selectControlByQuestion(int nIdQuestion, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectControlByQuestion
in interface ITemplateControlDAO
nIdQuestion
- the question idplugin
- the Pluginpublic List<fr.paris.lutece.plugins.forms.business.ControlMapping> selectMappingControlList(int nIdControl, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ITemplateControlDAO
selectMappingControlList
in interface ITemplateControlDAO
plugin
- the PluginCopyright © 2022 City of Paris. All rights reserved.