Class: Kaltura::Service::SystemUserService

Inherits:
BaseService
  • Object
show all
Defined in:
lib/kaltura/service/system_user_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(system_user) ⇒ Object



24
25
26
27
28
# File 'lib/kaltura/service/system_user_service.rb', line 24

def add(system_user)
	kparams = {}
	client.add_param(kparams, 'systemUser', system_user)
	perform_request('systemUser','add',kparams,false)
end

#delete(user_id) ⇒ Object



49
50
51
52
53
# File 'lib/kaltura/service/system_user_service.rb', line 49

def delete(user_id)
	kparams = {}
	client.add_param(kparams, 'userId', user_id)
	perform_request('systemUser','delete',kparams,false)
end

#generate_new_passwordObject



12
13
14
15
# File 'lib/kaltura/service/system_user_service.rb', line 12

def generate_new_password()
	kparams = {}
	perform_request('systemUser','generateNewPassword',kparams,false)
end

#get(user_id) ⇒ Object



30
31
32
33
34
# File 'lib/kaltura/service/system_user_service.rb', line 30

def get(user_id)
	kparams = {}
	client.add_param(kparams, 'userId', user_id)
	perform_request('systemUser','get',kparams,false)
end

#get_by_email(email) ⇒ Object



36
37
38
39
40
# File 'lib/kaltura/service/system_user_service.rb', line 36

def get_by_email(email)
	kparams = {}
	client.add_param(kparams, 'email', email)
	perform_request('systemUser','getByEmail',kparams,false)
end

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



55
56
57
58
59
60
# File 'lib/kaltura/service/system_user_service.rb', line 55

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

#set_new_password(user_id, password) ⇒ Object



17
18
19
20
21
22
# File 'lib/kaltura/service/system_user_service.rb', line 17

def set_new_password(user_id, password)
	kparams = {}
	client.add_param(kparams, 'userId', user_id)
	client.add_param(kparams, 'password', password)
	perform_request('systemUser','setNewPassword',kparams,false)
end

#update(user_id, system_user) ⇒ Object



42
43
44
45
46
47
# File 'lib/kaltura/service/system_user_service.rb', line 42

def update(user_id, system_user)
	kparams = {}
	client.add_param(kparams, 'userId', user_id)
	client.add_param(kparams, 'systemUser', system_user)
	perform_request('systemUser','update',kparams,false)
end

#verify_password(email, password) ⇒ Object



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

def verify_password(email, password)
	kparams = {}
	client.add_param(kparams, 'email', email)
	client.add_param(kparams, 'password', password)
	perform_request('systemUser','verifyPassword',kparams,false)
end