class Kaltura::KalturaCategoryEntryService

Add & Manage CategoryEntry - assign entry to category

Public Class Methods

new(client) click to toggle source
Calls superclass method
# File lib/kaltura_client.rb, line 781
def initialize(client)
        super(client)
end

Public Instance Methods

activate(entry_id, category_id) click to toggle source

activate CategoryEntry when it is pending moderation @return []

# File lib/kaltura_client.rb, line 787
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) click to toggle source

Add new CategoryEntry @return [KalturaCategoryEntry]

# File lib/kaltura_client.rb, line 800
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) click to toggle source

@return [KalturaBulkUpload]

# File lib/kaltura_client.rb, line 811
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) click to toggle source

Delete CategoryEntry @return []

# File lib/kaltura_client.rb, line 824
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) click to toggle source

Index CategoryEntry by Id @return [int]

# File lib/kaltura_client.rb, line 837
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) click to toggle source

List all categoryEntry @return [KalturaCategoryEntryListResponse]

# File lib/kaltura_client.rb, line 851
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) click to toggle source

activate CategoryEntry when it is pending moderation @return []

# File lib/kaltura_client.rb, line 864
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) click to toggle source

update privacy context from the category @return []

# File lib/kaltura_client.rb, line 877
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
update_status_from_bulk(file_data, bulk_upload_data=KalturaNotImplemented, bulk_upload_category_entry_data=KalturaNotImplemented) click to toggle source

@return [KalturaBulkUpload]

# File lib/kaltura_client.rb, line 889
def update_status_from_bulk(file_data, bulk_upload_data=KalturaNotImplemented, bulk_upload_category_entry_data=KalturaNotImplemented)
        kparams = {}
        kfiles = {}
        client.add_param(kfiles, 'fileData', file_data)
        client.add_param(kparams, 'bulkUploadData', bulk_upload_data)
        client.add_param(kparams, 'bulkUploadCategoryEntryData', bulk_upload_category_entry_data)
        client.queue_service_action_call('categoryentry', 'updateStatusFromBulk', 'KalturaBulkUpload', kparams, kfiles)
        if (client.is_multirequest)
                return nil
        end
        return client.do_queue()
end