Class: DocumentRegistry

Inherits:
Object
  • Object
show all
Defined in:
lib/xds/document_registry_service.rb

Overview

Provides an interface to an XDS Document Registry

Instance Method Summary collapse

Constructor Details

#initialize(service_url) ⇒ DocumentRegistry

Returns a new instance of DocumentRegistry.



5
6
7
# File 'lib/xds/document_registry_service.rb', line 5

def initialize(service_url)
  @service_url = service_url
end

Instance Method Details

#register_document_set_bObject



9
10
11
# File 'lib/xds/document_registry_service.rb', line 9

def register_document_set_b

end

#registery_stored_query(query) ⇒ Object

Issues a stored query request to the XDS Document Registry Will return an Array of XDS::Metadata query - a Hash where the key is the parameter name and value is the value to query against call-seq: dr = DocumentRegistry.new(yourregistry.com/xdsb) dr.registery_stored_query(=> “‘93f3f8a6d100463^^^&1.3.6.1.4.1.21367.2005.3.7&ISO’”,

"$XDSDocumentEntryStatus" => "('urn:oasis:names:tc:ebxml-regrep:StatusType:Approved')")


20
21
22
23
# File 'lib/xds/document_registry_service.rb', line 20

def registery_stored_query(query)
  rsqr = XDS::RegistryStoredQueryRequest.new(@service_url, query)
  rsqr.
end