Class: Kaltura::KalturaTagService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb

Overview

Search object tags

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaTagService

Returns a new instance of KalturaTagService.



159
160
161
# File 'lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb', line 159

def initialize(client)
	super(client)
end

Instance Method Details

#delete_pendingint

Action goes over all tags with instanceCount==0 and checks whether they need to be removed from the DB. Returns number of removed tags.

Returns:

  • (int)


165
166
167
168
169
170
171
172
# File 'lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb', line 165

def delete_pending()
	kparams = {}
	client.queue_service_action_call('tagsearch_tag', 'deletePending', 'int', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#index_category_entry_tags(category_id, pc_to_decrement, pc_to_increment) ⇒ Object

Returns [].

Returns:



175
176
177
178
179
180
181
182
183
184
185
# File 'lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb', line 175

def (category_id, pc_to_decrement, pc_to_increment)
	kparams = {}
	client.add_param(kparams, 'categoryId', category_id)
	client.add_param(kparams, 'pcToDecrement', pc_to_decrement)
	client.add_param(kparams, 'pcToIncrement', pc_to_increment)
	client.queue_service_action_call('tagsearch_tag', 'indexCategoryEntryTags', '', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end

#search(tag_filter, pager = KalturaNotImplemented) ⇒ KalturaTagListResponse



188
189
190
191
192
193
194
195
196
197
# File 'lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb', line 188

def search(tag_filter, pager=KalturaNotImplemented)
	kparams = {}
	client.add_param(kparams, 'tagFilter', tag_filter)
	client.add_param(kparams, 'pager', pager)
	client.queue_service_action_call('tagsearch_tag', 'search', 'KalturaTagListResponse', kparams)
	if (client.is_multirequest)
		return nil
	end
	return client.do_queue()
end