Class: Kaltura::KalturaAuditTrailService

Inherits:
KalturaServiceBase show all
Defined in:
lib/kaltura_plugins/kaltura_audit_client_plugin.rb

Overview

Audit Trail service

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaAuditTrailService

Returns a new instance of KalturaAuditTrailService.



297
298
299
# File 'lib/kaltura_plugins/kaltura_audit_client_plugin.rb', line 297

def initialize(client)
	super(client)
end

Instance Method Details

#add(audit_trail) ⇒ Object

Allows you to add an audit trail object and audit trail content associated with Kaltura object



303
304
305
306
307
308
309
310
311
# File 'lib/kaltura_plugins/kaltura_audit_client_plugin.rb', line 303

def add(audit_trail)
	kparams = {}
	client.add_param(kparams, 'auditTrail', audit_trail);
	client.queue_service_action_call('audit_audittrail', 'add', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

#get(id) ⇒ Object

Retrieve an audit trail object by id



315
316
317
318
319
320
321
322
323
# File 'lib/kaltura_plugins/kaltura_audit_client_plugin.rb', line 315

def get(id)
	kparams = {}
	client.add_param(kparams, 'id', id);
	client.queue_service_action_call('audit_audittrail', 'get', kparams);
	if (client.is_multirequest)
		return nil;
	end
	return client.do_queue();
end

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

List audit trail objects by filter and pager



327
328
329
330
331
332
333
334
335
336
# File 'lib/kaltura_plugins/kaltura_audit_client_plugin.rb', line 327

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