Package lumis.portal.channel.tree
Class ChannelTreeManager
- java.lang.Object
-
- lumis.portal.channel.tree.ChannelTreeManager
-
- All Implemented Interfaces:
IChannelTreeManager
public class ChannelTreeManager extends Object implements IChannelTreeManager
-
-
Constructor Summary
Constructors Constructor Description ChannelTreeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addChannels(StringBuilder result, StringBuilder parentChannelIds, Map<String,List<lumis.portal.channel.tree.Channel>> channelChildren, ILocalizationManager localizationManager, IResource resource, SessionConfig sessionConfig, String primaryServiceInstanceId, ITransaction transaction)
protected void
addPages(StringBuilder result, List<IChannelChild> children, SessionConfig sessionConfig, ITransaction transaction)
String
getBasicData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, boolean hidePages, boolean hidePageTemplates, boolean hideChannelTemplates, String primaryServiceInstance, ITransaction transaction)
Get the basic tree data of the channel.String
getBasicData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, boolean hidePages, boolean hidePageTemplates, boolean hideChannelTemplates, ITransaction transaction)
Get the basic tree data of the channel.String
getBasicData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, String rootChannelId, boolean hidePages, boolean hidePageTemplates, boolean hideChannelTemplates, String primaryServiceInstance, ITransaction transaction)
Get the basic tree data of the channel.String
getBasicData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, String rootChannelId, boolean hidePages, boolean hidePageTemplates, boolean hideChannelTemplates, ITransaction portalTransaction)
Get the basic tree data of the channel.String
getChildrenData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, int hideChannels, int hidePages, int hidePageTemplates, int hideChannelTemplates, String primaryServiceInstanceId, ITransaction transaction)
Get the children's tree data of the channel.String
getChildrenData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, int hideChannels, int hidePages, int hidePageTemplates, int hideChannelTemplates, ITransaction transaction)
Get the children's tree data of the channel.
-
-
-
Method Detail
-
getBasicData
public String getBasicData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, boolean hidePages, boolean hidePageTemplates, boolean hideChannelTemplates, String primaryServiceInstance, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IChannelTreeManager
Get the basic tree data of the channel. Given a channelId, this method returns this channels immediate children and the immediate children of all the channels in its parent path. To access this method, the user needs the PERMISSION_TYPE_VIEW_CHANNEL permission.- Specified by:
getBasicData
in interfaceIChannelTreeManager
- Returns:
- Throws:
ManagerException
PortalException
-
getBasicData
public String getBasicData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, String rootChannelId, boolean hidePages, boolean hidePageTemplates, boolean hideChannelTemplates, String primaryServiceInstance, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IChannelTreeManager
Get the basic tree data of the channel. Given a channelId and a root channel id, this method returns this channels immediate children and the immediate children of all the channels in its parent path. To access this method, the user needs the PERMISSION_TYPE_VIEW_CHANNEL permission.- Specified by:
getBasicData
in interfaceIChannelTreeManager
- Returns:
- Throws:
ManagerException
PortalException
-
addChannels
protected void addChannels(StringBuilder result, StringBuilder parentChannelIds, Map<String,List<lumis.portal.channel.tree.Channel>> channelChildren, ILocalizationManager localizationManager, IResource resource, SessionConfig sessionConfig, String primaryServiceInstanceId, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
addPages
protected void addPages(StringBuilder result, List<IChannelChild> children, SessionConfig sessionConfig, ITransaction transaction) throws PortalException
- Throws:
PortalException
-
getChildrenData
public String getChildrenData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, int hideChannels, int hidePages, int hidePageTemplates, int hideChannelTemplates, String primaryServiceInstanceId, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IChannelTreeManager
Get the children's tree data of the channel. Given a channelId, this method returns the immediate children of the channel. To access this method, the user needs the PERMISSION_TYPE_VIEW_CHANNEL permission.- Specified by:
getChildrenData
in interfaceIChannelTreeManager
- Returns:
- Returns the channel's Id.
- Throws:
ManagerException
PortalException
-
getBasicData
public String getBasicData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, boolean hidePages, boolean hidePageTemplates, boolean hideChannelTemplates, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IChannelTreeManager
Get the basic tree data of the channel. Given a channelId, this method returns this channels immediate children and the immediate children of all the channels in its parent path. To access this method, the user needs the PERMISSION_TYPE_VIEW_CHANNEL permission.- Specified by:
getBasicData
in interfaceIChannelTreeManager
- Returns:
- Returns the list of channel's Id.
- Throws:
ManagerException
PortalException
-
getBasicData
public String getBasicData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, String rootChannelId, boolean hidePages, boolean hidePageTemplates, boolean hideChannelTemplates, ITransaction portalTransaction) throws ManagerException, PortalException
Description copied from interface:IChannelTreeManager
Get the basic tree data of the channel. Given a channelId and a root channel id, this method returns this channels immediate children and the immediate children of all the channels in its parent path. To access this method, the user needs the PERMISSION_TYPE_VIEW_CHANNEL permission.- Specified by:
getBasicData
in interfaceIChannelTreeManager
- Parameters:
sessionConfig
- the user's session.channelChildProvider
- the channel child provider.channelId
- the channel id.rootChannelId
- the root channel id.hidePages
- hides pages.hidePageTemplates
- hides page templates.hideChannelTemplates
- hides channel templates.portalTransaction
- the transaction.- Returns:
- the basic tree data of the channel
- Throws:
ManagerException
PortalException
-
getChildrenData
public String getChildrenData(SessionConfig sessionConfig, IChannelChildProvider channelChildProvider, String channelId, int hideChannels, int hidePages, int hidePageTemplates, int hideChannelTemplates, ITransaction transaction) throws ManagerException, PortalException
Description copied from interface:IChannelTreeManager
Get the children's tree data of the channel. Given a channelId, this method returns the immediate children of the channel. To access this method, the user needs the PERMISSION_TYPE_VIEW_CHANNEL permission.- Specified by:
getChildrenData
in interfaceIChannelTreeManager
- Returns:
- Returns the channel's Id.
- Throws:
ManagerException
PortalException
-
-