Class ChannelTreeDaoJdbc

  • All Implemented Interfaces:
    IChannelTreeDao

    public class ChannelTreeDaoJdbc
    extends Object
    implements IChannelTreeDao
    Dao Jdbc for channel tree.
    Since:
    4.0.0
    Version:
    $Revision: 22358 $ $Date: 2019-02-05 14:54:00 -0200 (Tue, 05 Feb 2019) $
    • Constructor Detail

      • ChannelTreeDaoJdbc

        public ChannelTreeDaoJdbc()
    • Method Detail

      • getBasicDataWithRootChannel

        public Map<String,​List<lumis.portal.channel.tree.Channel>> getBasicDataWithRootChannel​(String channelId,
                                                                                                     String rootChannelId,
                                                                                                     boolean hideChannelTemplates,
                                                                                                     ITransaction transaction)
                                                                                              throws PortalException
        Description copied from interface: IChannelTreeDao
        Get the basic tree data of the channel (with a given root channel). This method returns all the parents (entire ancestry) of the given channel. This is the minimum information required to render a channel within its tree.
        Specified by:
        getBasicDataWithRootChannel in interface IChannelTreeDao
        Parameters:
        channelId - the channel id.
        rootChannelId - the root channel id.
        hideChannelTemplates - hides the channel templates.
        transaction - the transaction to be used.
        Returns:
        the basic tree data of the channel (with a given root channel)
        Throws:
        PortalException
      • getBasicDataWithAreaTags

        public Map<String,​List<lumis.portal.channel.tree.Channel>> getBasicDataWithAreaTags​(String channelId,
                                                                                                  String rootChannelId,
                                                                                                  boolean hideChannelTemplates,
                                                                                                  Collection<String> areaTags,
                                                                                                  ITransaction transaction)
                                                                                           throws PortalException
        Description copied from interface: IChannelTreeDao
        Get the basic tree data of the channel (with a given root channel) considering area tags from each child channels. This method returns all the parents (entire ancestry) of the given channel. This is the minimum information required to render a channel within its tree.
        Specified by:
        getBasicDataWithAreaTags in interface IChannelTreeDao
        Parameters:
        channelId - the current channel id.
        rootChannelId - the root channel that will be used as reference to start the query.
        hideChannelTemplates - if is to hide or not channel templates.
        areaTags - the list of area tags that the channels must have (at least one) to be returned.
        transaction - the transaction to be used during the process.
        Returns:
        Get the basic tree data of the channel (with a given root channel) considering area tags from each child channels.
        Throws:
        PortalException - if any other error occurs during the process.
      • getBasicData

        public Map<String,​List<lumis.portal.channel.tree.Channel>> getBasicData​(String channelId,
                                                                                      boolean hideChannelTemplates,
                                                                                      String primaryServiceInstanceId,
                                                                                      ITransaction transaction)
                                                                               throws DaoException,
                                                                                      PortalException
        Description copied from interface: IChannelTreeDao
        Get the basic tree data of the channel considering area tags from each channel. This method returns all the parents (entire ancestry) of the given channel. This is the minimum information required to render a channel within its tree.
        Specified by:
        getBasicData in interface IChannelTreeDao
        Parameters:
        channelId - the current channel id.
        hideChannelTemplates - if is to hide or not channel templates.
        transaction - the transaction to be used during the process.
        Returns:
        the basic tree data of the channel considering area tags from each channel.
        Throws:
        DaoException - if any error occurs during the data base query.
        PortalException - if any other error occurs during the process.