MCPcopy Create free account
hub / github.com/Icinga/icinga2 / GetUsers

Method GetUsers

lib/icinga/notification.cpp:169–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169std::set<User::Ptr> Notification::GetUsers() const
170{
171 std::set<User::Ptr> result;
172
173 Array::Ptr users = GetUsersRaw();
174
175 if (users) {
176 ObjectLock olock(users);
177
178 for (String name : users) {
179 User::Ptr user = User::GetByName(name);
180
181 if (!user)
182 continue;
183
184 result.insert(user);
185 }
186 }
187
188 return result;
189}
190
191std::set<UserGroup::Ptr> Notification::GetUserGroups() const
192{

Callers 2

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected