Enum NotificationAssigneeType
- All Implemented Interfaces:
Serializable, Comparable<NotificationAssigneeType>
The type of assignee.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends Serializable> The class of the assignee ID.booleanisChannelSupported(NotificationChannelType channelType) Checks if the given channel type is supported by this assignee type.booleanChecks if this assignee type requires an assignee ID.static NotificationAssigneeTypeReturns the enum constant of this type with the specified name.static NotificationAssigneeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USER
Assigned to a user via their user ID. -
EMAIL
Deprecated.Not yet implemented. It is not recommended to use this type until it is fully supported.Assigned to an email address. It is planned for this type to allow for email notifications without a user account.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
isChannelSupported
Checks if the given channel type is supported by this assignee type.- Parameters:
channelType- The channel type to check.- Returns:
- true if the channel type is supported, false otherwise.
-
isNeedsAssigneeId
public boolean isNeedsAssigneeId()Checks if this assignee type requires an assignee ID.- Returns:
- true if an assignee ID is required, false otherwise.
-
getIdClass
The class of the assignee ID. If null, no ID is required.
-