public class CmsContainerElement extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Modifier and Type | Class and Description |
---|---|
static class |
CmsContainerElement.ModelGroupState
The model group states.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_CONTAINER
HTML class used to identify containers.
|
static java.lang.String |
CLASS_CONTAINER_ELEMENT_END_MARKER
HTML class used to identify container elements.
|
static java.lang.String |
CLASS_CONTAINER_ELEMENT_START_MARKER
HTML class used to identify container elements.
|
static java.lang.String |
CLASS_ELEMENT_ERROR
HTML class used to identify error message for elements where rendering failed to render.
|
static java.lang.String |
CLASS_GROUP_CONTAINER_ELEMENT_MARKER
HTML class used to identify group container elements.
|
static java.lang.String |
CREATE_AS_NEW
The create as new setting key.
|
static java.lang.String |
ELEMENT_INSTANCE_ID
The element instance id settings key.
|
static java.lang.String |
GROUP_CONTAINER_TYPE_NAME
The group container resource type name.
|
static java.lang.String |
INHERIT_CONTAINER_TYPE_NAME
The resource type name for inherited container references.
|
static java.lang.String |
IS_MODEL_GROUP_ALWAYS_REPLACE
The is model group always replace element setting key.
|
static java.lang.String |
MENU_CONTAINER_ID
The container id marking the edit menus.
|
static java.lang.String |
MODEL_GROUP_ID
The model group id setting key.
|
static java.lang.String |
MODEL_GROUP_STATE
The is model group element setting key.
|
static java.lang.String |
USE_AS_COPY_MODEL
The use as copy model setting key.
|
Constructor and Description |
---|
CmsContainerElement()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
CmsContainerElement |
copy()
Copies the container element.
|
java.lang.String |
getClientId()
Returns the client id.
|
CmsUUID |
getElementView()
Returns the element view this element belongs to by it's type.
|
CmsInheritanceInfo |
getInheritanceInfo()
Returns the inheritance info for this element.
|
CmsUUID |
getModelGroupId()
Returns the model group id.
|
java.lang.String |
getNoEditReason()
Returns the no edit reason.
|
java.lang.String |
getResourceType()
Returns the resource type name for elements.
|
java.lang.String |
getSitePath()
Returns the site path.
|
java.lang.String |
getSubTitle()
Returns the sub title.
|
java.lang.String |
getTitle()
Returns the title.
|
boolean |
hasSettings(java.lang.String containerId)
Returns if the element may have settings.
|
boolean |
hasViewPermission()
Returns if the current user has view permissions for the element resource.
|
boolean |
hasWritePermission()
Returns if the user has write permission.
|
boolean |
isCopyInModels()
Returns the copy in models flag.
|
boolean |
isCreateNew()
Reads the 'create new' status of the element.
|
boolean |
isGroupContainer()
Returns if the given element is of the type group container.
|
boolean |
isInheritContainer()
Returns if the given element is of the type inherit container.
|
boolean |
isModelGroup()
Returns if the element is a model group.
|
boolean |
isModelGroupAlwaysReplace()
Returns if all instances of this element should be replaced within a model group.
|
boolean |
isNew()
Returns if the element is new and has not been created in the VFS yet.
|
boolean |
isNewEditorDisabled()
Returns true if the new editor is disabled for this element.
|
boolean |
isReleasedAndNotExpired()
Returns if the given resource is released and not expired.
|
boolean |
isWasModelGroup()
Returns the former copy model status.
|
void |
setClientId(java.lang.String clientId)
Sets the client id.
|
void |
setCopyInModels(boolean copyInModels)
Sets the copy in models flag.
|
void |
setCreateNew(boolean createNew)
Sets the 'create new' status of the element.
|
void |
setElementView(CmsUUID elementView)
Sets the element view.
|
void |
setHasSettings(boolean hasSettings)
Sets if the element may have settings.
|
void |
setInheritanceInfo(CmsInheritanceInfo inheritanceInfo)
Sets the inheritance info for this element.
|
void |
setModelGroupAlwaysReplace(boolean alwaysReplace)
Sets if all instances of this element should be replaced within a model group.
|
void |
setModelGroupId(CmsUUID modelGroupId)
Sets the model group id.
|
void |
setNew(boolean isNew)
Sets the 'new' flag.
|
void |
setNewEditorDisabled(boolean disabled)
Disables the new editor for this element.
|
void |
setPermissionInfo(CmsPermissionInfo permissionInfo)
Sets the permission info.
|
void |
setReleasedAndNotExpired(boolean releasedAndNotExpired)
Sets if the given resource is released and not expired.
|
void |
setResourceType(java.lang.String resourceType)
Sets the element resource type.
|
void |
setSitePath(java.lang.String sitePath)
Sets the site path.
|
void |
setSubTitle(java.lang.String subTitle)
Sets the sub title.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
void |
setWasModelGroup(boolean wasModelGroup)
Sets the was model group flag.
|
public static final java.lang.String CLASS_CONTAINER
public static final java.lang.String CLASS_CONTAINER_ELEMENT_END_MARKER
public static final java.lang.String CLASS_CONTAINER_ELEMENT_START_MARKER
public static final java.lang.String CLASS_ELEMENT_ERROR
public static final java.lang.String CLASS_GROUP_CONTAINER_ELEMENT_MARKER
public static final java.lang.String CREATE_AS_NEW
public static final java.lang.String ELEMENT_INSTANCE_ID
public static final java.lang.String GROUP_CONTAINER_TYPE_NAME
public static final java.lang.String INHERIT_CONTAINER_TYPE_NAME
public static final java.lang.String IS_MODEL_GROUP_ALWAYS_REPLACE
public static final java.lang.String MENU_CONTAINER_ID
public static final java.lang.String MODEL_GROUP_ID
public static final java.lang.String MODEL_GROUP_STATE
public static final java.lang.String USE_AS_COPY_MODEL
public CmsContainerElement()
public CmsContainerElement copy()
public java.lang.String getClientId()
public CmsUUID getElementView()
public CmsInheritanceInfo getInheritanceInfo()
public CmsUUID getModelGroupId()
public java.lang.String getNoEditReason()
public java.lang.String getResourceType()
public java.lang.String getSitePath()
public java.lang.String getSubTitle()
public java.lang.String getTitle()
public boolean hasSettings(java.lang.String containerId)
containerId
- the container idtrue
if the element may have settingspublic boolean hasViewPermission()
true
if the current user has view permissions for the element resourcepublic boolean hasWritePermission()
true
if the user has write permissionpublic boolean isCopyInModels()
public boolean isCreateNew()
When the page containing the element is used a model page, this flag determines whether a copy of the element is created when creating a new page from that model page.
public boolean isGroupContainer()
true
if the given element is of the type group containerpublic boolean isInheritContainer()
true
if the given element is of the type inherit containerpublic boolean isModelGroup()
true
if the element is a model grouppublic boolean isModelGroupAlwaysReplace()
true
if all instances of this element should be replaced within a model grouppublic boolean isNew()
true
if the element is not created in the VFS yetpublic boolean isNewEditorDisabled()
public boolean isReleasedAndNotExpired()
true
if the given resource is released and not expiredpublic boolean isWasModelGroup()
public void setClientId(java.lang.String clientId)
clientId
- the client id to setpublic void setCopyInModels(boolean copyInModels)
copyInModels
- the copy in models flag to setpublic void setCreateNew(boolean createNew)
createNew
- the new 'create new' statuspublic void setElementView(CmsUUID elementView)
elementView
- the element view to setpublic void setHasSettings(boolean hasSettings)
hasSettings
- true
if the element may have settingspublic void setInheritanceInfo(CmsInheritanceInfo inheritanceInfo)
inheritanceInfo
- the inheritance info for this element to setpublic void setModelGroupId(CmsUUID modelGroupId)
modelGroupId
- true
if the element is a model grouppublic void setModelGroupAlwaysReplace(boolean alwaysReplace)
alwaysReplace
- if all instances of this element should be replaced within a model grouppublic void setNew(boolean isNew)
isNew
- true
on a new elementpublic void setNewEditorDisabled(boolean disabled)
disabled
- if true, the new editor will be disabled for this elementpublic void setPermissionInfo(CmsPermissionInfo permissionInfo)
permissionInfo
- the permission info to setpublic void setReleasedAndNotExpired(boolean releasedAndNotExpired)
releasedAndNotExpired
- true
if the given resource is released and not expiredpublic void setResourceType(java.lang.String resourceType)
resourceType
- the element resource typepublic void setSitePath(java.lang.String sitePath)
sitePath
- the site path to setpublic void setSubTitle(java.lang.String subTitle)
subTitle
- the sub titlepublic void setTitle(java.lang.String title)
title
- the titlepublic void setWasModelGroup(boolean wasModelGroup)
wasModelGroup
- the was model group flag to set