public class CmsElementView extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CmsElementView.ElementViewComparator
The element view comparator.
|
| Modifier and Type | Field and Description |
|---|---|
static CmsElementView |
DEFAULT_ELEMENT_VIEW
The default element view.
|
static int |
DEFAULT_ORDER
Default order if not configured.
|
static java.lang.String |
GUI_ELEMENT_VIEW_DEFAULT_TITLE_0
The default element view title key.
|
static java.lang.String |
N_ORDER
The order node.
|
static java.lang.String |
N_TITLE
The title node.
|
static java.lang.String |
N_TITLE_KEY
The title key node.
|
static java.lang.String |
PARENT_NONE
Special value indicating that no view is selected (used for parent view selection).
|
| Constructor and Description |
|---|
CmsElementView(CmsExplorerTypeSettings explorerType)
Creates a new element view based on the given explorer type.
|
CmsElementView(CmsObject cms,
CmsResource resource)
Constructor.
|
CmsElementView(CmsUUID id)
Creates a new view with the given id, but initializes no other fields.
|
| Modifier and Type | Method and Description |
|---|---|
CmsExplorerTypeSettings |
getExplorerType()
Gets the explorer type settings.
|
static CmsUUID |
getExplorerTypeViewId(java.lang.String typeName)
Helper method to compute the uuid for views based on explorer types.
|
CmsUUID |
getId()
Returns the element view id.
|
int |
getOrder()
The order.
|
CmsUUID |
getParentViewId()
Gets the parent view id (null if there is no parent view).
|
CmsResource |
getResource()
Returns the element view resource.
|
java.lang.String |
getTitle(CmsObject cms,
java.util.Locale locale)
Returns the element view title.
|
boolean |
hasPermission(CmsObject cms,
CmsResource folder)
Checks whether the current user has permissions to use the element view.
|
boolean |
isOther()
'Other types' view, for everything that isn't assigned to any other view.
|
public static final CmsElementView DEFAULT_ELEMENT_VIEW
public static final int DEFAULT_ORDER
public static final java.lang.String GUI_ELEMENT_VIEW_DEFAULT_TITLE_0
public static final java.lang.String N_ORDER
public static final java.lang.String N_TITLE
public static final java.lang.String N_TITLE_KEY
public static final java.lang.String PARENT_NONE
public CmsElementView(CmsExplorerTypeSettings explorerType)
explorerType - the explorer typepublic CmsElementView(CmsObject cms, CmsResource resource) throws java.lang.Exception
cms - the cms contextresource - the group resourcejava.lang.Exception - if parsing the resource failspublic CmsElementView(CmsUUID id)
id - the idpublic static CmsUUID getExplorerTypeViewId(java.lang.String typeName)
typeName - the explorer type namepublic CmsExplorerTypeSettings getExplorerType()
public int getOrder()
public CmsUUID getParentViewId()
public CmsResource getResource()
public java.lang.String getTitle(CmsObject cms, java.util.Locale locale)
cms - the cms contextlocale - the localepublic boolean hasPermission(CmsObject cms, CmsResource folder)
cms - the cms contextfolder - used for permission checks for explorertype based viewstrue if the current user has permissions to use the element viewpublic boolean isOther()