public class CmsContentDefinition extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FUNCTION_RENDER_FORM
The member name for the form rendering function.
|
static java.lang.String |
FUNCTION_RENDER_INLINE
The member name for the inline rendering function.
|
static java.lang.String |
NATIVE_RENDERER
The name of the native renderer.
|
static java.lang.String |
PARAM_INIT_CALL
The parameter name for the initialization function.
|
Modifier | Constructor and Description |
---|---|
protected |
CmsContentDefinition()
Constructor.
|
|
CmsContentDefinition(java.lang.String entityId,
java.util.Map<java.lang.String,CmsEntity> entities,
java.util.Map<java.lang.String,CmsAttributeConfiguration> configurations,
java.util.Map<java.lang.String,CmsType> types,
java.util.List<CmsTabInfo> tabInfos,
boolean groupOptionalFields,
java.lang.String locale)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static int |
extractIndex(java.lang.String attributeName)
Extracts the attribute index from the given attribute name where the index is appended to the name like 'attributename[1]'.
|
java.util.Map<java.lang.String,CmsAttributeConfiguration> |
getConfigurations()
Returns the attribute configurations.
|
java.util.Map<java.lang.String,CmsEntity> |
getEntities()
Returns the locale specific entities of the content.
|
CmsEntity |
getEntity()
Returns the entity.
|
java.lang.String |
getEntityId()
Returns the entity id.
|
java.lang.String |
getEntityTypeName()
Returns the entity type name.
|
java.lang.String |
getLocale()
Returns the locale.
|
java.util.List<CmsTabInfo> |
getTabInfos()
Returns the tab information beans.
|
java.util.Map<java.lang.String,CmsType> |
getTypes()
Returns the types.
|
static boolean |
hasIndex(java.lang.String pathComponent)
Checks if the given XPATH component has an index.
|
boolean |
isGroupOptionalFields()
Returns if optional fields should be grouped together.
|
static java.lang.String |
removeIndex(java.lang.String attributeName)
Removes an attribute index suffix from the given attribute name.
|
public static final java.lang.String NATIVE_RENDERER
public static final java.lang.String FUNCTION_RENDER_FORM
public static final java.lang.String FUNCTION_RENDER_INLINE
public static final java.lang.String PARAM_INIT_CALL
public CmsContentDefinition(java.lang.String entityId, java.util.Map<java.lang.String,CmsEntity> entities, java.util.Map<java.lang.String,CmsAttributeConfiguration> configurations, java.util.Map<java.lang.String,CmsType> types, java.util.List<CmsTabInfo> tabInfos, boolean groupOptionalFields, java.lang.String locale)
entityId
- the entity identities
- the locale specific entitiesconfigurations
- the attribute configurationstypes
- the typestabInfos
- the tab information beansgroupOptionalFields
- true
if optional fields should be grouped togetherlocale
- the content localeprotected CmsContentDefinition()
public static int extractIndex(java.lang.String attributeName)
attributeName
- the attribute namepublic static boolean hasIndex(java.lang.String pathComponent)
pathComponent
- the path componentpublic static java.lang.String removeIndex(java.lang.String attributeName)
attributeName
- the attribute namepublic java.util.Map<java.lang.String,CmsAttributeConfiguration> getConfigurations()
public java.util.Map<java.lang.String,CmsEntity> getEntities()
public java.lang.String getEntityId()
public java.lang.String getEntityTypeName()
public java.lang.String getLocale()
public java.util.List<CmsTabInfo> getTabInfos()
public java.util.Map<java.lang.String,CmsType> getTypes()
public boolean isGroupOptionalFields()
true
if optional fields should be grouped together