Class: Kaltura::KalturaCategoryEntryService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_client.rb

Overview

Add & Manage CategoryEntry - assign entry to category

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaCategoryEntryService

Returns a new instance of KalturaCategoryEntryService.



9634
9635
9636
# File 'lib/kaltura_client.rb', line 9634

def initialize(client)
	super(client)
end

Instance Method Details

#activate(entry_id, category_id) ⇒ Object

activate CategoryEntry when it is pending moderation



9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
# File 'lib/kaltura_client.rb', line 9692

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



9640
9641
9642
9643
9644
9645
9646
9647
9648
# File 'lib/kaltura_client.rb', line 9640

def add(category_entry)
	kparams = {}
	client.add_param(kparams, 'categoryEntry', category_entry);
	client.queue_service_action_call('categoryentry', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(entry_id, category_id) ⇒ Object

Delete CategoryEntry



9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
# File 'lib/kaltura_client.rb', line 9652

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



9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
# File 'lib/kaltura_client.rb', line 9678

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', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ Object

List all categoryEntry



9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
# File 'lib/kaltura_client.rb', line 9665

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', 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



9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
# File 'lib/kaltura_client.rb', line 9705

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