icinga2/lib/icinga/user.ti

47 lines
968 B
Plaintext
Raw Normal View History

/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2014-05-25 16:23:35 +02:00
#include "icinga/customvarobject.hpp"
#include "base/array.hpp"
#impl_include "icinga/usergroup.hpp"
2013-10-26 09:41:45 +02:00
library icinga;
2013-10-26 09:41:45 +02:00
namespace icinga
{
class User : CustomVarObject
2013-10-26 09:41:45 +02:00
{
[config] String display_name {
get {{{
if (m_DisplayName.IsEmpty())
return GetName();
else
return m_DisplayName;
}}}
2013-10-26 09:41:45 +02:00
};
[config, no_user_modify, required] array(name(UserGroup)) groups {
default {{{ return new Array(); }}}
};
[config, navigation] name(TimePeriod) period (PeriodRaw) {
navigate {{{
return TimePeriod::GetByName(GetPeriodRaw());
}}}
};
[config] array(Value) types;
[no_user_view, no_user_modify] int type_filter_real (TypeFilter);
[config] array(Value) states;
[no_user_view, no_user_modify] int state_filter_real (StateFilter);
[config] String email;
[config] String pager;
[config] bool enable_notifications {
default {{{ return true; }}}
};
[state] Timestamp last_notification;
2013-10-26 09:41:45 +02:00
};
}