public class ViewsConfigElement
extends org.springframework.extensions.config.element.ConfigElementAdapter
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIG_ELEMENT_ID |
static java.lang.String |
SORT_ASCENDING |
static java.lang.String |
SORT_DESCENDING |
static java.lang.String |
VIEW_BUBBLE |
static java.lang.String |
VIEW_DETAILS |
static java.lang.String |
VIEW_ICONS |
static java.lang.String |
VIEW_LIST |
| Constructor and Description |
|---|
ViewsConfigElement()
Default Constructor
|
ViewsConfigElement(java.lang.String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.extensions.config.ConfigElement |
combine(org.springframework.extensions.config.ConfigElement configElement) |
java.util.List |
getChildren() |
int |
getDefaultPageSize(java.lang.String page,
java.lang.String view)
Returns the page size for the given page and view combination
|
java.lang.String |
getDefaultSortColumn(java.lang.String page)
Returns the default sort column for the given page
|
java.lang.String |
getDefaultView(java.lang.String page)
Returns the default view for the given page
|
java.util.List |
getViews()
Returns a map of configured views for the client
|
boolean |
hasDescendingSort(java.lang.String page)
Determines whether the given page has been
configured to use descending sorting by default
|
public static final java.lang.String CONFIG_ELEMENT_ID
public static final java.lang.String VIEW_DETAILS
public static final java.lang.String VIEW_ICONS
public static final java.lang.String VIEW_LIST
public static final java.lang.String VIEW_BUBBLE
public static final java.lang.String SORT_ASCENDING
public static final java.lang.String SORT_DESCENDING
public ViewsConfigElement()
public ViewsConfigElement(java.lang.String name)
name - Name of the element this config element representspublic java.util.List getChildren()
getChildren in interface org.springframework.extensions.config.ConfigElementgetChildren in class org.springframework.extensions.config.element.ConfigElementAdapterConfigElementAdapter.getChildren()public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
combine in interface org.springframework.extensions.config.ConfigElementcombine in class org.springframework.extensions.config.element.ConfigElementAdapterorg.springframework.extensions.config.element.ConfigElementAdapter#combine(org.alfresco.config.ConfigElement)public java.util.List getViews()
public java.lang.String getDefaultView(java.lang.String page)
page - The page to get the default view forpublic int getDefaultPageSize(java.lang.String page,
java.lang.String view)
page - The name of the page i.e. browse, forums etc.view - The name of the view the size is for i.e. details, icons etc.public java.lang.String getDefaultSortColumn(java.lang.String page)
page - The name of the page i.e. browse, forums etc.public boolean hasDescendingSort(java.lang.String page)
page - The name of the page i.e. browse, forums etc.Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.