Package lumis.portal.page.link
Class PageLinkDaoJdbc
- java.lang.Object
-
- lumis.portal.page.link.PageLinkDaoJdbc
-
- All Implemented Interfaces:
IPageLinkDao
public class PageLinkDaoJdbc extends java.lang.Object implements IPageLinkDao
IPageLinkDao
JDBC implementation- Since:
- 4.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description PageLinkDaoJdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(PageLinkConfig pageLinkConfig, ITransaction transaction)
Add the page link.void
delete(java.lang.String pageLinkId, ITransaction transaction)
Delete the page link.PageLinkConfig
get(java.lang.String pageLinkId, ITransaction transaction)
Get the page link.java.util.Collection<java.lang.String>
getByPageId(java.lang.String pageId, ITransaction transaction)
Get page links associated with one pagejava.util.List<PageLinkConfig>
getByTypeAndWebsite(int type, java.lang.String websiteId, ITransaction transaction)
Returns a list of page links given a type and website.PageLinkConfig
getByTypeWebsiteAndChannelId(int type, java.lang.String websiteId, java.lang.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
public void add(PageLinkConfig pageLinkConfig, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPageLinkDao
Add the page link.- Specified by:
add
in interfaceIPageLinkDao
- Throws:
DaoException
PortalException
-
get
public PageLinkConfig get(java.lang.String pageLinkId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPageLinkDao
Get the page link.- Specified by:
get
in interfaceIPageLinkDao
- Returns:
- Throws:
DaoException
PortalException
-
getByTypeWebsiteAndChannelId
public PageLinkConfig getByTypeWebsiteAndChannelId(int type, java.lang.String websiteId, java.lang.String channelId, ITransaction transaction) throws PortalException
Description copied from interface:IPageLinkDao
Get the page link given type, website and channelId.- Specified by:
getByTypeWebsiteAndChannelId
in interfaceIPageLinkDao
- 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 java.util.List<PageLinkConfig> getByTypeAndWebsite(int type, java.lang.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 interfaceIPageLinkDao
- 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 interfaceIPageLinkDao
- Throws:
DaoException
PortalException
-
delete
public void delete(java.lang.String pageLinkId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPageLinkDao
Delete the page link.- Specified by:
delete
in interfaceIPageLinkDao
- Throws:
DaoException
PortalException
-
getByPageId
public java.util.Collection<java.lang.String> getByPageId(java.lang.String pageId, ITransaction transaction) throws DaoException, PortalException
Description copied from interface:IPageLinkDao
Get page links associated with one page- Specified by:
getByPageId
in interfaceIPageLinkDao
- Returns:
- Throws:
DaoException
PortalException
-
-