Interface IFormDatabaseService
-
- All Known Implementing Classes:
FormDatabaseService
public interface IFormDatabaseService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description fr.paris.lutece.plugins.genericattributes.business.EntrycopyEntry(fr.paris.lutece.plugins.genericattributes.business.Entry entry)copy an entryvoidcreateControl(Control control)Create a controlvoidcreateEntry(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, java.lang.String strValue)voidcreateQuestion(Question question)Create a questionvoidcreateStep(Step step)Create a stepFormDisplayfindDisplayByPrimaryKey(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 idGroupfindGroupByPrimaryKey(int idGroup)Find a group by its idjava.lang.IntegerfindIdReferenceItemByIdField(int idField)Loads records form the database.QuestionfindQuestionByPrimaryKey(int idQuestion)Find a qusteion by its idStepfindStepByPrimaryKey(int idStep)Find a step by its idjava.util.List<Control>getControlByQuestion(int nIdQuestion)Loads control list based on its attached question and control typejava.util.List<ControlMapping>getControlMappingListByIdControl(int nIdControl)Load the data of all the control objects and returns them as a listFormDisplaygetFormDisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite)Return the FormDisplay associated to the given parametersjava.util.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 listjava.util.List<Group>getGroupsListByIdStepList(java.util.List<java.lang.Integer> idStepList)Load the data of all the group objects and returns them as a listjava.util.List<Question>getListQuestionByForm(int nIdForm)Find all Questions by formjava.util.List<Question>getQuestionsListByStep(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 Detail
-
findStepByPrimaryKey
Step findStepByPrimaryKey(int idStep)
Find a step by its id- Parameters:
idStep-- Returns:
-
findQuestionByPrimaryKey
Question findQuestionByPrimaryKey(int idQuestion)
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
Group findGroupByPrimaryKey(int idGroup)
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
FormDisplay findDisplayByPrimaryKey(int idDisplay)
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
void createFormDisplay(FormDisplay formDisplay)
Create a formDisplay- Parameters:
formDisplay-
-
createField
void createField(fr.paris.lutece.plugins.genericattributes.business.Field field)
Create a field- Parameters:
field-
-
createStep
void createStep(Step step)
Create a step- Parameters:
step-
-
createQuestion
void createQuestion(Question question)
Create a question- Parameters:
question-
-
createControl
void createControl(Control control)
Create a control- Parameters:
control-
-
createGroup
void createGroup(Group group)
Create a group- Parameters:
group-
-
updateGroup
void updateGroup(Group group)
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
void updateQuestion(Question question)
update a question- Parameters:
question-
-
updateFormDisplay
void updateFormDisplay(FormDisplay formDisplay)
update a FormDisplay- Parameters:
formDisplay-
-
getListQuestionByForm
java.util.List<Question> getListQuestionByForm(int nIdForm)
Find all Questions by form- Parameters:
nIdForm-- Returns:
-
getFormDisplayListByParent
java.util.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- 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
java.util.List<Control> getControlByQuestion(int nIdQuestion)
Loads control list based on its attached question and control type- Parameters:
nIdQuestion- the question id- Returns:
- the requested Control list
-
getFormDisplayByFormStepAndComposite
FormDisplay getFormDisplayByFormStepAndComposite(int nIdForm, int nIdStep, int nIdComposite)
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
java.util.List<Group> getGroupsListByIdStepList(java.util.List<java.lang.Integer> idStepList)
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
java.util.List<Question> getQuestionsListByStep(int nIdStep)
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
java.lang.Integer findIdReferenceItemByIdField(int idField)
Loads records form the database.- Parameters:
idField-- Returns:
-
getControlMappingListByIdControl
java.util.List<ControlMapping> getControlMappingListByIdControl(int nIdControl)
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
void createMappingControl(int nIdcontrol, int nIdQuestion, java.lang.String strValue)
-
-