class T2Server::Administrator
This call provides access to the administrative interface of a Taverna Server
instance.
To get an instance of this class use the Server#administrator
method. Special permissions will most likely be required above and beyond those assigned to most Taverna Server
users.
Attributes
resources[R]
The resources held by this administrative interface. This is a Hash indexed by the name of the resource in lowercase.
Public Instance Methods
[name] → AdminResource
click to toggle source
Return the named AdminResource
.
# File lib/t2-server/admin.rb 72 def [](name) 73 @resources[name.downcase] 74 end
Private Instance Methods
get_resources(doc)
click to toggle source
# File lib/t2-server/admin.rb 87 def get_resources(doc) 88 links = {} 89 90 xml_children(doc.root) do |res| 91 uri = URI.parse(xml_node_attribute(res, 'href')) 92 write = @server.is_resource_writable?(uri, @credentials) 93 links[res.name.downcase] = AdminResource.new(res.name, uri, write, self) 94 end 95 96 links 97 end