Package lumis.portal.page.link
Class PageLinkDaoJdbc
- java.lang.Object
-
- lumis.portal.page.link.PageLinkDaoJdbc
-
- All Implemented Interfaces:
IPageLinkDao
public class PageLinkDaoJdbc extends Object implements IPageLinkDao
IPageLinkDao
JDBC implementation- Since:
- 4.0.0
- Version:
- $Revision: 14187 $ $Date: 2012-04-02 11:44:41 -0300 (Mon, 02 Apr 2012) $
-
-
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(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 pageList<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.
-
-
-
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(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, 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 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 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 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(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 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 interfaceIPageLinkDao
- Returns:
- Throws:
DaoException
PortalException
-
-