Package lumis.portal.presentation.mode
Interface IPortalModeSPI
-
- All Superinterfaces:
IPortalMode
,java.io.Serializable
- All Known Implementing Classes:
AbstractPortalMode
,ContentAdministrationPortalMode
,ContentPublicationPortalMode
,ContextValidatingPortalMode
,NavigationPortalMode
,PortalStudioPortalMode
,SettingsPortalMode
public interface IPortalModeSPI extends IPortalMode
The PortalMode interface used internally by the portal framework.IPortalMode
implementations must also implement this interface.- Since:
- 6.0.0
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getAttributeNames()
Returns the set of attribute names for the current PortalMode.java.lang.Class<? extends AbstractLayoutFileMarkupFilter>
getMarkupFilterClass()
Returns markup filter for parser to use to render page.IPermissionProvider
getPermissionProvider()
Returns the permission provider of the current mode.java.lang.Class<? extends HTMLFragmentComponent>
getRenderComponentClass()
Returns the component render.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
isWebResourceAvailable(WebResource webResource, ChannelConfig rootChannel)
Returns whether the given web resource is available for access in the this mode.boolean
validateAccess(IPortalMode currentMode, javax.servlet.http.HttpServletRequest httpServletRequest, IPageWebResourceRequest webResourceRequest)
Checks whether the current user has access to the given portal mode.-
Methods inherited from interface lumis.portal.presentation.mode.IPortalMode
getDescription, getId, getModeRootUrl, getName
-
-
-
-
Method Detail
-
getPermissionProvider
IPermissionProvider getPermissionProvider()
Returns the permission provider of the current mode.- Returns:
- the permission provider of the current mode.
- Since:
- 6.0.0
-
getAttributeNames
java.util.Set<java.lang.String> getAttributeNames()
Returns the set of attribute names for the current PortalMode.- Returns:
- the set of attribute names for the current PortalMode.
- Since:
- 6.0.0
-
getRenderComponentClass
java.lang.Class<? extends HTMLFragmentComponent> getRenderComponentClass()
Returns the component render.- Returns:
- the component render.
- Since:
- 6.0.0
-
getMarkupFilterClass
java.lang.Class<? extends AbstractLayoutFileMarkupFilter> getMarkupFilterClass()
Returns markup filter for parser to use to render page.- Returns:
- markup filter for parser to use to render page.
- Since:
- 7.1.0
-
validateAccess
boolean validateAccess(IPortalMode currentMode, javax.servlet.http.HttpServletRequest httpServletRequest, IPageWebResourceRequest webResourceRequest) throws PortalException
Checks whether the current user has access to the given portal mode.- Parameters:
currentMode
- the portal mode.httpServletRequest
- the HTTP servlet request.webResourceRequest
- the page web resource request- Returns:
- whether the current user has access to the given portal mode.
- Throws:
PortalException
- Since:
- 7.1.0
-
isAccessWithWebResourceWebsiteRequired
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.- 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.- Since:
- 11.0.0
-
isWebResourceAvailable
boolean isWebResourceAvailable(WebResource webResource, ChannelConfig rootChannel)
Returns whether the given web resource is available for access in the this mode.- Parameters:
webResource
- the web resource.rootChannelId
- the web resource's root channel.- Returns:
true
if the web resource is available,false
otherwise.- Since:
- 11.0.0
-
-