public abstract class ContextValidatingPortalMode extends AbstractPortalMode
Modifier and Type | Class and Description |
---|---|
protected static class |
ContextValidatingPortalMode.PageChannelResolveResult
Stores the context to be validated against.
|
ROOT_CHANNELS_ONLY_PORTAL
Constructor and Description |
---|
ContextValidatingPortalMode(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 abstract ContextValidatingPortalMode.PageChannelResolveResult |
resolve(HttpServletRequest request,
IPageWebResourceRequest webResourceRequest)
Resolves the context.
|
boolean |
validateAccess(IPortalMode currentMode,
HttpServletRequest httpServletRequest,
IPageWebResourceRequest webResourceRequest)
Checks whether the current user has access to the given portal mode.
|
protected boolean |
webResourceExists(NavigationContext.WebResourceResume webResourceResume)
Verifies that the page and channel referenced by the specified web
resource exists.
|
getAttributeNames, getDescription, getId, getMarkupFilterClass, getModeRootUrl, getName, getPermissionProvider, getRenderComponentClass, getValidWebResourceRootChannels, isWebResourceAvailable, writeReplace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAccessWithWebResourceWebsiteRequired
public ContextValidatingPortalMode(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
protected abstract ContextValidatingPortalMode.PageChannelResolveResult resolve(HttpServletRequest request, IPageWebResourceRequest webResourceRequest) throws PortalException
request
- the request.webResourceRequest
- the request page web resourcePortalException
protected boolean webResourceExists(NavigationContext.WebResourceResume webResourceResume)
webResourceResume
- the web resource.true
if page and channel exists, false
otherwise.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.