Package de.xima.fc.notification.mgmt
Class NotificationAssignee
- java.lang.Object
-
- de.xima.fc.notification.mgmt.NotificationAssignee
-
- All Implemented Interfaces:
Serializable
public final class NotificationAssignee extends Object implements Serializable
Defines the assignee of a notification subscription, acting as an ID.- Since:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotificationAssignee(NotificationAssigneeType type, Serializable id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NotificationAssigneeemail(EmailAddress email)booleanequals(Object o)SerializablegetId()The ID of the user if the assignee type is USER; null otherwise.NotificationAssigneeTypegetType()The type of the assignee (e.g., SYSTEM, USER).inthashCode()StringtoString()static NotificationAssigneeuser(Long userId)Creates a new instance ofNotificationAssigneefor a user with the specified ID.
-
-
-
Constructor Detail
-
NotificationAssignee
public NotificationAssignee(NotificationAssigneeType type, Serializable id)
-
-
Method Detail
-
user
public static NotificationAssignee user(Long userId)
Creates a new instance ofNotificationAssigneefor a user with the specified ID.- Parameters:
userId- The ID of the user.- Returns:
- A new instance of
NotificationAssigneefor the specified user.
-
email
public static NotificationAssignee email(EmailAddress email)
-
getType
public NotificationAssigneeType getType()
The type of the assignee (e.g., SYSTEM, USER).
-
getId
public Serializable getId()
The ID of the user if the assignee type is USER; null otherwise.
-
-