public interface IPortalModeSPI extends IPortalMode
IPortalMode
implementations must also implement this interface.Modifier and Type | Method and Description |
---|---|
Set<String> |
getAttributeNames()
Returns the set of attribute names for the current PortalMode.
|
Class<? extends AbstractLayoutFileMarkupFilter> |
getMarkupFilterClass()
Returns markup filter for parser to use to render page.
|
IPermissionProvider |
getPermissionProvider()
Returns the permission provider of the current mode.
|
Class<? extends HTMLFragmentComponent> |
getRenderComponentClass()
Returns the component render.
|
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.
|
boolean |
isWebResourceAvailable(WebResource webResource,
ChannelConfig rootChannel)
Returns whether the given web resource is available for access in the this mode.
|
boolean |
validateAccess(IPortalMode currentMode,
HttpServletRequest httpServletRequest,
IPageWebResourceRequest webResourceRequest)
Checks whether the current user has access to the given portal mode.
|
getDescription, getId, getModeRootUrl, getName
IPermissionProvider getPermissionProvider()
Set<String> getAttributeNames()
Class<? extends HTMLFragmentComponent> getRenderComponentClass()
Class<? extends AbstractLayoutFileMarkupFilter> getMarkupFilterClass()
boolean validateAccess(IPortalMode currentMode, HttpServletRequest httpServletRequest, IPageWebResourceRequest webResourceRequest) throws PortalException
currentMode
- the portal mode.httpServletRequest
- the HTTP servlet request.webResourceRequest
- the page web resource requestPortalException
boolean isAccessWithWebResourceWebsiteRequired(WebResource webResource, ChannelConfig rootChannel)
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.true
if the access requires the use of the web resource's website, false
otherwise.boolean isWebResourceAvailable(WebResource webResource, ChannelConfig rootChannel)
webResource
- the web resource.rootChannelId
- the web resource's root channel.true
if the web resource is available, false
otherwise.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.