Class AbstractFormDisplayService

    • Constructor Detail

      • AbstractFormDisplayService

        public AbstractFormDisplayService()
    • Method Detail

      • getDisplayTitle

        public java.lang.String getDisplayTitle​(FormDisplay formDisplayToMove)
        Description copied from interface: IFormDisplayService
        Method to retrieve the Move composite page title from a given FormDisplay
        Specified by:
        getDisplayTitle in interface IFormDisplayService
        Parameters:
        formDisplayToMove - the FormDisplay
        Returns:
        the admin page title
      • getTargetGroupDisplayListByStep

        public fr.paris.lutece.util.ReferenceList getTargetGroupDisplayListByStep​(int nIdStep,
                                                                                  FormDisplay formDisplayToMove,
                                                                                  java.util.Locale locale)
        Description copied from interface: IFormDisplayService
        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
        Specified by:
        getTargetGroupDisplayListByStep in interface IFormDisplayService
        Parameters:
        nIdStep - The Step identifier
        formDisplayToMove - The Display to move.
        locale - The Locale
        Returns:
        a ReferenceList containing the Groups of the step
      • getlistAvailablePositionsInGroup

        public fr.paris.lutece.util.ReferenceList getlistAvailablePositionsInGroup​(int nIdStep,
                                                                                   int nIdDisplayGroup,
                                                                                   boolean bAddPosition,
                                                                                   java.util.Locale locale)
        Description copied from interface: IFormDisplayService
        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.
        Specified by:
        getlistAvailablePositionsInGroup in interface IFormDisplayService
        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
      • setChildrenDisplayDepthAndStep

        public void setChildrenDisplayDepthAndStep​(FormDisplay formDisplayParent,
                                                   int nDepth,
                                                   int nIdStep)
        Description copied from interface: IFormDisplayService
        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.
        Specified by:
        setChildrenDisplayDepthAndStep in interface IFormDisplayService
        Parameters:
        formDisplayParent - the parent Display
        nDepth - the parent depth value to set
        nIdStep - the parent idStep value to set
      • rebuildDisplayPositionSequence

        public void rebuildDisplayPositionSequence​(java.util.List<FormDisplay> listDisplay)
        Description copied from interface: IFormDisplayService
        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.
        Specified by:
        rebuildDisplayPositionSequence in interface IFormDisplayService
        Parameters:
        listDisplay - The List of FormDisplay to update