Class: Kaltura::KalturaAuditTrailService

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

Overview

The Audit Trail service allows you to keep track of changes made to various Kaltura objects.

This service is disabled by default.

Instance Attribute Summary

Attributes inherited from KalturaServiceBase

#client

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ KalturaAuditTrailService

Returns a new instance of KalturaAuditTrailService.



562
563
564
# File 'lib/kaltura_plugins/kaltura_audit_client_plugin.rb', line 562

def initialize(client)
	super(client)
end

Instance Method Details

#add(audit_trail) ⇒ KalturaAuditTrail

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

Returns:



568
569
570
571
572
573
574
575
576
# File 'lib/kaltura_plugins/kaltura_audit_client_plugin.rb', line 568

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

#get(id) ⇒ KalturaAuditTrail

Retrieve an audit trail object by id

Returns:



580
581
582
583
584
585
586
587
588
# File 'lib/kaltura_plugins/kaltura_audit_client_plugin.rb', line 580

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

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

List audit trail objects by filter and pager



592
593
594
595
596
597
598
599
600
601
# File 'lib/kaltura_plugins/kaltura_audit_client_plugin.rb', line 592

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