Package lumis.portal.page
Interface IPageDao
-
- All Known Implementing Classes:
PageDaoHib
public interface IPageDao
Provides access to Page persistence.- Since:
- 4.0.11
- Version:
- $Revision$ $Date$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(PageConfig pageConfig, ITransaction transaction)
Add the page.void
addCss(java.lang.String pageId, java.lang.String cssId, int position, ITransaction transaction)
boolean
delete(java.lang.String pageId, ITransaction transaction)
Delete the page.void
deleteCss(java.lang.String pageId, java.lang.String cssId, ITransaction transaction)
Delete the CSS from the page.void
evict(java.lang.String pageId, ITransaction transaction)
Removes the specified page from this DAO's cache.PageConfig
get(java.lang.String pageId, ITransaction transaction)
Get the page.java.util.List<IChannelChild>
getChannelsChildren(java.lang.String parentChannelIds, boolean hidePages, boolean hidePageTemplates, IResource resource, java.util.Locale locale, ITransaction transaction)
java.util.List<IChannelChild>
getChildrenData(java.lang.String channelId, int hidePages, int hidePageTemplates, IResource resource, java.util.Locale locale, ITransaction transaction)
PageConfig
getCommitted(java.lang.String pageId, ITransaction transaction)
Get the lastest committed version of the page.java.util.List<java.lang.String>
getCssIds(java.lang.String pageId, ITransaction transaction)
Get the ids of the page's CSS.java.lang.String
getFirstIdByChannelId(java.lang.String channelId, ITransaction transaction)
Get the id of the first child page.java.lang.String
getIdByUserId(java.lang.String userId, ITransaction transaction)
Get the id of the user's home page.java.util.List<java.lang.String>
getIdsByChannelId(java.lang.String channelId, ITransaction transaction)
Get the list of page's ids given the channel's id.java.util.Collection<java.lang.String>
getIdsByParentTemplateId(java.lang.String parentTemplateId, ITransaction transaction)
Add the CSS to the page.java.util.Collection<java.lang.String>
getIdsByServiceInstanceId(java.lang.String serviceInstanceId, ITransaction transaction)
boolean
hasDependentPages(java.lang.String pageTemplateId, ITransaction transaction)
void
update(PageConfig pageConfig, ITransaction transaction)
Update the page.
-
-
-
Method Detail
-
add
void add(PageConfig pageConfig, ITransaction transaction) throws DaoException, PortalException
Add the page.- Parameters:
pageConfig
-transaction
-- Throws:
DaoException
PortalException
-
get
PageConfig get(java.lang.String pageId, ITransaction transaction) throws DaoException, PortalException
Get the page.- Parameters:
pageId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
getCommitted
PageConfig getCommitted(java.lang.String pageId, ITransaction transaction) throws PortalException
Get the lastest committed version of the page. Doesn't use transaction-bounded cache.- Parameters:
pageId
- the page id.transaction
- the transaction for persistence access.- Returns:
- the lastest committed version of the page.
- Throws:
PortalException
- Since:
- 4.0.11
-
update
void update(PageConfig pageConfig, ITransaction transaction) throws DaoException, PortalException
Update the page.- Parameters:
pageConfig
-transaction
-- Throws:
DaoException
PortalException
-
delete
boolean delete(java.lang.String pageId, ITransaction transaction) throws DaoException, PortalException
Delete the page.- Parameters:
pageId
-transaction
-- Throws:
DaoException
PortalException
-
evict
void evict(java.lang.String pageId, ITransaction transaction) throws PortalException
Removes the specified page from this DAO's cache.- Parameters:
pageId
- the page id.transaction
- the transaction for persistence access.- Throws:
PortalException
- Since:
- 4.0.11
-
getFirstIdByChannelId
java.lang.String getFirstIdByChannelId(java.lang.String channelId, ITransaction transaction) throws DaoException, PortalException
Get the id of the first child page.- Parameters:
channelId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
getIdByUserId
java.lang.String getIdByUserId(java.lang.String userId, ITransaction transaction) throws DaoException, PortalException
Get the id of the user's home page.- Parameters:
userId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
getIdsByChannelId
java.util.List<java.lang.String> getIdsByChannelId(java.lang.String channelId, ITransaction transaction) throws DaoException, PortalException
Get the list of page's ids given the channel's id.- Parameters:
channelId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
getIdsByParentTemplateId
java.util.Collection<java.lang.String> getIdsByParentTemplateId(java.lang.String parentTemplateId, ITransaction transaction) throws DaoException, PortalException
Add the CSS to the page.- Parameters:
pageId
-cssId
-position
-transaction
-- Throws:
DaoException
PortalException
-
getIdsByServiceInstanceId
java.util.Collection<java.lang.String> getIdsByServiceInstanceId(java.lang.String serviceInstanceId, ITransaction transaction) throws DaoException, PortalException
- Parameters:
serviceInstanceId
- the id of the service instance.transaction
- the transaction for persistence access.- Returns:
- the ids of the pages that contain an interface of the given service instance id.
- Throws:
DaoException
PortalException
-
hasDependentPages
boolean hasDependentPages(java.lang.String pageTemplateId, ITransaction transaction) throws DaoException, PortalException
- Throws:
DaoException
PortalException
-
addCss
void addCss(java.lang.String pageId, java.lang.String cssId, int position, ITransaction transaction) throws DaoException, PortalException
- Throws:
DaoException
PortalException
-
deleteCss
void deleteCss(java.lang.String pageId, java.lang.String cssId, ITransaction transaction) throws DaoException, PortalException
Delete the CSS from the page.- Parameters:
pageId
-cssId
-transaction
-- Throws:
DaoException
PortalException
-
getCssIds
java.util.List<java.lang.String> getCssIds(java.lang.String pageId, ITransaction transaction) throws DaoException, PortalException
Get the ids of the page's CSS.- Parameters:
pageId
-transaction
-- Returns:
- Throws:
DaoException
PortalException
-
getChannelsChildren
java.util.List<IChannelChild> getChannelsChildren(java.lang.String parentChannelIds, boolean hidePages, boolean hidePageTemplates, IResource resource, java.util.Locale locale, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
getChildrenData
java.util.List<IChannelChild> getChildrenData(java.lang.String channelId, int hidePages, int hidePageTemplates, IResource resource, java.util.Locale locale, ITransaction transaction) throws DaoException, PortalException
- Throws:
DaoException
PortalException
-
-