lumis.portal.page.link
Interface IPageLinkDao

Package class diagram package IPageLinkDao
All Known Implementing Classes:
PageLinkDaoJdbc

public interface IPageLinkDao

Page Link Dao Interface

Since:
5.0.0

Method Summary
 void add(PageLinkConfig pageLinkConfig, ITransaction transaction)
          Add the page link.
 void delete(String pageLinkId, ITransaction transaction)
          Delete the page link.
 PageLinkConfig get(String pageLinkId, ITransaction transaction)
          Get the page link.
 Collection<String> getByPageId(String pageId, ITransaction transaction)
          Get page links associated with one page
 List<PageLinkConfig> getByTypeAndWebsite(int type, String website, ITransaction transaction)
          Returns a list of page links given a type and website.
 PageLinkConfig getByTypeWebsiteAndChannelId(int type, String website, String channelId, ITransaction transaction)
          Get the page link given type, website and channelId.
 void update(PageLinkConfig pageLinkConfig, ITransaction transaction)
          Update the page link.
 

Method Detail

add

void add(PageLinkConfig pageLinkConfig,
         ITransaction transaction)
         throws DaoException,
                PortalException
Add the page link.

Parameters:
pageLinkConfig -
transaction -
Throws:
DaoException
PortalException

get

PageLinkConfig get(String pageLinkId,
                   ITransaction transaction)
                   throws DaoException,
                          PortalException
Get the page link.

Parameters:
pageLinkId -
transaction -
Returns:
Throws:
DaoException
PortalException

getByTypeWebsiteAndChannelId

PageLinkConfig getByTypeWebsiteAndChannelId(int type,
                                            String website,
                                            String channelId,
                                            ITransaction transaction)
                                            throws PortalException
Get the page link given type, website and channelId.

Parameters:
type - The page link type.
website - The page link website.
channelId - The page link channelId.
transaction - The transaction to use.
Returns:
The page link.
Throws:
PortalException
Since:
5.0.0

getByTypeAndWebsite

List<PageLinkConfig> getByTypeAndWebsite(int type,
                                         String website,
                                         ITransaction transaction)
                                         throws DaoException,
                                                PortalException
Returns a list of page links given a type and website. The order of the list prioritizes specific websites before wildcard websites.

Parameters:
type - The page link type.
website - The page link website.
transaction - The transaction to use.
Returns:
The list of page links.
Throws:
PortalException
DaoException
Since:
5.0.0

update

void update(PageLinkConfig pageLinkConfig,
            ITransaction transaction)
            throws DaoException,
                   PortalException
Update the page link.

Parameters:
pageLinkConfig -
transaction -
Throws:
DaoException
PortalException

delete

void delete(String pageLinkId,
            ITransaction transaction)
            throws DaoException,
                   PortalException
Delete the page link.

Parameters:
pageLinkId -
transaction -
Throws:
DaoException
PortalException

getByPageId

Collection<String> getByPageId(String pageId,
                               ITransaction transaction)
                               throws DaoException,
                                      PortalException
Get page links associated with one page

Parameters:
pageId -
transaction -
Returns:
Throws:
DaoException
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.