|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@StableMinor(version="6.2", sinceVersion="4.0") public interface IPageLinkManager
This interface provides the actions that the Page Link Manager offers to manipulate PageLinks in the Lumis Portal.
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. Since 6.2.0 this method was specialized and replaced by getDefaultLoginPage(SessionConfig, IWebsiteBaseURL, String, ITransaction) and
getDefaultHomePage(SessionConfig, IWebsiteBaseURL, ITransaction) . |
PageLinkConfig |
getByTypeWebsiteAndChannelId(SessionConfig sessionConfig,
int type,
String website,
String channelId,
ITransaction transaction)
Deprecated. Since 6.2.0 this method was specialized and replaced by getDefaultLoginPage(SessionConfig, IWebsiteBaseURL, String, ITransaction) and
getDefaultHomePage(SessionConfig, IWebsiteBaseURL, ITransaction) . |
PageLinkConfig |
getDefaultHomePage(SessionConfig sessionConfig,
IWebsiteBaseURL websiteBaseURL,
ITransaction transaction)
Returns the most appropriate home page, based on the given website base URL. |
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. |
void |
update(SessionConfig sessionConfig,
PageLinkConfig pageLinkConfig,
ITransaction transaction)
Update the page link. |
Method Detail |
---|
String add(SessionConfig sessionConfig, PageLinkConfig pageLinkConfig, ITransaction transaction) throws ManagerException, PortalException
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.PageLinkConfig get(SessionConfig sessionConfig, String pageLinkId, ITransaction transaction) throws ManagerException, PortalException
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.Collection<String> getByPageId(SessionConfig sessionConfig, String pageId, ITransaction transaction) throws ManagerException, PortalException
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 PageLinkConfig getByTypeAndWebsite(SessionConfig sessionConfig, int type, String website, ITransaction transaction) throws ManagerException, PortalException
getDefaultLoginPage(SessionConfig, IWebsiteBaseURL, String, ITransaction)
and
getDefaultHomePage(SessionConfig, IWebsiteBaseURL, ITransaction)
.
getByTypeWebsiteAndChannelId(SessionConfig, int, String, String, ITransaction)
method with null as the destination channelId.
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 PageLinkConfig getByTypeWebsiteAndChannelId(SessionConfig sessionConfig, int type, String website, String channelId, ITransaction transaction) throws ManagerException, PortalException
getDefaultLoginPage(SessionConfig, IWebsiteBaseURL, String, ITransaction)
and
getDefaultHomePage(SessionConfig, IWebsiteBaseURL, ITransaction)
.
sessionConfig
- the session identifier of the current user.type
- the page link type.website
- the website base URL that the user is accessing.channelId
- 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.void update(SessionConfig sessionConfig, PageLinkConfig pageLinkConfig, ITransaction transaction) throws ManagerException, PortalException
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.void delete(SessionConfig sessionConfig, String pageLinkId, ITransaction transaction) throws ManagerException, PortalException
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.PageLinkConfig getDefaultLoginPage(SessionConfig sessionConfig, IWebsiteBaseURL websiteBaseURL, String channelId, ITransaction transaction) throws PortalException
In order to choose the page link the following criteria are used:
channelId
argument.
If no matching page link is found, return null
.
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.PageLinkConfig getDefaultHomePage(SessionConfig sessionConfig, IWebsiteBaseURL websiteBaseURL, ITransaction transaction) throws PortalException
In order to choose the page link the following criteria are used:
If no matching page link is found, return null
.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |