Class: Kaltura::KalturaTagService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaTagService
- Defined in:
- lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb
Overview
Search object tags
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#delete_pending ⇒ Object
Action goes over all tags with instanceCount==0 and checks whether they need to be removed from the DB.
- #index_category_entry_tags(category_id, pc_to_decrement, pc_to_increment) ⇒ Object
-
#initialize(client) ⇒ KalturaTagService
constructor
A new instance of KalturaTagService.
- #search(tag_filter, pager = KalturaNotImplemented) ⇒ Object
Constructor Details
#initialize(client) ⇒ KalturaTagService
Returns a new instance of KalturaTagService.
96 97 98 |
# File 'lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb', line 96 def initialize(client) super(client) end |
Instance Method Details
#delete_pending ⇒ Object
Action goes over all tags with instanceCount==0 and checks whether they need to be removed from the DB. Returns number of removed tags.
113 114 115 116 117 118 119 120 |
# File 'lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb', line 113 def delete_pending() kparams = {} client.queue_service_action_call('tagsearch_tag', 'deletePending', 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
122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb', line 122 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) ⇒ Object
100 101 102 103 104 105 106 107 108 109 |
# File 'lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb', line 100 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', kparams); if (client.is_multirequest) return nil; end return client.do_queue(); end |