public final class DefaultPageBuilderService extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addNewPageBuilderParameter(fr.paris.lutece.util.ReferenceItem param)
Add a new parameter
|
void |
doMoveWidgetComponent(WidgetComponent widgetComponent,
int nOldColumn,
int nOldOrder,
boolean bCreate)
Moves the widgetComponent.
|
void |
doRemoveByColumnMax(int nColumnMax)
Remove widget Components that are in a column > to the given column max
|
void |
doRemoveWidgetComponent(int nIdWidgetComponent)
Remove widget Component
|
void |
doReorderColumn(int nColumn)
Reorders column's widgetComponent
|
Map<String,List<WidgetComponent>> |
getAllSetWidgetComponents()
Finds all widgetComponent with column and order set.
|
int |
getColumnCount()
Returns the column count, with
DefaultPageBuilderService#PROPERTY_COLUMN_COUNT. |
static DefaultPageBuilderService |
getInstance()
Return the unique instance
|
Map<String,Object> |
getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
Get the model to manage the advanced parameters
|
Map<String,Boolean> |
getOrderedColumnsStatus()
Builds the map to with column id as key, and
true as value if column is well ordered, false otherwise. |
fr.paris.lutece.util.ReferenceList |
getPageBuilderParamDefaultValues()
Get the list of widget parameter default values
|
fr.paris.lutece.util.ReferenceItem |
getPageBuilderParameterDefaultValue(String strParameterKey)
Get the parameter
|
List<WidgetComponent> |
getWidgetComponents(int nColumn) |
Collection<Widget> |
getWidgetsList()
Get the list of widgets that are not currently put on the default page builder
|
void |
removeAllColumnStyleFromPageBuilderParameter()
Remove all column styles
|
void |
updatePageBuilderParameterDefaultValue(fr.paris.lutece.util.ReferenceItem param)
Update a widget parameter default value
|
public static DefaultPageBuilderService getInstance()
public int getColumnCount()
DefaultPageBuilderService#PROPERTY_COLUMN_COUNT.
Default is CONSTANTE_DEFAULT_COLUMN_COUNTpublic List<WidgetComponent> getWidgetComponents(int nColumn)
nColumn - the column idpublic void doMoveWidgetComponent(WidgetComponent widgetComponent, int nOldColumn, int nOldOrder, boolean bCreate)
widgetComponent - to move, with new valuesnOldColumn - previous column idnOldOrder - previous orderbCreate - true if this is a new widgetComponent, false otherwise.public Map<String,List<WidgetComponent>> getAllSetWidgetComponents()
public void doReorderColumn(int nColumn)
nColumn - the column to reorderpublic void doRemoveWidgetComponent(int nIdWidgetComponent)
nIdWidgetComponent - the ID of the widget componentpublic void doRemoveByColumnMax(int nColumnMax)
nColumnMax - the column maxpublic Map<String,Boolean> getOrderedColumnsStatus()
true as value if column is well ordered, false otherwise.public Map<String,Object> getManageAdvancedParameters(fr.paris.lutece.portal.business.user.AdminUser user)
user - the current AdminUserpublic fr.paris.lutece.util.ReferenceList getPageBuilderParamDefaultValues()
ReferenceListpublic fr.paris.lutece.util.ReferenceItem getPageBuilderParameterDefaultValue(String strParameterKey)
strParameterKey - the parameter keyReferenceItempublic Collection<Widget> getWidgetsList()
public void updatePageBuilderParameterDefaultValue(fr.paris.lutece.util.ReferenceItem param)
param - the parameterpublic void removeAllColumnStyleFromPageBuilderParameter()
public void addNewPageBuilderParameter(fr.paris.lutece.util.ReferenceItem param)
param - the parameterCopyright © 2017 City of Paris. All rights reserved.