public class CmsContentDefinition
extends com.alkacon.acacia.shared.ContentDefinition
限定符 | 构造器和说明 |
---|---|
protected |
CmsContentDefinition()
Constructor for serialization only.
|
|
CmsContentDefinition(com.alkacon.acacia.shared.Entity entity,
java.util.Map<java.lang.String,com.alkacon.acacia.shared.AttributeConfiguration> configurations,
java.util.Collection<CmsExternalWidgetConfiguration> externalWidgetConfigurations,
java.util.Map<java.lang.String,CmsComplexWidgetData> complexWidgetData,
java.util.Map<java.lang.String,com.alkacon.vie.shared.I_Type> types,
java.util.List<com.alkacon.acacia.shared.TabInfo> tabInfos,
java.lang.String locale,
java.util.List<java.lang.String> contentLocales,
java.util.Map<java.lang.String,java.lang.String> availableLocales,
java.lang.String title,
java.lang.String sitePath,
java.lang.String resourceType,
boolean performedAutocorrection,
boolean autoUnlock)
Constructor.
|
|
CmsContentDefinition(java.util.List<CmsModelResourceInfo> modelInfos,
java.lang.String newLink,
CmsUUID referenceId,
java.lang.String locale)
Constructor for model file informations object.
|
限定符和类型 | 方法和说明 |
---|---|
static CmsUUID |
entityIdToUuid(java.lang.String entityId)
Returns the UUID according to the given entity id.
|
java.util.Map<java.lang.String,java.lang.String> |
getAvailableLocales()
Returns the available locales.
|
java.util.Map<java.lang.String,CmsComplexWidgetData> |
getComplexWidgetData()
Gets the complex widget configurations.
|
java.util.List<java.lang.String> |
getContentLocales()
Returns the content locales.
|
java.util.List<CmsExternalWidgetConfiguration> |
getExternalWidgetConfigurations()
Returns the external widget configurations.
|
static java.lang.String |
getLocaleFromId(java.lang.String entityId)
Extracts the locale from the entity id.
|
java.util.List<CmsModelResourceInfo> |
getModelInfos()
Returns the model file informations.
|
java.lang.String |
getNewLink()
Returns the new link.
|
CmsUUID |
getReferenceResourceId()
Returns the reference resource structure id.
|
java.lang.String |
getResourceType()
Returns the resource type.
|
java.lang.String |
getSitePath()
Returns the site path.
|
java.lang.String |
getTitle()
Returns the title.
|
static java.lang.String |
getValueForPath(com.alkacon.vie.shared.I_Entity entity,
java.lang.String path)
Returns the value for the given XPath expression.
|
boolean |
isAutoUnlock()
Returns the value of the acacia-unlock configuration option.
|
boolean |
isDeleteOnCancel()
Returns if the resource needs to removed on cancel.
|
boolean |
isDirectEdit()
Returns true if the direct edit flag is set, which means that the editor was opened from the classic direct edit mode.
|
boolean |
isModelInfo()
Returns if the model file informations are present, in this case no additional data is contained.
|
boolean |
isPerformedAutocorrection()
Returns if auto correction was performed.
|
void |
setDeleteOnCancel(boolean deleteOnCancel)
Sets if the resource needs to removed on cancel.
|
void |
setDirectEdit(boolean isDirectEdit)
Sets the value of the direct edit flag.
|
static java.lang.String |
uuidToEntityId(CmsUUID uuid,
java.lang.String locale)
Returns the entity id according to the given UUID.
|
public CmsContentDefinition(com.alkacon.acacia.shared.Entity entity, java.util.Map<java.lang.String,com.alkacon.acacia.shared.AttributeConfiguration> configurations, java.util.Collection<CmsExternalWidgetConfiguration> externalWidgetConfigurations, java.util.Map<java.lang.String,CmsComplexWidgetData> complexWidgetData, java.util.Map<java.lang.String,com.alkacon.vie.shared.I_Type> types, java.util.List<com.alkacon.acacia.shared.TabInfo> tabInfos, java.lang.String locale, java.util.List<java.lang.String> contentLocales, java.util.Map<java.lang.String,java.lang.String> availableLocales, java.lang.String title, java.lang.String sitePath, java.lang.String resourceType, boolean performedAutocorrection, boolean autoUnlock)
entity
- the entityconfigurations
- the attribute configurationsexternalWidgetConfigurations
- the external widget configurationscomplexWidgetData
- the complex widget configurationstypes
- the typestabInfos
- the tab informationlocale
- the content localecontentLocales
- the content localesavailableLocales
- the available localestitle
- the content titlesitePath
- the site pathresourceType
- the resource type nameperformedAutocorrection
- flag indicating the current content has an invalid XML structure and was auto correctedautoUnlock
- false if the editor should not unlock resources automatically in standalone modepublic CmsContentDefinition(java.util.List<CmsModelResourceInfo> modelInfos, java.lang.String newLink, CmsUUID referenceId, java.lang.String locale)
modelInfos
- the model file informationsnewLink
- the new linkreferenceId
- the reference resource structure idlocale
- the localeprotected CmsContentDefinition()
public static CmsUUID entityIdToUuid(java.lang.String entityId)
entityId
- the entity idpublic static java.lang.String getLocaleFromId(java.lang.String entityId)
entityId
- the entity idpublic static java.lang.String getValueForPath(com.alkacon.vie.shared.I_Entity entity, java.lang.String path)
entity
- the entitypath
- the pathpublic static java.lang.String uuidToEntityId(CmsUUID uuid, java.lang.String locale)
uuid
- the UUIDlocale
- the content localepublic java.util.Map<java.lang.String,java.lang.String> getAvailableLocales()
public java.util.Map<java.lang.String,CmsComplexWidgetData> getComplexWidgetData()
public java.util.List<java.lang.String> getContentLocales()
public java.util.List<CmsExternalWidgetConfiguration> getExternalWidgetConfigurations()
public java.util.List<CmsModelResourceInfo> getModelInfos()
public java.lang.String getNewLink()
public CmsUUID getReferenceResourceId()
public java.lang.String getResourceType()
public java.lang.String getSitePath()
public java.lang.String getTitle()
public boolean isAutoUnlock()
public boolean isDeleteOnCancel()
true
if the resource needs to removed on cancelpublic boolean isDirectEdit()
public boolean isModelInfo()
true
if the definition contains the model file informationspublic boolean isPerformedAutocorrection()
true
if auto correction was performedpublic void setDeleteOnCancel(boolean deleteOnCancel)
deleteOnCancel
- true
if the resource needs to removed on cancelpublic void setDirectEdit(boolean isDirectEdit)
isDirectEdit
- the new value for the direct edit flag