Interface ContentTypeDescriptor

All Known Subinterfaces:
ContentType
All Known Implementing Classes:
AbstractContentTypeDescriptor, AutomaticContentType, ContentTypeDefinition, DefaultContentType, DynamicContentTypeDescriptor, HTMLContentType, ODFContentType, WebContentType

public interface ContentTypeDescriptor
This class represents a descriptor for content type
  • Method Details

    • getId

      Retrieves the id of the content type.
      Returns:
      the id.
    • getPluginName

      Retrieves the name of the plugin declaring this content type.
      Returns:
      the name of the plugin.
    • getLabel

      Retrieves the label of the content type.
      Returns:
      the label.
    • getDescription

      Retrieves the description of the content type.
      Returns:
      the description.
    • getDefaultTitle

      Retrieves the default title of the content type.
      Returns:
      the default title.
    • getCategory

      Retrieves the category of the content type.
      Returns:
      the category.
    • getSupertypeIds

      Retrieves the super type's ids.
      Returns:
      the super type's ids, or empty if this content type doesn't extend a specific content type.
    • getIconGlyph

      Retrieves the CSS class to use for glyph icon
      Returns:
      the glyph name.
    • getIconDecorator

      Retrieves the CSS class to use for decorator above the main icon
      Returns:
      the glyph name.
    • getSmallIcon

      Retrieves the URL of the icon without the context path.
      Returns:
      the icon URL for the small image 16x16.
    • getMediumIcon

      Retrieves the URL of the icon without the context path.
      Returns:
      the icon URL for the medium sized image 32x32.
    • getLargeIcon

      Retrieves the URL of the icon without the context path.
      Returns:
      the icon URL for the large image 48x48.
    • getViewMetadataSetNames

      @Deprecated Set<String> getViewMetadataSetNames(boolean includeInternal)
      Deprecated.
      Returns all names of "view" metadataSets.
      Parameters:
      includeInternal - if the result should include internal metadataSets.
      Returns:
      all names of "view" metadataSets.
    • getEditionMetadataSetNames

      @Deprecated Set<String> getEditionMetadataSetNames(boolean includeInternal)
      Deprecated.
      Returns all names of "edition" metadataSets.
      Parameters:
      includeInternal - if the result should include internal metadataSets.
      Returns:
      all names of "edition" metadataSets.
    • getMetadataSetForView

      Deprecated.
      Retrieves the metadata set name for view.
      Parameters:
      metadataSetName - the metadata set name.
      Returns:
      the metadata definition.
    • getMetadataSetForEdition

      Deprecated.
      Retrieves the metadata set name for edition.
      Parameters:
      metadataSetName - the metadata set name.
      Returns:
      the metadata set.
    • getCSSFiles

      Returns the list of CSS files needed to correctly display the content's in BO, such as the content's icon
      Returns:
      The list of CSS files needed. Must not be null.
    • getDefaultCatalog

      Returns the default i18n catalog for this content type.
      Returns:
      the default i18n catalog for this content type.
    • getIconPath

      default String getIconPath(String pluginName)
      Returns the path for icons
      Parameters:
      pluginName - the configured plugin
      Returns:
      the path for icons