Class CmsContentDefinition

java.lang.Object
org.opencms.acacia.shared.CmsContentDefinition
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
Direct Known Subclasses:
CmsContentDefinition

public class CmsContentDefinition extends Object implements com.google.gwt.user.client.rpc.IsSerializable
Contains all information defining a content entity type.

  • Field Details

  • Constructor Details

  • Method Details

    • extractIndex

      public static int extractIndex(String attributeName)
      Extracts the attribute index from the given attribute name where the index is appended to the name like 'attributename[1]'.

      Parameters:
      attributeName - the attribute name
      Returns:
      the extracted index
    • hasIndex

      public static boolean hasIndex(String pathComponent)
      Checks if the given XPATH component has an index.

      Parameters:
      pathComponent - the path component
      Returns:
      true if the argument contains an index
    • removeIndex

      public static String removeIndex(String attributeName)
      Removes an attribute index suffix from the given attribute name.

      Parameters:
      attributeName - the attribute name
      Returns:
      the attribute name
    • getConfigurations

      Returns the attribute configurations.

      Returns:
      the attribute configurations
    • getEntities

      Returns the locale specific entities of the content.

      Returns:
      the locale specific entities of the content
    • getEntity

      public CmsEntity getEntity()
      Returns the entity.

      Returns:
      the entity
    • getEntityId

      public String getEntityId()
      Returns the entity id.

      Returns:
      the entity id
    • getEntityTypeName

      Returns the entity type name.

      Returns:
      the entity type name
    • getLocale

      public String getLocale()
      Returns the locale.

      Returns:
      the locale
    • getTabInfos

      Returns the tab information beans.

      Returns:
      the tab information beans
    • getTypes

      Returns the types.

      Returns:
      the types
    • isGroupOptionalFields

      public boolean isGroupOptionalFields()
      Returns if optional fields should be grouped together.

      Returns:
      true if optional fields should be grouped together