public abstract class NotificationDefinition extends Object
Modifier and Type | Class and Description |
---|---|
static class |
NotificationDefinition.NotificationTypes
Possible support template types.
|
Constructor and Description |
---|
NotificationDefinition(String id)
Constructor.
|
NotificationDefinition(String id,
String messageKey)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getId() |
String |
getMessageKeyForMessage(NotificationDefinition.NotificationTypes type)
Method to get the message key, which can be used for the message.
|
String |
getMessageKeyForName() |
String |
getMessageKeyForSubject(NotificationDefinition.NotificationTypes type)
Method to get the message key, which can be used for a title or subject.
|
int |
hashCode() |
public NotificationDefinition(String id)
id
- Unique id for this definition.public NotificationDefinition(String id, String messageKey)
id
- Unique id for this definition.messageKey
- Message key for a readable name of this definition. If this is null a default key
will be generated (user.profile.notification.definitions. + id).public String getId()
public String getMessageKeyForMessage(NotificationDefinition.NotificationTypes type)
type
- Type of notification.public String getMessageKeyForName()
public String getMessageKeyForSubject(NotificationDefinition.NotificationTypes type)
type
- Type of notification.Copyright © 2019 Communote team. All rights reserved.