Package lumis.portal.presentation.mode
Class ContentPublicationPortalMode
- java.lang.Object
-
- lumis.portal.presentation.mode.AbstractPortalMode
-
- lumis.portal.presentation.mode.ContextValidatingPortalMode
-
- lumis.portal.presentation.mode.ContentPublicationPortalMode
-
- All Implemented Interfaces:
Serializable
,IPortalMode
,IPortalModeSPI
- Direct Known Subclasses:
ContentAdministrationPortalMode
public class ContentPublicationPortalMode extends ContextValidatingPortalMode
Content publication portal mode.- Since:
- 7.1.0
- Version:
- $Revision: 20927 $ $Date: 2018-02-02 18:28:35 -0200 (Fri, 02 Feb 2018) $
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class lumis.portal.presentation.mode.ContextValidatingPortalMode
ContextValidatingPortalMode.PageChannelResolveResult
-
-
Field Summary
-
Fields inherited from class lumis.portal.presentation.mode.AbstractPortalMode
ROOT_CHANNELS_ONLY_PORTAL
-
-
Constructor Summary
Constructors Constructor Description ContentPublicationPortalMode(int id, String name, String description, IPermissionProvider permissionProvider, Class<? extends HTMLFragmentComponent> renderComponentClass, String[] attributeNames, Class<? extends AbstractLayoutFileMarkupFilter> markupFilterClass, String modeRootUrl)
Constructor for the class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<String>
getValidWebResourceRootChannels()
Used by the default implementation ofAbstractPortalMode.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.-
Methods inherited from class lumis.portal.presentation.mode.ContextValidatingPortalMode
validateAccess, webResourceExists
-
Methods inherited from class lumis.portal.presentation.mode.AbstractPortalMode
getAttributeNames, getDescription, getId, getMarkupFilterClass, getModeRootUrl, getName, getPermissionProvider, getRenderComponentClass, isWebResourceAvailable, writeReplace
-
-
-
-
Constructor Detail
-
ContentPublicationPortalMode
public ContentPublicationPortalMode(int id, String name, String description, IPermissionProvider permissionProvider, Class<? extends HTMLFragmentComponent> renderComponentClass, String[] attributeNames, Class<? extends AbstractLayoutFileMarkupFilter> markupFilterClass, String modeRootUrl)
Constructor for the class.- Parameters:
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.- Since:
- 7.1.0
-
-
Method Detail
-
resolve
protected ContextValidatingPortalMode.PageChannelResolveResult resolve(HttpServletRequest request, IPageWebResourceRequest webResourceRequest) throws PortalException
Description copied from class:ContextValidatingPortalMode
Resolves the context.- Specified by:
resolve
in classContextValidatingPortalMode
- Parameters:
request
- the request.webResourceRequest
- the request page web resource- Returns:
- the resolved context.
- Throws:
PortalException
-
isAccessWithWebResourceWebsiteRequired
public boolean isAccessWithWebResourceWebsiteRequired(WebResource webResource, ChannelConfig rootChannel)
Description copied from interface:IPortalModeSPI
Returns whether the given web resource in the this mode may only be accessed using the web resource's website.- Parameters:
webResource
- the web resource being requested. May benull
if no web resource was discovered for the current request.rootChannel
- the web resource's root channel. May benull
if no web resource was discovered for the current request.- Returns:
true
if the access requires the use of the web resource's website,false
otherwise.
-
getValidWebResourceRootChannels
protected Set<String> getValidWebResourceRootChannels()
Description copied from class:AbstractPortalMode
Used by the default implementation ofAbstractPortalMode.isWebResourceAvailable(WebResource, ChannelConfig)
.- Specified by:
getValidWebResourceRootChannels
in classAbstractPortalMode
- Returns:
- the identifiers of valid root channels of web resource in this mode.
-
-