Interface ContentProducer

All Superinterfaces:
Comparable<StoreElement>, HistoryProvider, IDProvider, StoreElement, Workflowable
All Known Subinterfaces:
DocumentGroup, GCAPage, Page, PageRef

public interface ContentProducer extends IDProvider
Since:
4.0
  • Method Details

    • createContent

      void createContent(@NotNull @NotNull GenerationContext gc, @NotNull @NotNull PageParams params) throws IOException
      Throws:
      IOException
      Since:
      4.0
    • getFilename

      @NotNull @NotNull String getFilename()
      Get a file or link name for this content producer; without path information and extension, e.g. "index"
      Returns:
      a filename without path information and extension
      Since:
      4.0.54
    • getExtension

      String getExtension(@NotNull @NotNull TemplateSet templateSet)
      Get the file / url extension for this content producer, e.g. "html" or "jsp".
      Since:
      4.0
    • getMultiPageParams

      MultiPageParams getMultiPageParams(@NotNull @NotNull Language language, @NotNull @NotNull TemplateSet templateSet)
      Since:
      4.0
    • getUrl

      String getUrl(@NotNull @NotNull UrlCreatorProvider urlCreatorProvider, @NotNull @NotNull Language lang, @NotNull @NotNull TemplateSet templateSet, @NotNull @NotNull PageParams pageParams, int mode)
      Create an url for this node using the specified urlCreatorProvider, language, template set, and pageParams(sub page).
      Parameters:
      urlCreatorProvider - the url creator provider to use
      lang - language
      templateSet - template set
      pageParams - sub page
      mode - see UrlCreator.Mode
      Since:
      4.1.27
    • getStoredUrl

      @Nullable @Nullable String getStoredUrl(@NotNull @NotNull Language language, @NotNull @NotNull TemplateSet templateSet, @Nullable @Nullable Object multiPageObject)
      Get the stored URL for this node and the provided combination of language, template set, and (optionally) entity. Returns null if no URL is (yet) stored.
      Parameters:
      language - Language to get the URL for.
      templateSet - TemplateSet to get the URL for.
      multiPageObject - Parameter object for multi pages, or null. Provide e.g. an entity for content store based multi pages.
      Returns:
      The stored URL or null, if no URL is yet stored.
      Throws:
      NullPointerException - if either parameter language or templateSet is null.
      Since:
      5.0.4
      See Also: