Interface IFormDatabaseService
- All Known Implementing Classes:
FormDatabaseService
public interface IFormDatabaseService
-
Method Summary
Modifier and TypeMethodDescriptionfr.paris.lutece.plugins.genericattributes.business.EntrycopyEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry) copy an entryvoidcreateControl(Control control) Create a controlvoidcreateControlGroup(ControlGroup controlGroup) Create a control groupvoidcreateEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry) Create an entryvoidcreateField(fr.paris.lutece.plugins.genericattributes.business.Field field) Create a fieldvoidcreateFormDisplay(FormDisplay formDisplay) Create a formDisplayvoidcreateGroup(Group group) Create a groupvoidcreateMappingControl(int nIdcontrol, int nIdQuestion, String strValue) voidcreateQuestion(Question question) Create a questionvoidcreateStep(Step step) Create a stepfindDisplayByPrimaryKey(int idDisplay) Find a formdisplay by its idfr.paris.lutece.plugins.genericattributes.business.EntryfindEntryByPrimaryKey(int idEntry) Find an entry by its idfr.paris.lutece.plugins.genericattributes.business.FieldfindFieldByPrimaryKey(int idField) Find a field by its idfindGroupByPrimaryKey(int idGroup) Find a group by its idfindIdReferenceItemByIdField(int idField) Loads records form the database.findQuestionByPrimaryKey(int idQuestion) Find a qusteion by its idfindStepByPrimaryKey(int idStep) Find a step by its idgetControlByQuestion(int nIdQuestion) Loads control list based on its attached question and control typegetControlMappingListByIdControl(int nIdControl) Load the data of all the control objects and returns them as a listgetFormDisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite) Return the FormDisplay associated to the given parametersgetFormDisplayListByParent(int nIdStep, int nIdParent) Load the data of all the formDisplay that are direct children of a given parent and returns them as a listgetGroupsListByIdStepList(List<Integer> idStepList) Load the data of all the group objects and returns them as a listgetListQuestionByForm(int nIdForm) Find all Questions by formgetQuestionsListByStep(int nIdStep) Load the data of all the question objects and returns them as a listvoidupdateEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry) update an entryvoidupdateField(fr.paris.lutece.plugins.genericattributes.business.Field field) update a fieldvoidupdateFormDisplay(FormDisplay formDisplay) update a FormDisplayvoidupdateGroup(Group group) update a groupvoidupdateQuestion(Question question) update a question
-
Method Details
-
findStepByPrimaryKey
Find a step by its id- Parameters:
idStep-- Returns:
-
findQuestionByPrimaryKey
Find a qusteion by its id- Parameters:
idQuestion-- Returns:
-
findEntryByPrimaryKey
fr.paris.lutece.plugins.genericattributes.business.Entry findEntryByPrimaryKey(int idEntry) Find an entry by its id- Parameters:
idEntry-- Returns:
-
findGroupByPrimaryKey
Find a group by its id- Parameters:
idGroup-- Returns:
-
findFieldByPrimaryKey
fr.paris.lutece.plugins.genericattributes.business.Field findFieldByPrimaryKey(int idField) Find a field by its id- Parameters:
idField-- Returns:
-
findDisplayByPrimaryKey
Find a formdisplay by its id- Parameters:
idDisplay-- Returns:
-
copyEntry
fr.paris.lutece.plugins.genericattributes.business.Entry copyEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry) copy an entry- Parameters:
entry-- Returns:
-
createEntry
void createEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry) Create an entry- Parameters:
entry-
-
createFormDisplay
Create a formDisplay- Parameters:
formDisplay-
-
createField
void createField(fr.paris.lutece.plugins.genericattributes.business.Field field) Create a field- Parameters:
field-
-
createStep
Create a step- Parameters:
step-
-
createQuestion
Create a question- Parameters:
question-
-
createControl
Create a control- Parameters:
control-
-
createControlGroup
Create a control group- Parameters:
controlGroup-
-
createGroup
Create a group- Parameters:
group-
-
updateGroup
update a group- Parameters:
group-
-
updateEntry
void updateEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry) update an entry- Parameters:
entry-
-
updateField
void updateField(fr.paris.lutece.plugins.genericattributes.business.Field field) update a field- Parameters:
field-
-
updateQuestion
update a question- Parameters:
question-
-
updateFormDisplay
update a FormDisplay- Parameters:
formDisplay-
-
getListQuestionByForm
Find all Questions by form- Parameters:
nIdForm-- Returns:
-
getFormDisplayListByParent
Load the data of all the formDisplay that are direct children of a given parent and returns them as a list- Parameters:
nIdStep- The step primary keynIdParent- The parent primary key- Returns:
- the list which contains the data of all the formDisplay objects by parent
-
getControlByQuestion
Loads control list based on its attached question and control type- Parameters:
nIdQuestion- the question id- Returns:
- the requested Control list
-
getFormDisplayByFormStepAndComposite
Return the FormDisplay associated to the given parameters- Parameters:
nIdForm- The identifier of the Form to matchnIdStep- The identifier of the Step to matchnIdComposite- The identifier of the Composite to match- Returns:
- the formDisplay associated to the given parameters
-
getGroupsListByIdStepList
Load the data of all the group objects and returns them as a list- Parameters:
idStepList-- Returns:
- the list which contains the data of all the group objects
-
getQuestionsListByStep
Load the data of all the question objects and returns them as a list- Parameters:
nIdStep- The step primary key- Returns:
- the list which contains the data of all the question objects
-
findIdReferenceItemByIdField
Loads records form the database.- Parameters:
idField-- Returns:
-
getControlMappingListByIdControl
Load the data of all the control objects and returns them as a list- Parameters:
nIdControl- the Control id- Returns:
- the referenceList which contains the data of all the control objects
-
createMappingControl
-