com.stratelia.silverpeas.notificationManager.constant
Enum NotifChannel
java.lang.Object
java.lang.Enum<NotifChannel>
com.stratelia.silverpeas.notificationManager.constant.NotifChannel
- All Implemented Interfaces:
- Serializable, Comparable<NotifChannel>
public enum NotifChannel
- extends Enum<NotifChannel>
- Author:
- Yohann Chastagnier
SMTP
public static final NotifChannel SMTP
SMS
public static final NotifChannel SMS
POPUP
public static final NotifChannel POPUP
SILVERMAIL
public static final NotifChannel SILVERMAIL
REMOVE
public static final NotifChannel REMOVE
SERVER
public static final NotifChannel SERVER
values
public static NotifChannel[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (NotifChannel c : NotifChannel.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static NotifChannel valueOf(String name)
- 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 name
NullPointerException
- if the argument is null
getId
public int getId()
decode
public static NotifChannel decode(Integer id)
toIds
public static Collection<Integer> toIds(Collection<NotifChannel> notifChannels)
- Transforming the given collection into a collection of simple type
- Parameters:
notifChannels
-
- Returns:
Copyright © 2016 Silverpeas. All Rights Reserved.