Helper. */
| 199 | |
| 200 | /* Helper. */ |
| 201 | int CompatUtility::GetCheckableNotificationStateFilter(const Checkable::Ptr& checkable) |
| 202 | { |
| 203 | unsigned long notification_state_filter = 0; |
| 204 | |
| 205 | for (const Notification::Ptr& notification : checkable->GetNotifications()) { |
| 206 | ObjectLock olock(notification); |
| 207 | |
| 208 | notification_state_filter |= notification->GetStateFilter(); |
| 209 | } |
| 210 | |
| 211 | return notification_state_filter; |
| 212 | } |
| 213 | |
| 214 | /* Used in DB IDO and Livestatus. */ |
| 215 | std::set<User::Ptr> CompatUtility::GetCheckableNotificationUsers(const Checkable::Ptr& checkable) |
nothing calls this directly
no test coverage detected