]> granicus.if.org Git - icinga2/blob - lib/icinga/user.ti
Merge branch 'feature/property-fix-4973' into next
[icinga2] / lib / icinga / user.ti
1 #include "base/dynamicobject.h"
2
3 namespace icinga
4 {
5
6 class User : DynamicObject
7 {
8         [config] String display_name {
9                 get {{{
10                         if (m_DisplayName.IsEmpty())
11                                 return GetName();
12                         else
13                                 return m_DisplayName;
14                 }}}
15         };
16         [config] Dictionary::Ptr macros;
17         [config] Array::Ptr groups;
18         [config] String notification_period (NotificationPeriodRaw);
19         [config] int notification_type_filter {
20                 default {{{ return ~(int)0; }}}
21         };
22         [config] int notification_state_filter {
23                 default {{{ return ~(int)0; }}}
24         };
25         [state] bool enable_notifications;
26         [state] double last_notification;
27 };
28
29 }