lumis.portal.page.link
Class PageLinkDaoJdbc

Package class diagram package PageLinkDaoJdbc
java.lang.Object
  extended by lumis.portal.page.link.PageLinkDaoJdbc
All Implemented Interfaces:
IPageLinkDao

public class PageLinkDaoJdbc
extends Object
implements IPageLinkDao

IPageLinkDao JDBC implementation

Since:
4.0.0

Constructor Summary
PageLinkDaoJdbc()
           
 
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 websiteId, ITransaction transaction)
          Returns a list of page links given a type and website.
 PageLinkConfig getByTypeWebsiteAndChannelId(int type, String websiteId, String channelId, ITransaction transaction)
          Get the page link given type, website and channelId.
 void update(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

PageLinkDaoJdbc

public PageLinkDaoJdbc()
Method Detail

add

public void add(PageLinkConfig pageLinkConfig,
                ITransaction transaction)
         throws DaoException,
                PortalException
Description copied from interface: IPageLinkDao
Add the page link.

Specified by:
add in interface IPageLinkDao
Throws:
DaoException
PortalException

get

public PageLinkConfig get(String pageLinkId,
                          ITransaction transaction)
                   throws DaoException,
                          PortalException
Description copied from interface: IPageLinkDao
Get the page link.

Specified by:
get in interface IPageLinkDao
Returns:
Throws:
DaoException
PortalException

getByTypeWebsiteAndChannelId

public PageLinkConfig getByTypeWebsiteAndChannelId(int type,
                                                   String websiteId,
                                                   String channelId,
                                                   ITransaction transaction)
                                            throws PortalException
Description copied from interface: IPageLinkDao
Get the page link given type, website and channelId.

Specified by:
getByTypeWebsiteAndChannelId in interface IPageLinkDao
Parameters:
type - The page link type.
websiteId - The page link website identifier.
channelId - The page link channelId.
transaction - The transaction to use.
Returns:
The page link.
Throws:
PortalException

getByTypeAndWebsite

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

Specified by:
getByTypeAndWebsite in interface IPageLinkDao
Parameters:
type - The page link type.
transaction - The transaction to use.
Returns:
The list of page links.
Throws:
PortalException
DaoException

update

public void update(PageLinkConfig pageLinkConfig,
                   ITransaction transaction)
            throws DaoException,
                   PortalException
Description copied from interface: IPageLinkDao
Update the page link.

Specified by:
update in interface IPageLinkDao
Throws:
DaoException
PortalException

delete

public void delete(String pageLinkId,
                   ITransaction transaction)
            throws DaoException,
                   PortalException
Description copied from interface: IPageLinkDao
Delete the page link.

Specified by:
delete in interface IPageLinkDao
Throws:
DaoException
PortalException

getByPageId

public Collection<String> getByPageId(String pageId,
                                      ITransaction transaction)
                               throws DaoException,
                                      PortalException
Description copied from interface: IPageLinkDao
Get page links associated with one page

Specified by:
getByPageId in interface IPageLinkDao
Returns:
Throws:
DaoException
PortalException


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