public class PortalStudioPortalMode extends ContextValidatingPortalMode
ContextValidatingPortalMode.PageChannelResolveResult
ROOT_CHANNELS_ONLY_PORTAL
Constructor and Description |
---|
PortalStudioPortalMode(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.
|
protected ContextValidatingPortalMode.PageChannelResolveResult |
resolve(HttpServletRequest request,
IPageWebResourceRequest webResourceRequest)
Resolves the context.
|
validateAccess, webResourceExists
getAttributeNames, getDescription, getId, getMarkupFilterClass, getModeRootUrl, getName, getPermissionProvider, getRenderComponentClass, isWebResourceAvailable, writeReplace
public PortalStudioPortalMode(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.protected ContextValidatingPortalMode.PageChannelResolveResult resolve(HttpServletRequest request, IPageWebResourceRequest webResourceRequest) throws PortalException
ContextValidatingPortalMode
resolve
in class ContextValidatingPortalMode
request
- the request.webResourceRequest
- the request page web resourcePortalException
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.