public class ContentAdministrationPortalMode extends ContentPublicationPortalMode
ContextValidatingPortalMode.PageChannelResolveResult
ROOT_CHANNELS_ONLY_PORTAL
Constructor and Description |
---|
ContentAdministrationPortalMode(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.
|
resolve
webResourceExists
getAttributeNames, getDescription, getId, getMarkupFilterClass, getModeRootUrl, getName, getPermissionProvider, getRenderComponentClass, isWebResourceAvailable, writeReplace
public ContentAdministrationPortalMode(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
validateAccess
in interface IPortalModeSPI
validateAccess
in class ContextValidatingPortalMode
currentMode
- the portal mode.httpServletRequest
- the HTTP servlet request.webResourceRequest
- the page web resource requestPortalException
public boolean isAccessWithWebResourceWebsiteRequired(WebResource webResource, ChannelConfig rootChannel)
IPortalModeSPI
isAccessWithWebResourceWebsiteRequired
in interface IPortalModeSPI
isAccessWithWebResourceWebsiteRequired
in class ContentPublicationPortalMode
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 ContentPublicationPortalMode
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.