chg: [galaxy] Added logging behavior for galaxies, clusters and relations

pull/6120/head
mokaddem 2020-11-12 11:18:36 +01:00
parent 410e3fbeee
commit 7d07a631f2
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
5 changed files with 17 additions and 5 deletions

View File

@ -404,7 +404,7 @@ class LogsController extends AppController
$this->set('actions', $actions);
// combobox for models
$models = array('Attribute', 'Event', 'EventBlocklist', 'EventTag', 'Feed', 'DecayingModel', 'MispObject', 'Organisation', 'Post', 'Regexp', 'Role', 'Server', 'ShadowAttribute', 'SharingGroup', 'Tag', 'Task', 'Taxonomy', 'Template', 'Thread', 'User', 'Allowedlist');
$models = array('Attribute', 'Event', 'EventBlocklist', 'EventTag', 'Feed', 'DecayingModel', 'MispObject', 'Organisation', 'Post', 'Regexp', 'Role', 'Server', 'ShadowAttribute', 'SharingGroup', 'Tag', 'Task', 'Taxonomy', 'Template', 'Thread', 'User', 'Allowedlist', 'Galaxy', 'GalaxyCluster', 'GalaxyClusterRelation');
$models = array('' => 'ALL') + $this->_arrayToValuesIndexArray($models);
$this->set('models', $models);
$this->set('actionDefinitions', $this->{$this->defaultModel}->actionDefinitions);

View File

@ -7,7 +7,11 @@ class Galaxy extends AppModel
public $recursive = -1;
public $actsAs = array(
'Containable',
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
'userModel' => 'User',
'userKey' => 'user_id',
'change' => 'full'),
'Containable',
);
public $validate = array(

View File

@ -7,7 +7,11 @@ class GalaxyCluster extends AppModel
public $recursive = -1;
public $actsAs = array(
'Containable',
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
'userModel' => 'User',
'userKey' => 'user_id',
'change' => 'full'),
'Containable',
);
private $__assetCache = array();

View File

@ -8,7 +8,11 @@ class GalaxyClusterRelation extends AppModel
public $recursive = -1;
public $actsAs = array(
'Containable',
'SysLogLogable.SysLogLogable' => array( // TODO Audit, logable
'userModel' => 'User',
'userKey' => 'user_id',
'change' => 'full'),
'Containable',
);
public $validate = array(

View File

@ -37,7 +37,7 @@ class Log extends AppModel
'edit',
'email',
'enable',
'enrichment',
'enrichment',
'error',
'export',
'fetchEvent',