Class NotificationAudience
java.lang.Object
com.kingsrook.qqq.backend.core.alerts.NotificationAudience
- All Implemented Interfaces:
Serializable
Who a user notification is for. Construct these with the static factories;
an alerts implementation resolves them to user ids when it sends:
- ALL_USERS: every active user.
- ROLES: users with any of the named roles (values are role names).
- PERMISSION: users holding one permission (values has one entry).
- USERS: the named user ids, as given.
Immutable. Null and blank values are dropped.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic NotificationAudienceallUsers()Every active user.booleangetType()Getter for typeGetter for values (unmodifiable; empty for ALL_USERS)inthashCode()static NotificationAudiencepermission(String permissionName) Users holding the named permission.static NotificationAudienceUsers with any of the named roles.toString()static NotificationAudienceOne user.static NotificationAudienceThe named user ids.
-
Method Details
-
allUsers
Every active user. -
roles
Users with any of the named roles. -
permission
Users holding the named permission. -
users
The named user ids. -
user
One user. -
getType
Getter for type -
getValues
-
equals
-
hashCode
-
toString
-