Class AbstractPortalMode

    • Constructor Detail

      • AbstractPortalMode

        public AbstractPortalMode​(int id,
                                  String name,
                                  String description,
                                  IPermissionProvider permissionProvider,
                                  Class<? extends HTMLFragmentComponent> renderComponentClass,
                                  String[] attributeNames,
                                  Class<? extends AbstractLayoutFileMarkupFilter> markupFilterClass,
                                  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 Set<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 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 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.
      • writeReplace

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