Sha256: b3aaf7d979ab7155bb32e0b7f15010a083b83caecbd24e74d7947721a0cb6434

Contents?: true

Size: 959 Bytes

Versions: 35

Compression:

Stored size: 959 Bytes

Contents

module Rubydora::RestApiClient
  # Fall-back implementations for fcrepo < 3.4
  module V33
    # @param [Rubydora::Repository] repository
    def self.extended repository
      repository.send(:extend, Rubydora::Soap)
    end

    # {include:RestApiClient#relationships}
    def relationships options = {}
      nil
    end

    # {include:RestApiClient#add_relationship}
    def add_relationship options = {}
      pid = options.delete(:pid) || options[:subject]
      self.soap.request :add_relationship, :pid => pid, :relationship => options[:predicate], :object => options[:object], :isLiteral => false, :datatype => nil
    end

    # {include:RestApiClient#purge_relationship}
    def purge_relationship options = {}
      pid = options.delete(:pid) || options[:subject]
      self.soap.request :purge_relationship, :pid => pid, :relationship => options[:predicate], :object => options[:object], :isLiteral => false, :datatype => nil
    end

  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
rubydora-0.5.13 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.12 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.11 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.10 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.9 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.8 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.7 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.6 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.5 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.4 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.3 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.2 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.1 lib/rubydora/rest_api_client/v33.rb
rubydora-0.5.0 lib/rubydora/rest_api_client/v33.rb
rubydora-0.4.1 lib/rubydora/rest_api_client/v33.rb
rubydora-0.4.0 lib/rubydora/rest_api_client/v33.rb
rubydora-0.4.0pre1 lib/rubydora/rest_api_client/v33.rb
rubydora-0.3.1 lib/rubydora/rest_api_client/v33.rb
rubydora-0.3.0 lib/rubydora/rest_api_client/v33.rb
rubydora-0.2.6 lib/rubydora/rest_api_client/v33.rb