lumis.portal.page
Interface IPageDao

Package class diagram package IPageDao
All Known Implementing Classes:
PageDaoHib

public interface IPageDao

Provides access to Page persistence.

Since:
4.0.11

Method Summary
 void add(PageConfig pageConfig, ITransaction transaction)
          Add the page.
 void addCss(String pageId, String cssId, int position, ITransaction transaction)
           
 boolean delete(String pageId, ITransaction transaction)
          Delete the page.
 void deleteCss(String pageId, String cssId, ITransaction transaction)
          Delete the CSS from the page.
 void evict(String pageId, ITransaction transaction)
          Removes the specified page from this DAO's cache.
 PageConfig get(String pageId, ITransaction transaction)
          Get the page.
 List<IChannelChild> getChannelsChildren(String parentChannelIds, boolean hidePages, boolean hidePageTemplates, IResource resource, Locale locale, ITransaction transaction)
           
 List<IChannelChild> getChildrenData(String channelId, int hidePages, int hidePageTemplates, IResource resource, Locale locale, ITransaction transaction)
           
 PageConfig getCommitted(String pageId, ITransaction transaction)
          Get the lastest committed version of the page.
 List<String> getCssIds(String pageId, ITransaction transaction)
          Get the ids of the page's CSS.
 String getFirstIdByChannelId(String channelId, ITransaction transaction)
          Get the id of the first child page.
 String getIdByUserId(String userId, ITransaction transaction)
          Get the id of the user's home page.
 List<String> getIdsByChannelId(String channelId, ITransaction transaction)
          Get the list of page's ids given the channel's id.
 Collection<String> getIdsByParentTemplateId(String parentTemplateId, ITransaction transaction)
          Add the CSS to the page.
 Collection<String> getIdsByServiceInstanceId(String serviceInstanceId, ITransaction transaction)
           
 boolean hasDependentPages(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(String pageId,
               ITransaction transaction)
               throws DaoException,
                      PortalException
Get the page.

Parameters:
pageId -
transaction -
Returns:
Throws:
DaoException
PortalException

getCommitted

PageConfig getCommitted(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
See Also:
#get(String, ITransaction)}

update

void update(PageConfig pageConfig,
            ITransaction transaction)
            throws DaoException,
                   PortalException
Update the page.

Parameters:
pageConfig -
transaction -
Throws:
DaoException
PortalException

delete

boolean delete(String pageId,
               ITransaction transaction)
               throws DaoException,
                      PortalException
Delete the page.

Parameters:
pageId -
transaction -
Throws:
DaoException
PortalException

evict

void evict(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

String getFirstIdByChannelId(String channelId,
                             ITransaction transaction)
                             throws DaoException,
                                    PortalException
Get the id of the first child page.

Parameters:
channelId -
transaction -
Returns:
Throws:
DaoException
PortalException

getIdByUserId

String getIdByUserId(String userId,
                     ITransaction transaction)
                     throws DaoException,
                            PortalException
Get the id of the user's home page.

Parameters:
userId -
transaction -
Returns:
Throws:
DaoException
PortalException

getIdsByChannelId

List<String> getIdsByChannelId(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

Collection<String> getIdsByParentTemplateId(String parentTemplateId,
                                            ITransaction transaction)
                                            throws DaoException,
                                                   PortalException
Add the CSS to the page.

Parameters:
pageId -
cssId -
position -
transaction -
Throws:
DaoException
PortalException

getIdsByServiceInstanceId

Collection<String> getIdsByServiceInstanceId(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(String pageTemplateId,
                          ITransaction transaction)
                          throws DaoException,
                                 PortalException
Throws:
DaoException
PortalException

addCss

void addCss(String pageId,
            String cssId,
            int position,
            ITransaction transaction)
            throws DaoException,
                   PortalException
Throws:
DaoException
PortalException

deleteCss

void deleteCss(String pageId,
               String cssId,
               ITransaction transaction)
               throws DaoException,
                      PortalException
Delete the CSS from the page.

Parameters:
pageId -
cssId -
transaction -
Throws:
DaoException
PortalException

getCssIds

List<String> getCssIds(String pageId,
                       ITransaction transaction)
                       throws DaoException,
                              PortalException
Get the ids of the page's CSS.

Parameters:
pageId -
transaction -
Returns:
Throws:
DaoException
PortalException

getChannelsChildren

List<IChannelChild> getChannelsChildren(String parentChannelIds,
                                        boolean hidePages,
                                        boolean hidePageTemplates,
                                        IResource resource,
                                        Locale locale,
                                        ITransaction transaction)
                                        throws PortalException
Throws:
PortalException

getChildrenData

List<IChannelChild> getChildrenData(String channelId,
                                    int hidePages,
                                    int hidePageTemplates,
                                    IResource resource,
                                    Locale locale,
                                    ITransaction transaction)
                                    throws DaoException,
                                           PortalException
Throws:
DaoException
PortalException


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