module PIM::Services::CommunicationChannelService
Public Instance Methods
__communication_channel_service()
click to toggle source
# File services.rb, line 906 def __communication_channel_service __service(:communicationChannelService) end
add_communication_channel_sub_destinations(channel_id, sub_destinations)
click to toggle source
Add sub destinations defined in as Hash to the specified channel. Sub destinations are only added if they do not exist. Returns the updated communication channel.
# File services.rb, line 888 def add_communication_channel_sub_destinations channel_id, sub_destinations return nil if sub_destinations.nil? sub_destinations = PIM.javaify(sub_destinations) return __communication_channel_service.addCommunicationChannelSubDestinations(channel_id, sub_destinations) end
delete_communication_channel_sub_destinations(channel_id, sub_destination_names)
click to toggle source
# File services.rb, line 900 def delete_communication_channel_sub_destinations channel_id, sub_destination_names return nil if sub_destination_names.nil? sub_destination_names = PIM.javaify(sub_destination_names) return __communication_channel_service.deleteCommunicationChannelSubDestinations(channel_id, sub_destination_names) end
get_active_communication_channels(type = nil)
click to toggle source
# File services.rb, line 869 def get_active_communication_channels type = nil if type.nil? active_channels = __communication_channel_service.getActiveCommunicationChannels() else active_channels = __communication_channel_service.getActiveCommunicationChannelsByType(type.to_s) end active_channels end
get_communication_channel(*args)
click to toggle source
# File services.rb, line 855 def get_communication_channel *args if args.size == 1 channel_id = args[0] channel = __communication_channel_service.getCommunicationChannel(channel_id) elsif args.size == 2 type = args[0] unique_key = args[1] channel = __communication_channel_service.getActiveCommunicationChannelByUniqueKey(type, unique_key) else raise ArgumentError, "Invalid number of arguments #{args.size}, expected arguments are 1 or 2" end channel end
get_communication_channel_template(name)
click to toggle source
# File services.rb, line 878 def get_communication_channel_template name all_templates = __communication_channel_service.get_communication_channel_templates() template = all_templates.nil? ? nil : all_templates.find { |t| t.name == name } template end
set_communication_channel_sub_destinations(channel_id, sub_destinations)
click to toggle source
# File services.rb, line 894 def set_communication_channel_sub_destinations channel_id, sub_destinations return nil if sub_destinations.nil? sub_destinations = PIM.javaify(sub_destinations) return __communication_channel_service.setCommunicationChannelSubDestinations(channel_id, sub_destinations) end