Interface IFormDatabaseService

    • 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

        List<Question> getListQuestionByForm​(int nIdForm)
        Find all Questions by form
        Parameters:
        nIdForm -
        Returns:
      • getFormDisplayListByParent

        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 key
        nIdParent - The parent primary key
        Returns:
        the list which contains the data of all the formDisplay objects by parent
      • getControlByQuestion

        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 match
        nIdStep - The identifier of the Step to match
        nIdComposite - The identifier of the Composite to match
        Returns:
        the formDisplay associated to the given parameters
      • getGroupsListByIdStepList

        List<Group> getGroupsListByIdStepList​(List<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

        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

        Integer findIdReferenceItemByIdField​(int idField)
        Loads records form the database.
        Parameters:
        idField -
        Returns:
      • getControlMappingListByIdControl

        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,
                                  String strValue)