|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.alkacon.acacia.shared.ContentDefinition
org.opencms.ade.contenteditor.shared.CmsContentDefinition
public class CmsContentDefinition
Contains all information needed for editing an XMLContent.
| Constructor Summary | |
|---|---|
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,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)
Constructor. |
|
CmsContentDefinition(java.util.List<CmsModelResourceInfo> modelInfos,
java.lang.String newLink,
CmsUUID referenceId,
java.lang.String locale)
Constructor for model file informations object. |
| Method Summary | |
|---|---|
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.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 |
isDeleteOnCancel()
Returns if the resource needs to removed on cancel. |
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. |
static java.lang.String |
uuidToEntityId(CmsUUID uuid,
java.lang.String locale)
Returns the entity id according to the given UUID. |
| Methods inherited from class com.alkacon.acacia.shared.ContentDefinition |
|---|
extractIndex, getConfigurations, getEntity, getEntityId, getEntityTypeName, getLocale, getTabInfos, getTypes, removeIndex |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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,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)
entity - the entityconfigurations - the attribute configurationsexternalWidgetConfigurations - the external 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 corrected
public 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()
| Method Detail |
|---|
public static CmsUUID entityIdToUuid(java.lang.String entityId)
entityId - the entity id
public static java.lang.String getLocaleFromId(java.lang.String entityId)
entityId - the entity id
public static java.lang.String getValueForPath(com.alkacon.vie.shared.I_Entity entity,
java.lang.String path)
entity - the entitypath - the path
public static java.lang.String uuidToEntityId(CmsUUID uuid,
java.lang.String locale)
uuid - the UUIDlocale - the content locale
public java.util.Map<java.lang.String,java.lang.String> getAvailableLocales()
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 isDeleteOnCancel()
true if the resource needs to removed on cancelpublic 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 cancel
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||