|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<NotificationTemplate> com.atlassian.confluence.mail.notification.listeners.NotificationTemplate
public enum NotificationTemplate
Used to decide whether to use the Soy-based, ADG-styled notification templates or fallback to the Velocity-based, legacy templates.
This class is for internal use only. It can be removed any time once all notification templates have been transformed.
Enum Constant Summary | |
---|---|
ADG
|
Method Summary | |
---|---|
boolean |
isEnabled(java.lang.String templateIdentifier)
Check if a particular ADG template should be used. |
static NotificationTemplate |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NotificationTemplate[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final NotificationTemplate ADG
Method Detail |
---|
public static NotificationTemplate[] values()
for (NotificationTemplate c : NotificationTemplate.values()) System.out.println(c);
public static NotificationTemplate valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic boolean isEnabled(java.lang.String templateIdentifier)
templateIdentifier
- an identifier for a specific template, e.g. page.create
or comment.remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |