module PIM::Services::AssetService

Public Instance Methods

create_digital_asset(content, path, gathering_key: nil) click to toggle source
# File services.rb, line 806
def create_digital_asset content, path, gathering_key: nil
  content = to_digital_asset_content(content)
  __digital_asset_service.createDigitalAsset(content, gathering_key, path, "ruby")
end
create_gathering() click to toggle source
# File services.rb, line 763
def create_gathering
  __digital_asset_service.createGathering()
end
create_gathering_key() click to toggle source
# File services.rb, line 767
def create_gathering_key
  gathering = create_gathering()
  return gathering.key
end
get_digital_asset(gathering_key, path) click to toggle source
# File services.rb, line 802
def get_digital_asset gathering_key, path
  __digital_asset_service.getDigitalAsset(gathering_key, path)
end
is_private_asset_url(url) click to toggle source
# File services.rb, line 776
def is_private_asset_url url
  __public_asset_service.isPrivateAssetUrl(url)
end
is_public_asset_url(url) click to toggle source
# File services.rb, line 772
def is_public_asset_url url
  __public_asset_service.isPublicAssetUrl(url)
end
is_valid_url(url, check_external = false) click to toggle source

Checks, if the passed url is valid.

An URL is valid, if it is syntactically correct and refers to an existing (accessible) resource.

url:

  • The URL to check. May refer to an Asset, or an external resource.

doCheckExternal:

  • defaults to false. If true checks also urls referring to an external resource. Note: Accessing external resources may take a significant amount of time.

If doCheckExternal is set to false (which is the default) all external URLs will be treaten as valid.

# File services.rb, line 798
def is_valid_url url, check_external = false
  __public_asset_service.isValidUrl(url, check_external)
end
to_asset_key(url) click to toggle source
# File services.rb, line 811
def to_asset_key url
  __public_asset_service.toAssetKey(url)
end
to_string_asset_key(url) click to toggle source
# File services.rb, line 815
def to_string_asset_key url
  __public_asset_service.toStringAssetKey(url)
end