module PIM::Services::CommunicationPlanService

Public Instance Methods

__communication_plan_service() click to toggle source
# File services.rb, line 493
def __communication_plan_service
  __service(:communicationPlanService)
end
create_content(message_creation_parameters, &block) click to toggle source
# File services.rb, line 467
def create_content message_creation_parameters, &block
  writer = StringIO.new
  block.call(writer, message_creation_parameters)
  writer.close
  content = writer.string
end
create_content_message(channel, content_type, prefix = nil, suffix = nil, &block) click to toggle source
# File services.rb, line 474
def create_content_message channel, content_type, prefix = nil, suffix = nil, &block
  message_creation_parameters = create_message_creation_parameters
  message_content = create_content(message_creation_parameters, &block)
  action_creator = com.lansa.lax.pim.messaging::MessagingCreator::SCRIPT_MESSAGING_CREATOR
  __communication_plan_service.create_content_messaging_asset(action_creator,
                                         channel,
                                         message_creation_parameters,
                                         message_content,
                                         content_type,
                                         prefix,
                                         suffix,
                                         false)
end
create_message_creation_parameters() click to toggle source
# File services.rb, line 463
def create_message_creation_parameters
  __communication_plan_service.create_message_creation_parameters
end
create_trafo_content_stream(items, content_type, params = {}) click to toggle source
# File services.rb, line 488
def create_trafo_content_stream items, content_type, params = {}
  params = PIM::Utils.unsymbolized_hash(params)
  __communication_plan_service.create_trafo_content_stream(items, content_type, params)
end
get_export_formats() click to toggle source
# File services.rb, line 454
def get_export_formats
  begin
    export_formats = __communication_plan_service.all_export_formats || {}
    Hash[export_formats.sort_by { |k,v| v }]
  rescue NoMethodError
    {}
  end
end