Class: Kaltura::KalturaCategoryEntryService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaCategoryEntryService
- Defined in:
- lib/kaltura_client.rb
Overview
Add & Manage CategoryEntry - assign entry to category
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#activate(entry_id, category_id) ⇒ Object
activate CategoryEntry when it is pending moderation.
-
#add(category_entry) ⇒ Object
Add new CategoryEntry.
- #add_from_bulk_upload(bulk_upload_data, bulk_upload_category_entry_data = KalturaNotImplemented) ⇒ Object
-
#delete(entry_id, category_id) ⇒ Object
Delete CategoryEntry.
-
#index(entry_id, category_id, should_update = true) ⇒ Object
Index CategoryEntry by Id.
-
#initialize(client) ⇒ KalturaCategoryEntryService
constructor
A new instance of KalturaCategoryEntryService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List all categoryEntry.
-
#reject(entry_id, category_id) ⇒ Object
activate CategoryEntry when it is pending moderation.
-
#sync_privacy_context(entry_id, category_id) ⇒ Object
update privacy context from the category.
Constructor Details
#initialize(client) ⇒ KalturaCategoryEntryService
Returns a new instance of KalturaCategoryEntryService.
736 737 738 |
# File 'lib/kaltura_client.rb', line 736 def initialize(client) super(client) end |
Instance Method Details
#activate(entry_id, category_id) ⇒ Object
activate CategoryEntry when it is pending moderation
794 795 796 797 798 799 800 801 802 803 |
# File 'lib/kaltura_client.rb', line 794 def activate(entry_id, category_id) kparams = {} client.add_param(kparams, 'entryId', entry_id) client.add_param(kparams, 'categoryId', category_id) client.queue_service_action_call('categoryentry', 'activate', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#add(category_entry) ⇒ Object
Add new CategoryEntry
742 743 744 745 746 747 748 749 750 |
# File 'lib/kaltura_client.rb', line 742 def add(category_entry) kparams = {} client.add_param(kparams, 'categoryEntry', category_entry) client.queue_service_action_call('categoryentry', 'add', 'KalturaCategoryEntry', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#add_from_bulk_upload(bulk_upload_data, bulk_upload_category_entry_data = KalturaNotImplemented) ⇒ Object
831 832 833 834 835 836 837 838 839 840 |
# File 'lib/kaltura_client.rb', line 831 def add_from_bulk_upload(bulk_upload_data, bulk_upload_category_entry_data=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'bulkUploadData', bulk_upload_data) client.add_param(kparams, 'bulkUploadCategoryEntryData', bulk_upload_category_entry_data) client.queue_service_action_call('categoryentry', 'addFromBulkUpload', 'KalturaBulkUpload', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#delete(entry_id, category_id) ⇒ Object
Delete CategoryEntry
754 755 756 757 758 759 760 761 762 763 |
# File 'lib/kaltura_client.rb', line 754 def delete(entry_id, category_id) kparams = {} client.add_param(kparams, 'entryId', entry_id) client.add_param(kparams, 'categoryId', category_id) client.queue_service_action_call('categoryentry', 'delete', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#index(entry_id, category_id, should_update = true) ⇒ Object
Index CategoryEntry by Id
780 781 782 783 784 785 786 787 788 789 790 |
# File 'lib/kaltura_client.rb', line 780 def index(entry_id, category_id, should_update=true) kparams = {} client.add_param(kparams, 'entryId', entry_id) client.add_param(kparams, 'categoryId', category_id) client.add_param(kparams, 'shouldUpdate', should_update) client.queue_service_action_call('categoryentry', 'index', 'int', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object
List all categoryEntry
767 768 769 770 771 772 773 774 775 776 |
# File 'lib/kaltura_client.rb', line 767 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('categoryentry', 'list', 'KalturaCategoryEntryListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#reject(entry_id, category_id) ⇒ Object
activate CategoryEntry when it is pending moderation
807 808 809 810 811 812 813 814 815 816 |
# File 'lib/kaltura_client.rb', line 807 def reject(entry_id, category_id) kparams = {} client.add_param(kparams, 'entryId', entry_id) client.add_param(kparams, 'categoryId', category_id) client.queue_service_action_call('categoryentry', 'reject', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#sync_privacy_context(entry_id, category_id) ⇒ Object
update privacy context from the category
820 821 822 823 824 825 826 827 828 829 |
# File 'lib/kaltura_client.rb', line 820 def sync_privacy_context(entry_id, category_id) kparams = {} client.add_param(kparams, 'entryId', entry_id) client.add_param(kparams, 'categoryId', category_id) client.queue_service_action_call('categoryentry', 'syncPrivacyContext', '', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |