public class PresentationManager extends Object implements IPresentationManagerSPI
PROPERTY_PRESENTATION_OUTPUT_DATE_TIME, PROPERTY_PRESENTATION_OUTPUT_SERVER_ID
Constructor and Description |
---|
PresentationManager() |
Modifier and Type | Method and Description |
---|---|
void |
clearChannelHtmlProcessorsCache(String channelId)
Clears the
IHtmlProcessor cache. |
void |
clearHtmlProcessorsCache()
Clears all HTML processor cache.
|
void |
clearServiceInstanceHtmlProcessorsCache(String serviceInstanceId)
Clears the
IHtmlProcessor cache. |
List<String> |
getAdministrationBarChannelIds(SessionConfig sessionConfig,
ITransaction transaction)
Get the Ids of the administration bar of the Channel.
|
PageConfig |
getDefaultPage(SessionConfig sessionConfig,
String pageId,
String channelId,
IWebsiteBaseURL websiteBaseURL,
int mode,
ITransaction daoTransaction)
Get the default Page.
|
PageConfig |
getDefaultPage(SessionConfig sessionConfig,
String pageId,
String channelId,
IWebsiteBaseURL websiteBaseURL,
IPortalMode mode,
PortalRequestContext requestContext,
boolean fallbackToFirstWebsitePage,
ITransaction transaction)
Get the default Page.
|
PageConfig |
getDefaultPage(SessionConfig sessionConfig,
String pageId,
String channelId,
IWebsiteBaseURL websiteBaseURL,
IPortalMode mode,
PortalRequestContext requestContext,
ITransaction transaction)
Get the default Page.
|
PageConfig |
getDefaultPage(SessionConfig sessionConfig,
String pageId,
String channelId,
String website,
int mode,
ITransaction daoTransaction)
Deprecated.
|
PageConfig |
getDefaultPage(SessionConfig sessionConfig,
String pageId,
String channelId,
String website,
int mode,
PortalRequestContext requestContext,
ITransaction transaction)
Deprecated.
|
List<IHtmlProcessor> |
getProcessors(PageWebResource webResource)
Returns a list with the
HTML processors for the given web resource . |
void |
resetAdministrationBarChannelIds()
Reset the administration bar of the Channel.
|
@Deprecated public PageConfig getDefaultPage(SessionConfig sessionConfig, String pageId, String channelId, String website, int mode, PortalRequestContext requestContext, ITransaction transaction) throws ManagerException, PortalException
IPresentationManagerSPI
getDefaultPage
in interface IPresentationManagerSPI
sessionConfig
- the session identifier of the current user.pageId
- The destination page identifier.channelId
- The destination channel identifier.website
- the website base URL that the user is accessing.mode
- the current portal mode.requestContext
- the portal request context map.transaction
- the current transaction.PortalException
ManagerException
public PageConfig getDefaultPage(SessionConfig sessionConfig, String pageId, String channelId, IWebsiteBaseURL websiteBaseURL, IPortalMode mode, PortalRequestContext requestContext, ITransaction transaction) throws ManagerException, PortalException
IPresentationManagerSPI
getDefaultPage
in interface IPresentationManagerSPI
sessionConfig
- the session identifier of the current user.pageId
- The destination page identifier.channelId
- The destination channel identifier.websiteBaseURL
- the IWebsiteBaseURL
that the user is accessing.mode
- the current portal mode.requestContext
- the portal request context map.transaction
- the current transaction.PortalException
ManagerException
public PageConfig getDefaultPage(SessionConfig sessionConfig, String pageId, String channelId, IWebsiteBaseURL websiteBaseURL, IPortalMode mode, PortalRequestContext requestContext, boolean fallbackToFirstWebsitePage, ITransaction transaction) throws ManagerException, PortalException
IPresentationManagerSPI
getDefaultPage
in interface IPresentationManagerSPI
sessionConfig
- the session identifier of the current user.pageId
- The destination page identifier.channelId
- The destination channel identifier.websiteBaseURL
- the IWebsiteBaseURL
that the user is accessing.mode
- the current portal mode.requestContext
- the portal request context map.fallbackToFirstWebsitePage
- if true
, will try to fallback
to first website's page if pageId and channelId not specified and no
applicable PageLinkConfig
exists; otherwise will return null
.transaction
- the current transaction.null
if it was not found.ManagerException
PortalException
public List<String> getAdministrationBarChannelIds(SessionConfig sessionConfig, ITransaction transaction) throws PortalException
IPresentationManager
getAdministrationBarChannelIds
in interface IPresentationManager
PortalException
public void resetAdministrationBarChannelIds()
IPresentationManager
resetAdministrationBarChannelIds
in interface IPresentationManager
@Deprecated public PageConfig getDefaultPage(SessionConfig sessionConfig, String pageId, String channelId, String website, int mode, ITransaction daoTransaction) throws ManagerException, PortalException
IPresentationManager
getDefaultPage
in interface IPresentationManager
sessionConfig
- the session identifier of the current user.pageId
- The destination page identifier.channelId
- The destination channel identifier.website
- the website base URL that the user is accessing.mode
- the current portal mode.daoTransaction
- the current transaction.PortalException
- if any error occurs during the processingManagerException
public PageConfig getDefaultPage(SessionConfig sessionConfig, String pageId, String channelId, IWebsiteBaseURL websiteBaseURL, int mode, ITransaction daoTransaction) throws ManagerException, PortalException
IPresentationManager
getDefaultPage
in interface IPresentationManager
sessionConfig
- the session identifier of the current user.pageId
- The destination page identifier.channelId
- The destination channel identifier.websiteBaseURL
- the IWebsiteBaseURL
that the user is accessing.mode
- the current portal mode.daoTransaction
- the current transaction.PortalException
- if any error occurs during the processing.ManagerException
public List<IHtmlProcessor> getProcessors(PageWebResource webResource) throws PortalException
IPresentationManagerSPI
HTML processors
for the given web resource
.
Based on the given resource, collect all service instances that belongs to services that has HMTL processors
and order them by priority.getProcessors
in interface IPresentationManagerSPI
webResource
- the web resource.HTML processors
for the given web resource
.PortalException
public void clearChannelHtmlProcessorsCache(String channelId)
IPresentationManagerSPI
IHtmlProcessor
cache.clearChannelHtmlProcessorsCache
in interface IPresentationManagerSPI
channelId
- the affected channel identifier.public void clearServiceInstanceHtmlProcessorsCache(String serviceInstanceId)
IPresentationManagerSPI
IHtmlProcessor
cache.clearServiceInstanceHtmlProcessorsCache
in interface IPresentationManagerSPI
serviceInstanceId
- the affected service instance identifier.public void clearHtmlProcessorsCache()
IPresentationManagerSPI
clearHtmlProcessorsCache
in interface IPresentationManagerSPI
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.