public class FormDatabaseService extends Object implements IFormDatabaseService
| Constructor and Description |
|---|
FormDatabaseService() |
| Modifier and Type | Method and Description |
|---|---|
fr.paris.lutece.plugins.genericattributes.business.Entry |
copyEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
copy an entry
|
void |
createControl(Control control)
Create a control
|
void |
createEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
Create an entry
|
void |
createField(fr.paris.lutece.plugins.genericattributes.business.Field field)
Create a field
|
void |
createFormDisplay(FormDisplay formDisplay)
Create a formDisplay
|
void |
createGroup(Group group)
Create a group
|
void |
createMappingControl(int nIdcontrol,
int nIdQuestion,
String strValue) |
void |
createQuestion(Question question)
Create a question
|
void |
createStep(Step step)
Create a step
|
FormDisplay |
findDisplayByPrimaryKey(int idDisplay)
Find a formdisplay by its id
|
fr.paris.lutece.plugins.genericattributes.business.Entry |
findEntryByPrimaryKey(int idEntry)
Find an entry by its id
|
fr.paris.lutece.plugins.genericattributes.business.Field |
findFieldByPrimaryKey(int idField)
Find a field by its id
|
Group |
findGroupByPrimaryKey(int idGroup)
Find a group by its id
|
Integer |
findIdReferenceItemByIdField(int idField)
Loads records form the database.
|
Question |
findQuestionByPrimaryKey(int idQuestion)
Find a qusteion by its id
|
Step |
findStepByPrimaryKey(int idStep)
Find a step by its id
|
List<Control> |
getControlByQuestion(int nIdQuestion)
Loads control list based on its attached question and control type
|
List<ControlMapping> |
getControlMappingListByIdControl(int nIdControl)
Load the data of all the control objects and returns them as a list
|
FormDisplay |
getFormDisplayByFormStepAndComposite(int nIdForm,
int nIdStep,
int nIdComposite)
Return the FormDisplay associated to the given parameters
|
List<FormDisplay> |
getFormDisplayListByParent(int nIdStep,
int nIdParent)
Load the data of all the formDisplay that are direct children of a given parent and returns them as a list
|
List<Group> |
getGroupsListByIdStepList(List<Integer> idStepList)
Load the data of all the group objects and returns them as a list
|
List<Question> |
getListQuestionByForm(int nIdForm)
Find all Questions by form
|
List<Question> |
getQuestionsListByStep(int nIdStep)
Load the data of all the question objects and returns them as a list
|
void |
updateEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
update an entry
|
void |
updateField(fr.paris.lutece.plugins.genericattributes.business.Field field)
update a field
|
void |
updateFormDisplay(FormDisplay formDisplay)
update a FormDisplay
|
void |
updateGroup(Group group)
update a group
|
void |
updateQuestion(Question question)
update a question
|
public static final String BEAN_NAME
public void createEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
IFormDatabaseServicecreateEntry in interface IFormDatabaseServicepublic void createField(fr.paris.lutece.plugins.genericattributes.business.Field field)
IFormDatabaseServicecreateField in interface IFormDatabaseServicepublic void createQuestion(Question question)
IFormDatabaseServicecreateQuestion in interface IFormDatabaseServicepublic void createGroup(Group group)
IFormDatabaseServicecreateGroup in interface IFormDatabaseServicepublic void updateGroup(Group group)
IFormDatabaseServiceupdateGroup in interface IFormDatabaseServicepublic Group findGroupByPrimaryKey(int idGroup)
IFormDatabaseServicefindGroupByPrimaryKey in interface IFormDatabaseServicepublic Step findStepByPrimaryKey(int idStep)
IFormDatabaseServicefindStepByPrimaryKey in interface IFormDatabaseServicepublic void updateEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
IFormDatabaseServiceupdateEntry in interface IFormDatabaseServicepublic void createFormDisplay(FormDisplay formDisplay)
IFormDatabaseServicecreateFormDisplay in interface IFormDatabaseServicepublic List<Question> getListQuestionByForm(int nIdForm)
IFormDatabaseServicegetListQuestionByForm in interface IFormDatabaseServicepublic Question findQuestionByPrimaryKey(int idQuestion)
IFormDatabaseServicefindQuestionByPrimaryKey in interface IFormDatabaseServicepublic fr.paris.lutece.plugins.genericattributes.business.Entry findEntryByPrimaryKey(int idEntry)
IFormDatabaseServicefindEntryByPrimaryKey in interface IFormDatabaseServicepublic void updateField(fr.paris.lutece.plugins.genericattributes.business.Field field)
IFormDatabaseServiceupdateField in interface IFormDatabaseServicepublic fr.paris.lutece.plugins.genericattributes.business.Field findFieldByPrimaryKey(int idField)
IFormDatabaseServicefindFieldByPrimaryKey in interface IFormDatabaseServicepublic FormDisplay findDisplayByPrimaryKey(int idDisplay)
IFormDatabaseServicefindDisplayByPrimaryKey in interface IFormDatabaseServicepublic void updateQuestion(Question question)
IFormDatabaseServiceupdateQuestion in interface IFormDatabaseServicepublic List<FormDisplay> getFormDisplayListByParent(int nIdStep, int nIdParent)
IFormDatabaseServicegetFormDisplayListByParent in interface IFormDatabaseServicenIdStep - The step primary keynIdParent - The parent primary keypublic void updateFormDisplay(FormDisplay formDisplay)
IFormDatabaseServiceupdateFormDisplay in interface IFormDatabaseServicepublic fr.paris.lutece.plugins.genericattributes.business.Entry copyEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)
IFormDatabaseServicecopyEntry in interface IFormDatabaseServicepublic List<Control> getControlByQuestion(int nIdQuestion)
IFormDatabaseServicegetControlByQuestion in interface IFormDatabaseServicenIdQuestion - the question idpublic FormDisplay getFormDisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite)
IFormDatabaseServicegetFormDisplayByFormStepAndComposite in interface IFormDatabaseServicenIdForm - The identifier of the Form to matchnIdStep - The identifier of the Step to matchnIdComposite - The identifier of the Composite to matchpublic void createControl(Control control)
IFormDatabaseServicecreateControl in interface IFormDatabaseServicepublic List<Group> getGroupsListByIdStepList(List<Integer> idStepList)
IFormDatabaseServicegetGroupsListByIdStepList in interface IFormDatabaseServicepublic List<Question> getQuestionsListByStep(int nIdStep)
IFormDatabaseServicegetQuestionsListByStep in interface IFormDatabaseServicenIdStep - The step primary keypublic Integer findIdReferenceItemByIdField(int idField)
IFormDatabaseServicefindIdReferenceItemByIdField in interface IFormDatabaseServicepublic List<ControlMapping> getControlMappingListByIdControl(int nIdControl)
IFormDatabaseServicegetControlMappingListByIdControl in interface IFormDatabaseServicenIdControl - the Control idpublic void createStep(Step step)
IFormDatabaseServicecreateStep in interface IFormDatabaseServicepublic void createMappingControl(int nIdcontrol,
int nIdQuestion,
String strValue)
createMappingControl in interface IFormDatabaseServiceCopyright © 2023 City of Paris. All rights reserved.