2015-06-01 11:00:02 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Objects;
|
|
|
|
|
|
2021-07-15 13:11:20 -04:00
|
|
|
use Icinga\Module\Director\Db;
|
|
|
|
|
use Icinga\Module\Director\DirectorObject\Automation\ExportInterface;
|
|
|
|
|
use Icinga\Module\Director\Exception\DuplicateKeyException;
|
|
|
|
|
|
|
|
|
|
class IcingaUser extends IcingaObject implements ExportInterface
|
2015-06-01 11:00:02 -04:00
|
|
|
{
|
|
|
|
|
protected $table = 'icinga_user';
|
|
|
|
|
|
|
|
|
|
protected $defaultProperties = array(
|
|
|
|
|
'id' => null,
|
2021-10-05 12:19:01 -04:00
|
|
|
'uuid' => null,
|
2015-06-01 11:00:02 -04:00
|
|
|
'object_name' => null,
|
2016-02-16 06:17:50 -05:00
|
|
|
'object_type' => null,
|
|
|
|
|
'disabled' => 'n',
|
2015-06-01 11:00:02 -04:00
|
|
|
'display_name' => null,
|
|
|
|
|
'email' => null,
|
|
|
|
|
'pager' => null,
|
|
|
|
|
'enable_notifications' => null,
|
|
|
|
|
'period_id' => null,
|
|
|
|
|
'zone_id' => null,
|
|
|
|
|
);
|
2015-06-12 05:11:51 -04:00
|
|
|
|
2021-10-05 12:19:01 -04:00
|
|
|
protected $uuidColumn = 'uuid';
|
|
|
|
|
|
2015-06-16 11:51:01 -04:00
|
|
|
protected $supportsGroups = true;
|
|
|
|
|
|
2015-06-24 04:13:27 -04:00
|
|
|
protected $supportsCustomVars = true;
|
|
|
|
|
|
2016-02-29 22:26:28 -05:00
|
|
|
protected $supportsFields = true;
|
|
|
|
|
|
2015-06-26 10:36:18 -04:00
|
|
|
protected $supportsImports = true;
|
|
|
|
|
|
2016-02-26 05:58:37 -05:00
|
|
|
protected $booleans = array(
|
2016-02-26 07:10:42 -05:00
|
|
|
'enable_notifications' => 'enable_notifications'
|
2016-02-26 05:58:37 -05:00
|
|
|
);
|
2016-02-28 11:02:57 -05:00
|
|
|
|
2016-02-29 12:29:18 -05:00
|
|
|
protected $relatedSets = array(
|
|
|
|
|
'states' => 'StateFilterSet',
|
|
|
|
|
'types' => 'TypeFilterSet',
|
|
|
|
|
);
|
2016-04-01 11:18:09 -04:00
|
|
|
|
|
|
|
|
protected $relations = array(
|
|
|
|
|
'period' => 'IcingaTimePeriod',
|
|
|
|
|
'zone' => 'IcingaZone',
|
|
|
|
|
);
|
2021-07-15 13:11:20 -04:00
|
|
|
|
|
|
|
|
public function getUniqueIdentifier()
|
|
|
|
|
{
|
|
|
|
|
return $this->getObjectName();
|
|
|
|
|
}
|
2015-06-01 11:00:02 -04:00
|
|
|
}
|