lumis.portal.page.link
Class PageLinkManager

Package class diagram package PageLinkManager
java.lang.Object
  extended by lumis.portal.page.link.PageLinkManager
All Implemented Interfaces:
IPageLinkManager, IPageLinkManagerSPI

public class PageLinkManager
extends Object
implements IPageLinkManagerSPI

Page Link Manager.

Since:
5.0.0

Constructor Summary
PageLinkManager()
           
 
Method Summary
 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLinkManager

public PageLinkManager()
Method Detail

add

public String add(SessionConfig sessionConfig,
                  PageLinkConfig pageLinkConfig,
                  ITransaction transaction)
           throws ManagerException,
                  PortalException
Description copied from interface: IPageLinkManager
Add a page link.

Specified by:
add in interface IPageLinkManager
Parameters:
sessionConfig - the session identifier of the current user.
pageLinkConfig - the page link configuration.
transaction - the current transaction.
Returns:
the ID of the Page Link.
Throws:
ManagerException - if any error occurs during the persisting process.
PortalException - if any other error occurs during the process.

get

public PageLinkConfig get(SessionConfig sessionConfig,
                          String pageLinkId,
                          ITransaction transaction)
                   throws ManagerException,
                          PortalException
Description copied from interface: IPageLinkManager
Get the page link configuraton.

Specified by:
get in interface IPageLinkManager
Parameters:
sessionConfig - the session identifier of the current user.
pageLinkId - id of the page link target.
transaction - the current transaction.
Returns:
a PageLinkConfig.
Throws:
ManagerException - if any error occurs during the persisting process.
PortalException - if any other error occurs during the process.

getByPageId

public Collection<String> getByPageId(SessionConfig sessionConfig,
                                      String pageId,
                                      ITransaction transaction)
                               throws ManagerException,
                                      PortalException
Description copied from interface: IPageLinkManager
Get the page link ids associated to a page

Specified by:
getByPageId in interface IPageLinkManager
Parameters:
sessionConfig - the session identifier of the current user.
pageId - id of the page target.
transaction - the current transaction.
Returns:
a list of page link ids associated to a page.
Throws:
ManagerException - if any error occurs during the persisting process.
PortalException - if any other error occurs during the process.

getByTypeAndWebsite

@Deprecated
public PageLinkConfig getByTypeAndWebsite(SessionConfig sessionConfig,
                                                     int type,
                                                     String website,
                                                     ITransaction transaction)
                                   throws ManagerException,
                                          PortalException
Deprecated. 

Description copied from interface: IPageLinkManager
This method calls the IPageLinkManager.getByTypeWebsiteAndChannelId(SessionConfig, int, String, String, ITransaction) method with null as the destination channelId.

Specified by:
getByTypeAndWebsite in interface IPageLinkManager
Parameters:
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.
Returns:
a PageLinkConfig. The calculated (PageLinkConfig
Throws:
ManagerException - if any error occurs during the persisting process.
PortalException - if any other error occurs during the process.

getByTypeAndWebsite

@Deprecated
public PageLinkConfig getByTypeAndWebsite(SessionConfig sessionConfig,
                                                     int type,
                                                     String website,
                                                     PortalRequestContext requestContext,
                                                     ITransaction transaction)
                                   throws ManagerException,
                                          PortalException
Deprecated. 

Description copied from interface: IPageLinkManagerSPI
This method calls the IPageLinkManager.getByTypeWebsiteAndChannelId(SessionConfig, int, String, String, ITransaction) method with null as the destination channelId.

Specified by:
getByTypeAndWebsite in interface IPageLinkManagerSPI
Parameters:
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.
Returns:
a PageLinkConfig. The calculated (PageLinkConfig
Throws:
PortalException - if any other error occurs during the process.
ManagerException

getByTypeWebsiteAndChannelId

@Deprecated
public PageLinkConfig getByTypeWebsiteAndChannelId(SessionConfig sessionConfig,
                                                              int type,
                                                              String website,
                                                              String requestedChannelId,
                                                              ITransaction transaction)
                                            throws ManagerException,
                                                   PortalException
Deprecated. 

Description copied from interface: IPageLinkManager
The most appropriate page link is identified based on the website (or URL Rules of the website), type, priority and destination channelId. In order to calculate the page link the following criteria are used: If no matching pagelink is found return null.

Specified by:
getByTypeWebsiteAndChannelId in interface IPageLinkManager
Parameters:
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.
Returns:
The calculated page link.
Throws:
ManagerException - if any error occurs during the persisting process.
PortalException - if any other error occurs during the process.

getByTypeWebsiteAndChannelId

@Deprecated
public PageLinkConfig getByTypeWebsiteAndChannelId(SessionConfig sessionConfig,
                                                              int type,
                                                              String website,
                                                              String requestedChannelId,
                                                              PortalRequestContext requestContext,
                                                              ITransaction transaction)
                                            throws ManagerException,
                                                   PortalException
Deprecated. 

Description copied from interface: IPageLinkManagerSPI
The most appropriate page link is identified based on the website (or URL Rules of the website), type, priority, Context Rules and destination channelId. In order to calculate the page link the following criteria are used: If no matching pagelink is found return null.

Specified by:
getByTypeWebsiteAndChannelId in interface IPageLinkManagerSPI
Parameters:
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.
Returns:
The calculated page link.
Throws:
PortalException - if any other error occurs during the process.
ManagerException

update

public void update(SessionConfig sessionConfig,
                   PageLinkConfig pageLinkConfig,
                   ITransaction transaction)
            throws ManagerException,
                   PortalException
Description copied from interface: IPageLinkManager
Update the page link.

Specified by:
update in interface IPageLinkManager
Parameters:
sessionConfig - the session identifier of the current user.
pageLinkConfig - the page link configuration.
transaction - the current transaction.
Throws:
ManagerException - if any error occurs during the persisting process.
PortalException - if any other error occurs during the process.

delete

public void delete(SessionConfig sessionConfig,
                   String pageLinkId,
                   ITransaction transaction)
            throws ManagerException,
                   PortalException
Description copied from interface: IPageLinkManager
Delete a page link.

Specified by:
delete in interface IPageLinkManager
Parameters:
sessionConfig - the session identifier of the current user.
pageLinkId - id of the page link target.
transaction - the current transaction.
Throws:
ManagerException - if any error occurs during the persisting process.
PortalException - if any other error occurs during the process.

getDefaultHomePage

public PageLinkConfig getDefaultHomePage(SessionConfig sessionConfig,
                                         IWebsiteBaseURL websiteBaseURL,
                                         ITransaction transaction)
                                  throws ManagerException,
                                         PortalException
Description copied from interface: IPageLinkManager
Returns the most appropriate home page, based on the given website base URL.

In order to choose the page link the following criteria are used:

If no matching page link is found, return null.

Specified by:
getDefaultHomePage in interface IPageLinkManager
Parameters:
sessionConfig - the session identifier of the current user.
websiteBaseURL - the IWebsiteBaseURL that the user is accessing.
transaction - the current transaction.
Returns:
The calculated page link, or null if none matches the search criteria.
Throws:
PortalException - if any error occurs during the persisting process.
ManagerException

getDefaultLoginPage

public PageLinkConfig getDefaultLoginPage(SessionConfig sessionConfig,
                                          IWebsiteBaseURL websiteBaseURL,
                                          String channelId,
                                          ITransaction transaction)
                                   throws ManagerException,
                                          PortalException
Description copied from interface: IPageLinkManager
Returns the most appropriate login page, based on the given website base URL and destination channel identifier.

In order to choose the page link the following criteria are used:

If no matching page link is found, return null.

Specified by:
getDefaultLoginPage in interface IPageLinkManager
Parameters:
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.
Returns:
The calculated page link.
Throws:
PortalException - if any error occurs during the persisting process.
ManagerException

getDefaultHomePage

public PageLinkConfig getDefaultHomePage(SessionConfig sessionConfig,
                                         IWebsiteBaseURL websiteBaseURL,
                                         PortalRequestContext requestContext,
                                         ITransaction transaction)
                                  throws PortalException
Description copied from interface: IPageLinkManagerSPI
Returns the most appropriate home page is identified based on the website, priority and Context Rules.

In order to choose the page link the following criteria are used:

If no matching page link is found, return null.

Specified by:
getDefaultHomePage in interface IPageLinkManagerSPI
Parameters:
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.
Returns:
The calculated page link.
Throws:
PortalException - if any other error occurs during the process.

getDefaultLoginPage

public PageLinkConfig getDefaultLoginPage(SessionConfig sessionConfig,
                                          IWebsiteBaseURL websiteBaseURL,
                                          String channelId,
                                          PortalRequestContext requestContext,
                                          ITransaction transaction)
                                   throws PortalException
Description copied from interface: IPageLinkManagerSPI
Returns the most appropriate login page is identified based on the website, priority, Context Rules and destination channel identifier.

In order to choose the page link the following criteria are used:

If no matching page link is found, return null.

Specified by:
getDefaultLoginPage in interface IPageLinkManagerSPI
Parameters:
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.
Returns:
The calculated page link.
Throws:
PortalException - if any other error occurs during the process.

getByTypeAndWebsiteIdentifier

public List<PageLinkConfig> getByTypeAndWebsiteIdentifier(SessionConfig sessionConfig,
                                                          int type,
                                                          String websiteId,
                                                          ITransaction transaction)
                                                   throws PortalException
Returns the list of page links with the given type and website identifier.

Parameters:
sessionConfig - the user's session.
type - the type.
websiteId - the website identifier.
transaction - the transaction.
Returns:
the list of page links with the given type and website identifier.
Throws:
PortalException
Since:
6.2.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.