Interface IPortalModeSPI

    • Method Detail

      • getPermissionProvider

        IPermissionProvider getPermissionProvider()
        Returns the permission provider of the current mode.
        Returns:
        the permission provider of the current mode.
        Since:
        6.0.0
      • getAttributeNames

        Set<String> getAttributeNames()
        Returns the set of attribute names for the current PortalMode.
        Returns:
        the set of attribute names for the current PortalMode.
        Since:
        6.0.0
      • getRenderComponentClass

        Class<? extends HTMLFragmentComponent> getRenderComponentClass()
        Returns the component render.
        Returns:
        the component render.
        Since:
        6.0.0
      • getMarkupFilterClass

        Class<? extends AbstractLayoutFileMarkupFilter> getMarkupFilterClass()
        Returns markup filter for parser to use to render page.
        Returns:
        markup filter for parser to use to render page.
        Since:
        7.1.0
      • validateAccess

        boolean validateAccess​(IPortalMode currentMode,
                               HttpServletRequest httpServletRequest,
                               IPageWebResourceRequest webResourceRequest)
                        throws PortalException
        Checks whether the current user has access to the given portal mode.
        Parameters:
        currentMode - the portal mode.
        httpServletRequest - the HTTP servlet request.
        webResourceRequest - the page web resource request
        Returns:
        whether the current user has access to the given portal mode.
        Throws:
        PortalException
        Since:
        7.1.0
      • isAccessWithWebResourceWebsiteRequired

        boolean isAccessWithWebResourceWebsiteRequired​(WebResource webResource,
                                                       ChannelConfig rootChannel)
        Returns whether the given web resource in the this mode may only be accessed using the web resource's website.
        Parameters:
        webResource - the web resource being requested. May be null if no web resource was discovered for the current request.
        rootChannel - the web resource's root channel. May be null if no web resource was discovered for the current request.
        Returns:
        true if the access requires the use of the web resource's website, false otherwise.
        Since:
        11.0.0
      • isWebResourceAvailable

        boolean isWebResourceAvailable​(WebResource webResource,
                                       ChannelConfig rootChannel)
        Returns whether the given web resource is available for access in the this mode.
        Parameters:
        webResource - the web resource.
        rootChannelId - the web resource's root channel.
        Returns:
        true if the web resource is available, false otherwise.
        Since:
        11.0.0