All Superinterfaces:
Comparable<StoreElement>, StoreElement, Workflowable

public interface Allowed extends StoreElement
This interface represents the allowed element which is a child of a page template. Allowed nodes defines which templates could be used to create a section or a content section.
Since:
3.0
  • Method Details

    • getAllowedBodies

      List<TemplateBody> getAllowedBodies()
      Returns the immutable list of template bodies for which the belonging template is allowed.
      Use addAllowedBody(TemplateBody) and removeAllowedBody(TemplateBody) to modify this list.
      Returns:
      list of allowed bodies
      Since:
      4.0.15
    • addAllowedBody

      void addAllowedBody(TemplateBody templateBody)
      Adds the given TemplateBody to the list of allowed bodies of this allowed node
      Parameters:
      templateBody - the template body to add to allowed bodies
      Since:
      4.0.15
    • removeAllowedBody

      void removeAllowedBody(TemplateBody templateBody)
      Removes the given TemplateBody from the list of allowed bodies of this allowed node
      Parameters:
      templateBody - the template body to remove from allowed bodies
      Since:
      4.0.15
    • getTemplate

      Template getTemplate()
      Returns the belonging template of this allowed node.
      Returns:
      the belonging template (section template or table template) or null
      Since:
      3.0