Interface IFormDisplayService

All Known Implementing Classes:
AbstractFormDisplayService, FormDisplayService

public interface IFormDisplayService
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Remove the formDisplay whose identifier is specified in parameter.
    int
    getDisplayDepthFromParent(int parentGroup)
     
    getDisplayTitle(FormDisplay formDisplayToMove)
    Method to retrieve the Move composite page title from a given FormDisplay
    fr.paris.lutece.util.ReferenceList
    getlistAvailablePositionsInGroup(int nIdStep, int nIdDisplayGroup, boolean bAddPosition, Locale locale)
    Return a ReferenceList containing all the available positions within a given parent FormDisplay, in a given Step.
    fr.paris.lutece.util.ReferenceList
    getTargetGroupDisplayListByStep(int nIdStep, FormDisplay formDisplayToMove, Locale locale)
    Method to retrieve referenceList containing all the Displays of a given Step that could be a potential destination parent for the given FormDisplay.
    void
    Rebuild the position sequence of a given FormDisplay list and update the objects in database.
    void
    setChildrenDisplayDepthAndStep(FormDisplay formDisplayParent, int nDepth, int nIdStep)
    Update a given FormDisplay, and all its descendants by setting the provided depth and idStep values.
  • Method Details

    • getDisplayTitle

      String getDisplayTitle(FormDisplay formDisplayToMove)
      Method to retrieve the Move composite page title from a given FormDisplay
      Parameters:
      formDisplayToMove - the FormDisplay
      Returns:
      the admin page title
    • getTargetGroupDisplayListByStep

      fr.paris.lutece.util.ReferenceList getTargetGroupDisplayListByStep(int nIdStep, FormDisplay formDisplayToMove, Locale locale)
      Method to retrieve referenceList containing all the Displays of a given Step that could be a potential destination parent for the given FormDisplay. The ReferenceList begins with a first root level item, followed by all the relevant children displays of type "Group". If the Display to be moved is a group, this Display and its child groups will be excluded from the list
      Parameters:
      nIdStep - The Step identifier
      formDisplayToMove - The Display to move.
      locale - The Locale
      Returns:
      a ReferenceList containing the Groups of the step
    • getlistAvailablePositionsInGroup

      fr.paris.lutece.util.ReferenceList getlistAvailablePositionsInGroup(int nIdStep, int nIdDisplayGroup, boolean bAddPosition, Locale locale)
      Return a ReferenceList containing all the available positions within a given parent FormDisplay, in a given Step. Includes the position after the last element of the group.
      Parameters:
      nIdStep - the identifier of the Step
      nIdDisplayGroup - the identifier of the group DIsplay parent. Zero for the step root level
      bAddPosition - if true a position is added at the end of the list
      locale - The locale
      Returns:
      the available positions sorted in a ReferenceList
    • getDisplayDepthFromParent

      int getDisplayDepthFromParent(int parentGroup)
    • setChildrenDisplayDepthAndStep

      void setChildrenDisplayDepthAndStep(FormDisplay formDisplayParent, int nDepth, int nIdStep)
      Update a given FormDisplay, and all its descendants by setting the provided depth and idStep values. Value of a children Depth is parent depth plus one. Value of a children idStep is same as parent idStep.
      Parameters:
      formDisplayParent - the parent Display
      nDepth - the parent depth value to set
      nIdStep - the parent idStep value to set
    • rebuildDisplayPositionSequence

      void rebuildDisplayPositionSequence(List<FormDisplay> listDisplay)
      Rebuild the position sequence of a given FormDisplay list and update the objects in database. The list indexes will be used to set the displayOrder values.
      Parameters:
      listDisplay - The List of FormDisplay to update
    • deleteDisplayAndDescendants

      void deleteDisplayAndDescendants(int nIdDIsplay)
      Remove the formDisplay whose identifier is specified in parameter. The responses, group/question associated to this display will be deleted. All the descendants of the display will also be removed
      Parameters:
      nIdDIsplay - The formDisplay Id