ChannelService¶
Methods¶
addOrUpdate¶
delete¶
getAllChannels¶
getChannel¶
getChannelIcon¶
-
BundleIcon
getChannelIcon
(String moduleName)¶ Returns the icon for the channel from module with the given name.
Parameters: - moduleName – the name of the module, null returns default icon
Throws: - IOException – when there were problems while fetching the icon
Returns: the icon of the module
registerChannel¶
-
void
registerChannel
(ChannelRequest channelRequest)¶ Registers the given channel with the task module.
Parameters: - channelRequest – the channel request, not null
registerChannel¶
-
void
registerChannel
(InputStream stream, String moduleName, String moduleVersion)¶ Registers channel from the given stream for the given module. The input stream should contain the JSON definition of the channel.
Parameters: - stream – the channel JSON definition as a stream, not null
- moduleName – the name of the module
- moduleVersion – the version of the module