]> granicus.if.org Git - icinga2/blob - lib/db_ido/usergroupdbobject.cpp
Merge pull request #7185 from Icinga/bugfix/gelfwriter-wrong-log-facility
[icinga2] / lib / db_ido / usergroupdbobject.cpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #include "db_ido/usergroupdbobject.hpp"
4 #include "db_ido/dbtype.hpp"
5 #include "db_ido/dbvalue.hpp"
6 #include "base/objectlock.hpp"
7 #include "base/initialize.hpp"
8 #include "base/configtype.hpp"
9
10 using namespace icinga;
11
12 REGISTER_DBTYPE(UserGroup, "contactgroup", DbObjectTypeContactGroup, "contactgroup_object_id", UserGroupDbObject);
13
14 UserGroupDbObject::UserGroupDbObject(const DbType::Ptr& type, const String& name1, const String& name2)
15         : DbObject(type, name1, name2)
16 { }
17
18 Dictionary::Ptr UserGroupDbObject::GetConfigFields() const
19 {
20         UserGroup::Ptr group = static_pointer_cast<UserGroup>(GetObject());
21
22         return new Dictionary({
23                 { "alias", group->GetDisplayName() }
24         });
25 }
26
27 Dictionary::Ptr UserGroupDbObject::GetStatusFields() const
28 {
29         return nullptr;
30 }