public class ViewsConfigElement extends org.springframework.extensions.config.element.ConfigElementAdapter implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_ELEMENT_ID |
static String |
SORT_ASCENDING |
static String |
SORT_DESCENDING |
static String |
VIEW_BUBBLE |
static String |
VIEW_DETAILS |
static String |
VIEW_ICONS |
static String |
VIEW_LIST |
Constructor and Description |
---|
ViewsConfigElement()
Default Constructor
|
ViewsConfigElement(String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
org.springframework.extensions.config.ConfigElement |
combine(org.springframework.extensions.config.ConfigElement configElement) |
List<org.springframework.extensions.config.ConfigElement> |
getChildren() |
int |
getDefaultPageSize(String page,
String view)
Returns the page size for the given page and view combination
|
String |
getDefaultSortColumn(String page)
Returns the default sort column for the given page
|
String |
getDefaultView(String page)
Returns the default view for the given page
|
List<String> |
getViews()
Returns a map of configured views for the client
|
boolean |
hasDescendingSort(String page)
Determines whether the given page has been
configured to use descending sorting by default
|
public static final String CONFIG_ELEMENT_ID
public static final String VIEW_DETAILS
public static final String VIEW_ICONS
public static final String VIEW_LIST
public static final String VIEW_BUBBLE
public static final String SORT_ASCENDING
public static final String SORT_DESCENDING
public ViewsConfigElement()
public ViewsConfigElement(String name)
name
- Name of the element this config element representspublic List<org.springframework.extensions.config.ConfigElement> getChildren()
getChildren
in interface org.springframework.extensions.config.ConfigElement
getChildren
in class org.springframework.extensions.config.element.ConfigElementAdapter
ConfigElementAdapter.getChildren()
public org.springframework.extensions.config.ConfigElement combine(org.springframework.extensions.config.ConfigElement configElement)
combine
in interface org.springframework.extensions.config.ConfigElement
combine
in class org.springframework.extensions.config.element.ConfigElementAdapter
ConfigElementAdapter.combine(org.springframework.extensions.config.ConfigElement)
public List<String> getViews()
public String getDefaultView(String page)
page
- The page to get the default view forpublic int getDefaultPageSize(String page, 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 String getDefaultSortColumn(String page)
page
- The name of the page i.e. browse, forums etc.public boolean hasDescendingSort(String page)
page
- The name of the page i.e. browse, forums etc.Copyright © 2005–2017 Alfresco Software. All rights reserved.