Interface IFormDisplayService
-
- All Known Implementing Classes:
AbstractFormDisplayService,FormDisplayService
public interface IFormDisplayService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteDisplayAndDescendants(int nIdDIsplay)Remove the formDisplay whose identifier is specified in parameter.intgetDisplayDepthFromParent(int parentGroup)StringgetDisplayTitle(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.
-
-
-
Method Detail
-
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 identifierformDisplayToMove- 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 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
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 DisplaynDepth- the parent depth value to setnIdStep- 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
-
-