public class PageLinkManager extends Object implements IPageLinkManagerSPI
Constructor and Description |
---|
PageLinkManager() |
Modifier and Type | Method and Description |
---|---|
String |
add(SessionConfig sessionConfig,
PageLinkConfig pageLinkConfig,
ITransaction transaction)
Add a page link.
|
void |
delete(SessionConfig sessionConfig,
String pageLinkId,
ITransaction transaction)
Delete a page link.
|
PageLinkConfig |
get(SessionConfig sessionConfig,
String pageLinkId,
ITransaction transaction)
Get the page link configuraton.
|
Collection<String> |
getByPageId(SessionConfig sessionConfig,
String pageId,
ITransaction transaction)
Get the page link ids associated to a page
|
PageLinkConfig |
getByTypeAndWebsite(SessionConfig sessionConfig,
int type,
String website,
ITransaction transaction)
Deprecated.
|
PageLinkConfig |
getByTypeAndWebsite(SessionConfig sessionConfig,
int type,
String website,
PortalRequestContext requestContext,
ITransaction transaction)
Deprecated.
|
List<PageLinkConfig> |
getByTypeAndWebsiteIdentifier(SessionConfig sessionConfig,
int type,
String websiteId,
ITransaction transaction)
Returns the list of
page links with the given type
and website identifier. |
PageLinkConfig |
getByTypeWebsiteAndChannelId(SessionConfig sessionConfig,
int type,
String website,
String requestedChannelId,
ITransaction transaction)
Deprecated.
|
PageLinkConfig |
getByTypeWebsiteAndChannelId(SessionConfig sessionConfig,
int type,
String website,
String requestedChannelId,
PortalRequestContext requestContext,
ITransaction transaction)
Deprecated.
|
PageLinkConfig |
getDefaultErrorPage(SessionConfig sessionConfig,
IWebsiteBaseURL websiteBaseURL,
PortalRequestContext requestContext,
ITransaction transaction)
Returns the most appropriate error page, based on the given website base URL.
|
PageLinkConfig |
getDefaultHomePage(SessionConfig sessionConfig,
IWebsiteBaseURL websiteBaseURL,
ITransaction transaction)
Returns the most appropriate home page, based on the given website base URL.
|
PageLinkConfig |
getDefaultHomePage(SessionConfig sessionConfig,
IWebsiteBaseURL websiteBaseURL,
PortalRequestContext requestContext,
ITransaction transaction)
Returns the most appropriate home page is identified based on the website,
priority and Context Rules.
|
PageLinkConfig |
getDefaultLoginPage(SessionConfig sessionConfig,
IWebsiteBaseURL websiteBaseURL,
String channelId,
ITransaction transaction)
Returns the most appropriate login page, based on the given website base URL
and destination channel identifier.
|
PageLinkConfig |
getDefaultLoginPage(SessionConfig sessionConfig,
IWebsiteBaseURL websiteBaseURL,
String channelId,
PortalRequestContext requestContext,
ITransaction transaction)
Returns the most appropriate login page is identified based on the website,
priority, Context Rules and destination channel identifier.
|
void |
update(SessionConfig sessionConfig,
PageLinkConfig pageLinkConfig,
ITransaction transaction)
Update the page link.
|
public String add(SessionConfig sessionConfig, PageLinkConfig pageLinkConfig, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
add
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.pageLinkConfig
- the page link configuration.transaction
- the current transaction.ManagerException
- if any error occurs during the persisting process.PortalException
- if any other error occurs during the process.public PageLinkConfig get(SessionConfig sessionConfig, String pageLinkId, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
get
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.pageLinkId
- id of the page link target.transaction
- the current transaction.ManagerException
- if any error occurs during the persisting process.PortalException
- if any other error occurs during the process.public Collection<String> getByPageId(SessionConfig sessionConfig, String pageId, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
getByPageId
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.pageId
- id of the page target.transaction
- the current transaction.ManagerException
- if any error occurs during the persisting process.PortalException
- if any other error occurs during the process.@Deprecated public PageLinkConfig getByTypeAndWebsite(SessionConfig sessionConfig, int type, String website, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
IPageLinkManager.getByTypeWebsiteAndChannelId(SessionConfig, int, String, String, ITransaction)
method with null as the destination channelId.getByTypeAndWebsite
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.type
- the page link type.website
- the website base URL that the user is accessing.transaction
- the current transaction.PageLinkConfig
ManagerException
- if any error occurs during the persisting process.PortalException
- if any other error occurs during the process.@Deprecated public PageLinkConfig getByTypeAndWebsite(SessionConfig sessionConfig, int type, String website, PortalRequestContext requestContext, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManagerSPI
IPageLinkManager.getByTypeWebsiteAndChannelId(SessionConfig, int, String, String, ITransaction)
method with null as the destination channelId.getByTypeAndWebsite
in interface IPageLinkManagerSPI
sessionConfig
- the session identifier of the current user.type
- the page link type.website
- the website that the user is accessing.requestContext
- the list of all request context.transaction
- the current transaction.PageLinkConfig
PortalException
- if any other error occurs during the process.ManagerException
@Deprecated public PageLinkConfig getByTypeWebsiteAndChannelId(SessionConfig sessionConfig, int type, String website, String requestedChannelId, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
getByTypeWebsiteAndChannelId
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.type
- the page link type.website
- the website base URL that the user is accessing.requestedChannelId
- The destination channel identifier.transaction
- the current transaction.ManagerException
- if any error occurs during the persisting process.PortalException
- if any other error occurs during the process.@Deprecated public PageLinkConfig getByTypeWebsiteAndChannelId(SessionConfig sessionConfig, int type, String website, String requestedChannelId, PortalRequestContext requestContext, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManagerSPI
getByTypeWebsiteAndChannelId
in interface IPageLinkManagerSPI
sessionConfig
- the session identifier of the current user.type
- the page link type.website
- the website that the user is accessing.requestedChannelId
- The destination channel identifier.requestContext
- the list of all request context.transaction
- the current transaction.PortalException
- if any other error occurs during the process.ManagerException
public void update(SessionConfig sessionConfig, PageLinkConfig pageLinkConfig, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
update
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.pageLinkConfig
- the page link configuration.transaction
- the current transaction.ManagerException
- if any error occurs during the persisting process.PortalException
- if any other error occurs during the process.public void delete(SessionConfig sessionConfig, String pageLinkId, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
delete
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.pageLinkId
- id of the page link target.transaction
- the current transaction.ManagerException
- if any error occurs during the persisting process.PortalException
- if any other error occurs during the process.public PageLinkConfig getDefaultHomePage(SessionConfig sessionConfig, IWebsiteBaseURL websiteBaseURL, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
In order to choose the page link the following criteria are used:
If no matching page link is found, return null
.
getDefaultHomePage
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.websiteBaseURL
- the IWebsiteBaseURL
that the user is accessing.transaction
- the current transaction.null
if none matches the search criteria.PortalException
- if any error occurs during the persisting process.ManagerException
public PageLinkConfig getDefaultLoginPage(SessionConfig sessionConfig, IWebsiteBaseURL websiteBaseURL, String channelId, ITransaction transaction) throws ManagerException, PortalException
IPageLinkManager
In order to choose the page link the following criteria are used:
channelId
argument.
If no matching page link is found, return null
.
getDefaultLoginPage
in interface IPageLinkManager
sessionConfig
- the session identifier of the current user.websiteBaseURL
- the IWebsiteBaseURL
that the user is accessing.channelId
- The destination channel identifier.transaction
- the current transaction.PortalException
- if any error occurs during the persisting process.ManagerException
public PageLinkConfig getDefaultHomePage(SessionConfig sessionConfig, IWebsiteBaseURL websiteBaseURL, PortalRequestContext requestContext, ITransaction transaction) throws PortalException
IPageLinkManagerSPI
In order to choose the page link the following criteria are used:
If no matching page link is found, return null
.
getDefaultHomePage
in interface IPageLinkManagerSPI
sessionConfig
- the session identifier of the current user.websiteBaseURL
- the IWebsiteBaseURL
that the user is accessing.requestContext
- the list of all request context.transaction
- the current transaction.PortalException
- if any other error occurs during the process.public PageLinkConfig getDefaultLoginPage(SessionConfig sessionConfig, IWebsiteBaseURL websiteBaseURL, String channelId, PortalRequestContext requestContext, ITransaction transaction) throws PortalException
IPageLinkManagerSPI
In order to choose the page link the following criteria are used:
channelId
argument.
If no matching page link is found, return null
.
getDefaultLoginPage
in interface IPageLinkManagerSPI
sessionConfig
- the session identifier of the current user.websiteBaseURL
- the IWebsiteBaseURL
that the user is accessing.channelId
- The destination channel identifier.requestContext
- the list of all request context.transaction
- the current transaction.PortalException
- if any other error occurs during the process.public List<PageLinkConfig> getByTypeAndWebsiteIdentifier(SessionConfig sessionConfig, int type, String websiteId, ITransaction transaction) throws PortalException
IPageLinkManagerSPI
page links
with the given type
and website identifier.getByTypeAndWebsiteIdentifier
in interface IPageLinkManagerSPI
sessionConfig
- the user's session.type
- the type.websiteId
- the website identifier.transaction
- the transaction.page links
with the given type
and website identifier.PortalException
public PageLinkConfig getDefaultErrorPage(SessionConfig sessionConfig, IWebsiteBaseURL websiteBaseURL, PortalRequestContext requestContext, ITransaction transaction) throws PortalException
IPageLinkManagerSPI
In order to choose the page link the following criteria are used:
If no matching page link is found, return null
.
getDefaultErrorPage
in interface IPageLinkManagerSPI
sessionConfig
- the session identifier of the current user.websiteBaseURL
- the IWebsiteBaseURL
that the user is accessing.requestContext
- the list of all request context.transaction
- the current transaction.null
if none matches the search criteria.PortalException
- if any error occurs during the persisting process.LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.