Class: Kaltura::Service::BaseEntryService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/kaltura/service/base_entry_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#client

Instance Method Summary collapse

Methods inherited from BaseService

#initialize, #perform_request

Constructor Details

This class inherits a constructor from Kaltura::Service::BaseService

Instance Method Details

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



5
6
7
8
9
10
11
# File 'lib/kaltura/service/base_entry_service.rb', line 5

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)
	perform_request('baseEntry','addFromUploadedFile',kparams,false)
end

#anonymous_rank(entry_id, rank) ⇒ Object



105
106
107
108
109
110
# File 'lib/kaltura/service/base_entry_service.rb', line 105

def anonymous_rank(entry_id, rank)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'rank', rank)
	perform_request('baseEntry','anonymousRank',kparams,false)
end

#approve(entry_id) ⇒ Object



92
93
94
95
96
# File 'lib/kaltura/service/base_entry_service.rb', line 92

def approve(entry_id)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	perform_request('baseEntry','approve',kparams,false)
end

#count(filter = nil) ⇒ Object



46
47
48
49
50
# File 'lib/kaltura/service/base_entry_service.rb', line 46

def count(filter=nil)
	kparams = {}
	client.add_param(kparams, 'filter', filter)
	perform_request('baseEntry','count',kparams,false)
end

#delete(entry_id) ⇒ Object



33
34
35
36
37
# File 'lib/kaltura/service/base_entry_service.rb', line 33

def delete(entry_id)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	perform_request('baseEntry','delete',kparams,false)
end

#flag(moderation_flag) ⇒ Object



80
81
82
83
84
# File 'lib/kaltura/service/base_entry_service.rb', line 80

def flag(moderation_flag)
	kparams = {}
	client.add_param(kparams, 'moderationFlag', moderation_flag)
	perform_request('baseEntry','flag',kparams,false)
end

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



13
14
15
16
17
18
# File 'lib/kaltura/service/base_entry_service.rb', line 13

def get(entry_id, version=-1)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'version', version)
	perform_request('baseEntry','get',kparams,false)
end

#get_by_ids(entry_ids) ⇒ Object



27
28
29
30
31
# File 'lib/kaltura/service/base_entry_service.rb', line 27

def get_by_ids(entry_ids)
	kparams = {}
	client.add_param(kparams, 'entryIds', entry_ids)
	perform_request('baseEntry','getByIds',kparams,false)
end

#get_context_data(entry_id, context_data_params) ⇒ Object



112
113
114
115
116
117
# File 'lib/kaltura/service/base_entry_service.rb', line 112

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)
	perform_request('baseEntry','getContextData',kparams,false)
end

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



39
40
41
42
43
44
# File 'lib/kaltura/service/base_entry_service.rb', line 39

def list(filter=nil, pager=nil)
	kparams = {}
	client.add_param(kparams, 'filter', filter)
	client.add_param(kparams, 'pager', pager)
	perform_request('baseEntry','list',kparams,false)
end

#list_flags(entry_id, pager = nil) ⇒ Object



98
99
100
101
102
103
# File 'lib/kaltura/service/base_entry_service.rb', line 98

def list_flags(entry_id, pager=nil)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'pager', pager)
	perform_request('baseEntry','listFlags',kparams,false)
end

#reject(entry_id) ⇒ Object



86
87
88
89
90
# File 'lib/kaltura/service/base_entry_service.rb', line 86

def reject(entry_id)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	perform_request('baseEntry','reject',kparams,false)
end

#update(entry_id, base_entry) ⇒ Object



20
21
22
23
24
25
# File 'lib/kaltura/service/base_entry_service.rb', line 20

def update(entry_id, base_entry)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'baseEntry', base_entry)
	perform_request('baseEntry','update',kparams,false)
end

#update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset) ⇒ Object



72
73
74
75
76
77
78
# File 'lib/kaltura/service/base_entry_service.rb', line 72

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)
	perform_request('baseEntry','updateThumbnailFromSourceEntry',kparams,false)
end

#update_thumbnail_from_url(entry_id, url) ⇒ Object



65
66
67
68
69
70
# File 'lib/kaltura/service/base_entry_service.rb', line 65

def update_thumbnail_from_url(entry_id, url)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'url', url)
	perform_request('baseEntry','updateThumbnailFromUrl',kparams,false)
end

#update_thumbnail_jpeg(entry_id, file_data) ⇒ Object



58
59
60
61
62
63
# File 'lib/kaltura/service/base_entry_service.rb', line 58

def update_thumbnail_jpeg(entry_id, file_data)
	kparams = {}
	client.add_param(kparams, 'entryId', entry_id)
	client.add_param(kparams, 'fileData', file_data)
	perform_request('baseEntry','updateThumbnailJpeg',kparams,false)
end

#upload(file_data) ⇒ Object



52
53
54
55
56
# File 'lib/kaltura/service/base_entry_service.rb', line 52

def upload(file_data)
	kparams = {}
	client.add_param(kparams, 'fileData', file_data)
	perform_request('baseEntry','upload',kparams,false)
end