Class: DepotGroup

Inherits:
BsaSoapBase show all
Defined in:
lib/bl_soap/depot_group.rb

Constant Summary

Constants inherited from BsaSoapBase

BsaSoapBase::CLI_SERVICE, BsaSoapBase::CLI_WSDL, BsaSoapBase::DEFAULT_AUTH_TYPE, BsaSoapBase::HTTP_READ_TIMEOUT, BsaSoapBase::LOGIN_SERVICE, BsaSoapBase::LOGIN_WSDL, BsaSoapBase::ROLE_SERVICE, BsaSoapBase::ROLE_WSDL

Instance Method Summary collapse

Methods inherited from BsaSoapBase

#execute_cli_with_attachments, #execute_cli_with_param_list, #get_all_servers, #get_cli_return_value, #initialize, #validate_cli_option_hash_string_values, #validate_cli_options_hash, #validate_cli_result, #validate_servers

Constructor Details

This class inherits a constructor from BsaSoapBase

Instance Method Details

#create_depot_group(options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/bl_soap/depot_group.rb', line 2

def create_depot_group(options = {})
	validate_cli_options_hash([:group_name, :parent_id], options)
	integer_result = execute_cli_with_param_list(self.class, "createDepotGroup",
																							 [
																									 options[:group_name],	# group name to be created
																									 options[:parent_id]		# parent id
																							 ])
	integer_value = get_cli_return_value(integer_result)
rescue => exception
	raise "Exception executing #{self.class} function: #{exception.to_s}"
end

#create_depot_group_with_parent_name(options = {}) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/bl_soap/depot_group.rb', line 14

def create_depot_group_with_parent_name(options = {})
	validate_cli_options_hash([:group_name, :parent_group_name], options)
	integer_result = execute_cli_with_param_list(self.class, "createDepotGroupWithParentName",
																							 [
																									 options[:group_name],			# group name to be created
																									 options[:parent_group_name]		# parent group name
																							 ])
	integer_value = get_cli_return_value(integer_result)
rescue => exception
	raise "Exception executing #{self.class} function: #{exception.to_s}"
end

#group_exists(options = {}) ⇒ Object



26
27
28
29
30
31
32
33
34
35
# File 'lib/bl_soap/depot_group.rb', line 26

def group_exists(options = {})
	validate_cli_options_hash([:group_name], options)
	boolean_result = execute_cli_with_param_list(self.class, "groupExists",
																							 [
																									 options[:group_name]	# fully qualified group to check
																							 ])
	boolean_value = get_cli_return_value(boolean_result)
rescue => exception
	raise "Exception executing #{self.class} function: #{exception.to_s}"
end

#group_name_to_id(options = {}) ⇒ Object



37
38
39
40
41
42
43
44
45
46
# File 'lib/bl_soap/depot_group.rb', line 37

def group_name_to_id(options = {})
	validate_cli_options_hash([:group_name], options)
	integer_result = execute_cli_with_param_list(self.class, "groupNameToId",
																							 [
																									 options[:group_name]	# Fully qualified path
																							 ])
	integer_value = get_cli_return_value(integer_result)
rescue => exception
	raise "Exception executing #{self.class} function: #{exception.to_s}"
end