Interface I_CmsADEConfiguration


public interface I_CmsADEConfiguration
Configurable & expandable configuration.

Since:
7.6
  • Method Details

    • createNewElement

      CmsResource createNewElement(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request, String type, Locale locale) throws CmsException
      Creates a new element of a given type at the configured location.

      Parameters:
      cms - the current opencms context
      cntPageUri - the container page uri
      request - the current request
      type - the type of the element to be created
      locale - the content locale
      Returns:
      the CmsResource representing the newly created element
      Throws:
      CmsException - if something goes wrong
    • getCreatableElements

      Collection<CmsResource> getCreatableElements(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request) throws CmsException
      Returns the list of creatable elements.

      Parameters:
      cms - the current opencms context
      cntPageUri - the container page uri
      request - the current request
      Returns:
      the list of creatable elements
      Throws:
      CmsException - if something goes wrong
    • getFavoriteListMaxSize

      Returns the maximal size of the favorite list.

      Parameters:
      cms - the current opencms context
      Returns:
      the maximal size of the favorite list
      Throws:
      CmsException - if something goes wrong
    • getFormattersForResource

      Returns the formatter configuration for a given resource.

      Parameters:
      cms - the OpenCms user context
      containerPageRootPath - the root path to the container page that includes the element resource
      res - the container page element resource
      Returns:
      the formatter configuration for a given resource
      Throws:
      CmsException - if something goes wrong
    • getNextNewFileName

      String getNextNewFileName(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request, String type) throws CmsException
      Returns the name of the next new file of the given type to be created.

      Parameters:
      cms - the current opencms context
      cntPageUri - the container page uri
      request - the current request
      type - the resource type name
      Returns:
      the name of the next new file of the given type to be created
      Throws:
      CmsException - if something goes wrong
    • getRecentListMaxSize

      Returns the maximal size of the recent list.

      Parameters:
      cms - the current opencms context
      Returns:
      the maximal size of the recent list
      Throws:
      CmsException - if something goes wrong
    • getSearchableResourceTypes

      Collection<CmsResource> getSearchableResourceTypes(CmsObject cms, String cntPageUri, javax.servlet.ServletRequest request) throws CmsException
      Returns the list of searchable resource types.

      Parameters:
      cms - the current opencms context
      cntPageUri - the container page uri
      request - the current request
      Returns:
      the list of searchable resource types, identified by a sample resource
      Throws:
      CmsException - if something goes wrong
    • init

      void init(CmsObject cms)
      Initializes the configuration.

      Parameters:
      cms - the CMS object
    • isCreatableType

      boolean isCreatableType(CmsObject cms, String currentUri, String typeName) throws CmsException
      Returns if the given type has a valid configuration to be created.

      Parameters:
      cms - the CMS context
      currentUri - the current URI
      typeName - the resource type name
      Returns:
      true if the type can be created as new
      Throws:
      CmsException - if something goes wrong