Class AbstractPortalMode

    • Field Detail

      • ROOT_CHANNELS_ONLY_PORTAL

        protected static final java.util.Set<java.lang.String> ROOT_CHANNELS_ONLY_PORTAL
        Utility constant that may be used by implementations of getValidWebResourceRootChannels().
        Since:
        11.0.0
    • Constructor Detail

      • AbstractPortalMode

        public AbstractPortalMode​(int id,
                                  java.lang.String name,
                                  java.lang.String description,
                                  IPermissionProvider permissionProvider,
                                  java.lang.Class<? extends HTMLFragmentComponent> renderComponentClass,
                                  java.lang.String[] attributeNames,
                                  java.lang.Class<? extends AbstractLayoutFileMarkupFilter> markupFilterClass,
                                  java.lang.String modeRootUrl)
        Constructor for the class.
        Parameters:
        id - the id of the current PortalMode
        name - the name of the current PortalMode.
        description - the description of the current PortalMode.
        the - portal mode url provider of the current PortalMode.
        attributeNames - attribute names for the current PortalMode.
        markupFilterClass - markup filter class for the current PortalMode.
        Since:
        7.1.0
    • Method Detail

      • getAttributeNames

        public java.util.Set<java.lang.String> getAttributeNames()
        Returns the set of attribute names for the current PortalMode.
        Specified by:
        getAttributeNames in interface IPortalModeSPI
        Returns:
        the set of attribute names for the current PortalMode.
        Since:
        6.0.0
      • getDescription

        public java.lang.String getDescription()
        Returns the description of the current PortalMode.
        Specified by:
        getDescription in interface IPortalMode
        Returns:
        the description of the current PortalMode.
        Since:
        6.0.0
      • getId

        public int getId()
        Returns the id of the current PortalMode.
        Specified by:
        getId in interface IPortalMode
        Returns:
        the id of the current PortalMode.
        Since:
        6.0.0
      • getName

        public java.lang.String getName()
        Returns the name of the current PortalMode.
        Specified by:
        getName in interface IPortalMode
        Returns:
        the name of the current PortalMode.
        Since:
        6.0.0
      • getPermissionProvider

        public IPermissionProvider getPermissionProvider()
        Returns the permission provider of the current PortalMode.
        Specified by:
        getPermissionProvider in interface IPortalModeSPI
        Returns:
        the permission provider of the current PortalMode.
        Since:
        6.0.0
      • isWebResourceAvailable

        public boolean isWebResourceAvailable​(WebResource webResource,
                                              ChannelConfig rootChannel)
        Description copied from interface: IPortalModeSPI
        Returns whether the given web resource is available for access in the this mode.
        Specified by:
        isWebResourceAvailable in interface IPortalModeSPI
        Parameters:
        webResource - the web resource.
        Returns:
        true if the web resource is available, false otherwise.
      • getValidWebResourceRootChannels

        protected abstract java.util.Set<java.lang.String> getValidWebResourceRootChannels()
        Used by the default implementation of isWebResourceAvailable(WebResource, ChannelConfig).
        Returns:
        the identifiers of valid root channels of web resource in this mode.
        Since:
        11.0.0
      • writeReplace

        protected java.lang.Object writeReplace()
        Uses PortalModeSerializedData as the serialization of this portal mode.
        Returns:
        the serialized data of this portal mode.
        Since:
        10.4.0