Class ContainerDelegateDS

java.lang.Object
com.aquima.interactions.foundation.report.ReportingDelegateDS
com.aquima.interactions.composer.ds.delegate.ContainerDelegateDS
All Implemented Interfaces:
IContainerDS, IElementDS, IReportingDS
Direct Known Subclasses:
ContainerDS

public class ContainerDelegateDS extends ReportingDelegateDS implements IContainerDS
Delegate datasource for easy datasource extension. All method calls are delegated to the delegate datasource without adding any functionality.
Since:
8.4
Author:
Jon van Leuven
  • Constructor Summary

    Constructors
    Constructor
    Description
    Construct a datasource that delegates all method calls to the provided datasource.
  • Method Summary

    Modifier and Type
    Method
    Description
    This method returns an array containing all the channel names of the channels in which the container is allowed to be used.
    This method returns an array containing all the role names of the roles for which the container is allowed to be used.
    This method returns the content style that should be used when including the element that is referred to.
    This method returns the text object that should be used as the display text for the container.
    This method returns the possible exit events that can be fired by this container.
    This method returns the (unique) name of the element.
    This method returns the presentation styles that should be used when including the content element that is referred to.
    This method returns the type name of the container.
    boolean
    This method returns a boolean indicating if the container considers the context read-only, and does not require any write access to the context during an expand.
    boolean
    This method indicated if the container is a dynamic container.
    void
    This method should iterate over all the content of this container, and invoke the visitor to add the content.
    void
    This method should iterate over all the mapped exit events of the container, and invoke the visitor to add the mapping.
    void
    This method should iterate over all the properties of the container, and invoke the visitor to add the property.

    Methods inherited from class com.aquima.interactions.foundation.report.ReportingDelegateDS

    addMessage

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.aquima.interactions.foundation.report.IReportingDS

    addMessage
  • Constructor Details

    • ContainerDelegateDS

      public ContainerDelegateDS(IContainerDS datasource)
      Construct a datasource that delegates all method calls to the provided datasource.
      Parameters:
      datasource - The delegate visitor, may not be null
  • Method Details

    • getContentStyle

      public String getContentStyle()
      Description copied from interface: IContainerDS

      This method returns the content style that should be used when including the element that is referred to.

      Pre version 7.0 the content style equals the tagname of the container.

      Specified by:
      getContentStyle in interface IContainerDS
      Returns:
      the content style that should be used when including the element that is referred to.
    • getName

      public String getName()
      Description copied from interface: IElementDS
      This method returns the (unique) name of the element. The name is required when adding the content as a definition to the composer, but it is optional when the element is added directly as inline sub-content.
      Specified by:
      getName in interface IElementDS
      Returns:
      the (unique) name of the element.
    • getTypeName

      public String getTypeName()
      Description copied from interface: IContainerDS
      This method returns the type name of the container.
      Specified by:
      getTypeName in interface IContainerDS
      Returns:
      the type name of the container.
    • isDynamic

      public boolean isDynamic()
      Description copied from interface: IContainerDS
      This method indicated if the container is a dynamic container.
      Specified by:
      isDynamic in interface IContainerDS
      Returns:
      boolean indicating if the container is a dynamic container.
    • getPresentationStyles

      public String[] getPresentationStyles()
      Description copied from interface: IElementDS
      This method returns the presentation styles that should be used when including the content element that is referred to.
      Specified by:
      getPresentationStyles in interface IElementDS
      Returns:
      the presentation styles that should be used when including the content element that is referred to.
    • isContextImmutable

      public boolean isContextImmutable()
      Description copied from interface: IContainerDS
      This method returns a boolean indicating if the container considers the context read-only, and does not require any write access to the context during an expand.
      Specified by:
      isContextImmutable in interface IContainerDS
      Returns:
      Boolean indicating if the container considers the context read-only.
    • getAllowedChannels

      public String[] getAllowedChannels()
      Description copied from interface: IContainerDS
      This method returns an array containing all the channel names of the channels in which the container is allowed to be used. When the container is available for all channels, it is recommended to return either an empty array or a null value.
      Specified by:
      getAllowedChannels in interface IContainerDS
      Returns:
      Array containing all the channels for which the container is available.
    • getAllowedRoles

      public String[] getAllowedRoles()
      Description copied from interface: IContainerDS
      This method returns an array containing all the role names of the roles for which the container is allowed to be used. When the container is available for all roles, it is recommended to return either an empty array or a null value.
      Specified by:
      getAllowedRoles in interface IContainerDS
      Returns:
      Array containing all the roles for which the container is available.
    • getDisplayText

      public IMultilingualText getDisplayText()
      Description copied from interface: IContainerDS
      This method returns the text object that should be used as the display text for the container. The text object may contain expressions, as it will be parsed during initialization to a IDynamicText object.
      Specified by:
      getDisplayText in interface IContainerDS
      Returns:
      the text object that should be used as the display text for the container.
    • iterateContents

      public void iterateContents(IContainmentVisitor visitor)
      Description copied from interface: IContainerDS
      This method should iterate over all the content of this container, and invoke the visitor to add the content.
      Specified by:
      iterateContents in interface IContainerDS
      Parameters:
      visitor - The visitor that should be used to add the content to.
    • iterateProperties

      public void iterateProperties(IPropertyVisitor visitor)
      Description copied from interface: IContainerDS
      This method should iterate over all the properties of the container, and invoke the visitor to add the property.
      Specified by:
      iterateProperties in interface IContainerDS
      Parameters:
      visitor - The visitor that should be used to add the properties to.
    • getExitEvents

      public String[] getExitEvents()
      Description copied from interface: IContainerDS
      This method returns the possible exit events that can be fired by this container. This method should return null when this container is unaware of its exit events.
      Specified by:
      getExitEvents in interface IContainerDS
      Returns:
      the possible exit events, can be null.
    • iterateExitEvents

      public void iterateExitEvents(IContainerExitEventVisitor visitor)
      Description copied from interface: IContainerDS
      This method should iterate over all the mapped exit events of the container, and invoke the visitor to add the mapping.
      Specified by:
      iterateExitEvents in interface IContainerDS
      Parameters:
      visitor - The visitor that should be used to add the events to.