Class: Kaltura::KalturaBaseEntryService

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

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaBaseEntryService

Returns a new instance of KalturaBaseEntryService.



3415
3416
3417
# File 'lib/kaltura_client.rb', line 3415

def initialize(client)
	super(client)
end

Instance Method Details

#add_from_uploaded_file(entry, upload_token_id, type = -1)) ⇒ Object



3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
# File 'lib/kaltura_client.rb', line 3419

def add_from_uploaded_file(entry, upload_token_id, type=-1)
	kparams = {}
	client.add_param(kparams, 'entry', entry);
	client.add_param(kparams, 'uploadTokenId', upload_token_id);
	client.add_param(kparams, 'type', type);
	client.queue_service_action_call('baseEntry', 'addFromUploadedFile', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#anonymous_rank(entry_id, rank) ⇒ Object



3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
# File 'lib/kaltura_client.rb', line 3579

def anonymous_rank(entry_id, rank)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'rank', rank);
	client.queue_service_action_call('baseEntry', 'anonymousRank', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#approve(entry_id) ⇒ Object



3558
3559
3560
3561
3562
3563
3564
3565
3566
# File 'lib/kaltura_client.rb', line 3558

def approve(entry_id)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.queue_service_action_call('baseEntry', 'approve', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#count(filter = nil) ⇒ Object



3484
3485
3486
3487
3488
3489
3490
3491
3492
# File 'lib/kaltura_client.rb', line 3484

def count(filter=nil)
	kparams = {}
	client.add_param(kparams, 'filter', filter);
	client.queue_service_action_call('baseEntry', 'count', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#delete(entry_id) ⇒ Object



3463
3464
3465
3466
3467
3468
3469
3470
3471
# File 'lib/kaltura_client.rb', line 3463

def delete(entry_id)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.queue_service_action_call('baseEntry', 'delete', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#flag(moderation_flag) ⇒ Object



3538
3539
3540
3541
3542
3543
3544
3545
3546
# File 'lib/kaltura_client.rb', line 3538

def flag(moderation_flag)
	kparams = {}
	client.add_param(kparams, 'moderationFlag', moderation_flag);
	client.queue_service_action_call('baseEntry', 'flag', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get(entry_id, version = -1)) ⇒ Object



3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
# File 'lib/kaltura_client.rb', line 3431

def get(entry_id, version=-1)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'version', version);
	client.queue_service_action_call('baseEntry', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_by_ids(entry_ids) ⇒ Object



3453
3454
3455
3456
3457
3458
3459
3460
3461
# File 'lib/kaltura_client.rb', line 3453

def get_by_ids(entry_ids)
	kparams = {}
	client.add_param(kparams, 'entryIds', entry_ids);
	client.queue_service_action_call('baseEntry', 'getByIds', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get_context_data(entry_id, context_data_params) ⇒ Object



3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
# File 'lib/kaltura_client.rb', line 3590

def get_context_data(entry_id, context_data_params)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'contextDataParams', context_data_params);
	client.queue_service_action_call('baseEntry', 'getContextData', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

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



3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
# File 'lib/kaltura_client.rb', line 3473

def list(filter=nil, pager=nil)
	kparams = {}
	client.add_param(kparams, 'filter', filter);
	client.add_param(kparams, 'pager', pager);
	client.queue_service_action_call('baseEntry', 'list', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#list_flags(entry_id, pager = nil) ⇒ Object



3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
# File 'lib/kaltura_client.rb', line 3568

def list_flags(entry_id, pager=nil)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'pager', pager);
	client.queue_service_action_call('baseEntry', 'listFlags', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#reject(entry_id) ⇒ Object



3548
3549
3550
3551
3552
3553
3554
3555
3556
# File 'lib/kaltura_client.rb', line 3548

def reject(entry_id)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.queue_service_action_call('baseEntry', 'reject', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update(entry_id, base_entry) ⇒ Object



3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
# File 'lib/kaltura_client.rb', line 3442

def update(entry_id, base_entry)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'baseEntry', base_entry);
	client.queue_service_action_call('baseEntry', 'update', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset) ⇒ Object



3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
# File 'lib/kaltura_client.rb', line 3526

def update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'sourceEntryId', source_entry_id);
	client.add_param(kparams, 'timeOffset', time_offset);
	client.queue_service_action_call('baseEntry', 'updateThumbnailFromSourceEntry', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update_thumbnail_from_url(entry_id, url) ⇒ Object



3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
# File 'lib/kaltura_client.rb', line 3515

def update_thumbnail_from_url(entry_id, url)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'url', url);
	client.queue_service_action_call('baseEntry', 'updateThumbnailFromUrl', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#update_thumbnail_jpeg(entry_id, file_data) ⇒ Object



3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
# File 'lib/kaltura_client.rb', line 3504

def update_thumbnail_jpeg(entry_id, file_data)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id);
	client.add_param(kparams, 'fileData', file_data);
	client.queue_service_action_call('baseEntry', 'updateThumbnailJpeg', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#upload(file_data) ⇒ Object



3494
3495
3496
3497
3498
3499
3500
3501
3502
# File 'lib/kaltura_client.rb', line 3494

def upload(file_data)
	kparams = {}
	client.add_param(kparams, 'fileData', file_data);
	client.queue_service_action_call('baseEntry', 'upload', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end