public class NavigationPortalMode extends AbstractPortalMode
ROOT_CHANNELS_ONLY_PORTAL
Constructor and Description |
---|
NavigationPortalMode(int id,
String name,
String description,
IPermissionProvider permissionProvider,
Class<? extends HTMLFragmentComponent> renderComponentClass,
String[] attributeNames,
Class<? extends AbstractLayoutFileMarkupFilter> markupFilterClass,
String modeRootUrl)
Constructor for the class.
|
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
getValidWebResourceRootChannels()
Used by the default implementation of
AbstractPortalMode.isWebResourceAvailable(WebResource, ChannelConfig) . |
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.
|
getAttributeNames, getDescription, getId, getMarkupFilterClass, getModeRootUrl, getName, getPermissionProvider, getRenderComponentClass, writeReplace
public NavigationPortalMode(int id, String name, String description, IPermissionProvider permissionProvider, Class<? extends HTMLFragmentComponent> renderComponentClass, String[] attributeNames, Class<? extends AbstractLayoutFileMarkupFilter> markupFilterClass, String modeRootUrl)
id
- the id of the current PortalModename
- 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.public boolean validateAccess(IPortalMode currentMode, HttpServletRequest httpServletRequest, IPageWebResourceRequest webResourceRequest)
IPortalModeSPI
currentMode
- the portal mode.httpServletRequest
- the HTTP servlet request.webResourceRequest
- the page web resource requestpublic boolean isAccessWithWebResourceWebsiteRequired(WebResource webResource, ChannelConfig rootChannel)
IPortalModeSPI
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.public boolean isWebResourceAvailable(WebResource webResource, ChannelConfig rootChannel)
IPortalModeSPI
isWebResourceAvailable
in interface IPortalModeSPI
isWebResourceAvailable
in class AbstractPortalMode
webResource
- the web resource.true
if the web resource is available, false
otherwise.protected Set<String> getValidWebResourceRootChannels()
AbstractPortalMode
AbstractPortalMode.isWebResourceAvailable(WebResource, ChannelConfig)
.getValidWebResourceRootChannels
in class AbstractPortalMode
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.