public final class ControlHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static Control |
create(Control control)
Create an instance of the control class
|
static void |
createMappingControl(int nIdcontrol,
int nIdQuestion,
String strValue) |
static Control |
findByPrimaryKey(int nKey)
Returns an instance of a control whose identifier is specified in parameter
|
static List<Control> |
getControlByControlTargetAndType(int nIdControlTarget,
ControlType controlType)
Loads an existing control based on the display it is linked to (for conditional display)
|
static List<Control> |
getControlByQuestion(int nIdQuestion)
Loads control list based on its attached question and control type
|
static List<Control> |
getControlByQuestionAndType(int nIdQuestion,
String strControlType)
Loads control list based on its attached question and control type
|
static List<Control> |
getControlsList()
Load the data of all the control objects and returns them as a list
|
static fr.paris.lutece.util.ReferenceList |
getControlsReferenceList()
Load the data of all the control objects and returns them as a referenceList
|
static fr.paris.lutece.util.ReferenceList |
getCtrlMappingListByIdControl(int nIdControl)
Load the data of all the control objects and returns them as a referenceList
|
static List<Integer> |
getIdControlsList()
Load the id of all the control objects and returns them as a list
|
static void |
remove(int nKey)
Remove the control whose identifier is specified in parameter
|
static void |
removeByControlTarget(int nIdControlTarget,
ControlType controlType)
Remove the control whose control target identifier is specified in parameter
|
static void |
removeMappingControl(int nKey)
Remove the control mapping whose identifier control is specified in parameter
|
static Control |
update(Control control)
Update of the control which is specified in parameter
|
public static Control create(Control control)
control - The instance of the Control which contains the informations to storepublic static void createMappingControl(int nIdcontrol,
int nIdQuestion,
String strValue)
public static Control update(Control control)
control - The instance of the Control which contains the data to storepublic static void remove(int nKey)
nKey - The control Idpublic static void removeMappingControl(int nKey)
nKey - The control Idpublic static void removeByControlTarget(int nIdControlTarget,
ControlType controlType)
nIdControlTarget - The control target IdcontrolType - The control typepublic static Control findByPrimaryKey(int nKey)
nKey - The control primary keypublic static List<Control> getControlsList()
public static List<Integer> getIdControlsList()
public static fr.paris.lutece.util.ReferenceList getControlsReferenceList()
public static List<Control> getControlByControlTargetAndType(int nIdControlTarget, ControlType controlType)
nIdControlTarget - the DisplaycontrolType - the control typepublic static List<Control> getControlByQuestionAndType(int nIdQuestion, String strControlType)
nIdQuestion - the question idstrControlType - the control typepublic static List<Control> getControlByQuestion(int nIdQuestion)
nIdQuestion - the question idpublic static fr.paris.lutece.util.ReferenceList getCtrlMappingListByIdControl(int nIdControl)
nIdControl - the Control idCopyright © 2020 City of Paris. All rights reserved.