module PIM::Services::ExportService

Public Instance Methods

__export_service() click to toggle source
# File services.rb, line 2420
def __export_service
  __service(:exportService)
end
create_trafo_digital_asset(items, content_type, gathering_key: nil, filename_prefix: nil, filename_suffix: nil) click to toggle source

Parameters:

items: List of items to export (mandatory)
content_type: Content-type to transform to (mandatory)
gathering_key: Gathering-Key to create the asset into (optional, will create a new one if nil)
filename_prefix: Prefix to use for the filename, formated like "[PREFIX]-FILENAME" (optional)
filename_suffix: Suffix to use for the filename, formated like "FILENAME.[SUFFIX]" (optional)

Returns:

DigitalAsset
# File services.rb, line 2407
def create_trafo_digital_asset(items,
                               content_type,
                               gathering_key: nil,
                               filename_prefix: nil,
                               filename_suffix: nil)
  items = PIM.javaify_array(items)
  return __export_service.createTrafoDigitalAsset(gathering_key,
                                                  items,
                                                  content_type,
                                                  filename_prefix,
                                                  filename_suffix)
end