Package lumis.portal.page.link
Interface IPageLinkDao
-
- All Known Implementing Classes:
PageLinkDaoJdbc
public interface IPageLinkDao
Page Link Dao Interface- Since:
- 5.0.0
- Version:
- $Revision: 14187 $ $Date: 2012-04-02 11:44:41 -0300 (Mon, 02 Apr 2012) $
-
-
Method Summary
All Methods Instance Methods Abstract 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 website, 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
void add(PageLinkConfig pageLinkConfig, ITransaction transaction) throws DaoException, PortalException
Add the page link.- Parameters:
pageLinkConfig
-transaction
-- Throws:
DaoException
PortalException
-
get
PageLinkConfig get(java.lang.String pageLinkId, ITransaction transaction) throws DaoException, PortalException
Get the page link.- Parameters:
pageLinkId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
getByTypeWebsiteAndChannelId
PageLinkConfig getByTypeWebsiteAndChannelId(int type, java.lang.String websiteId, java.lang.String channelId, ITransaction transaction) throws PortalException
Get the page link given type, website and channelId.- 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
- Since:
- 6.2.0
-
getByTypeAndWebsite
java.util.List<PageLinkConfig> getByTypeAndWebsite(int type, java.lang.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.websiteId
- The page link website identifier.transaction
- The transaction to use.- Returns:
- The list of page links.
- Throws:
PortalException
DaoException
- Since:
- 6.2.0
-
update
void update(PageLinkConfig pageLinkConfig, ITransaction transaction) throws DaoException, PortalException
Update the page link.- Parameters:
pageLinkConfig
-transaction
-- Throws:
DaoException
PortalException
-
delete
void delete(java.lang.String pageLinkId, ITransaction transaction) throws DaoException, PortalException
Delete the page link.- Parameters:
pageLinkId
-transaction
-- Throws:
DaoException
PortalException
-
getByPageId
java.util.Collection<java.lang.String> getByPageId(java.lang.String pageId, ITransaction transaction) throws DaoException, PortalException
Get page links associated with one page- Parameters:
pageId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
-