public class SettingsPortalMode extends AbstractPortalMode
ROOT_CHANNELS_ONLY_PORTAL
Constructor and Description |
---|
SettingsPortalMode(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 |
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, isWebResourceAvailable, writeReplace
public SettingsPortalMode(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) throws PortalException
IPortalModeSPI
currentMode
- the portal mode.httpServletRequest
- the HTTP servlet request.webResourceRequest
- the page web resource requestPortalException
public 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.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.