Class AbstractFormDisplayService
java.lang.Object
fr.paris.lutece.plugins.forms.service.AbstractFormDisplayService
- All Implemented Interfaces:
IFormDisplayService
- Direct Known Subclasses:
FormDisplayService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDisplayDepthFromParent(int parentGroup) getDisplayTitle(FormDisplay formDisplayToMove) Method to retrieve the Move composite page title from a given FormDisplayfr.paris.lutece.util.ReferenceListgetlistAvailablePositionsInGroup(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.ReferenceListgetTargetGroupDisplayListByStep(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.voidrebuildDisplayPositionSequence(List<FormDisplay> listDisplay) Rebuild the position sequence of a given FormDisplay list and update the objects in database.voidsetChildrenDisplayDepthAndStep(FormDisplay formDisplayParent, int nDepth, int nIdStep) Update a given FormDisplay, and all its descendants by setting the provided depth and idStep values.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface fr.paris.lutece.plugins.forms.service.IFormDisplayService
deleteDisplayAndDescendants
-
Constructor Details
-
AbstractFormDisplayService
public AbstractFormDisplayService()
-
-
Method Details
-
getDisplayTitle
Description copied from interface:IFormDisplayServiceMethod to retrieve the Move composite page title from a given FormDisplay- Specified by:
getDisplayTitlein interfaceIFormDisplayService- Parameters:
formDisplayToMove- the FormDisplay- Returns:
- the admin page title
-
getTargetGroupDisplayListByStep
public fr.paris.lutece.util.ReferenceList getTargetGroupDisplayListByStep(int nIdStep, FormDisplay formDisplayToMove, Locale locale) Description copied from interface:IFormDisplayServiceMethod 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:
getTargetGroupDisplayListByStepin interfaceIFormDisplayService- Parameters:
nIdStep- The Step identifierformDisplayToMove- 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, Locale locale) Description copied from interface:IFormDisplayServiceReturn 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:
getlistAvailablePositionsInGroupin interfaceIFormDisplayService- Parameters:
nIdStep- the identifier of the StepnIdDisplayGroup- the identifier of the group DIsplay parent. Zero for the step root levelbAddPosition- if true a position is added at the end of the listlocale- The locale- Returns:
- the available positions sorted in a ReferenceList
-
getDisplayDepthFromParent
public int getDisplayDepthFromParent(int parentGroup) - Specified by:
getDisplayDepthFromParentin interfaceIFormDisplayService
-
setChildrenDisplayDepthAndStep
Description copied from interface:IFormDisplayServiceUpdate 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:
setChildrenDisplayDepthAndStepin interfaceIFormDisplayService- Parameters:
formDisplayParent- the parent DisplaynDepth- the parent depth value to setnIdStep- the parent idStep value to set
-
rebuildDisplayPositionSequence
Description copied from interface:IFormDisplayServiceRebuild 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:
rebuildDisplayPositionSequencein interfaceIFormDisplayService- Parameters:
listDisplay- The List of FormDisplay to update
-