com.stratelia.silverpeas.notificationManager.constant
Enum NotifChannel

java.lang.Object
  extended by java.lang.Enum<NotifChannel>
      extended by com.stratelia.silverpeas.notificationManager.constant.NotifChannel
All Implemented Interfaces:
Serializable, Comparable<NotifChannel>

public enum NotifChannel
extends Enum<NotifChannel>

Author:
Yohann Chastagnier

Enum Constant Summary
POPUP
           
REMOVE
           
SERVER
           
SILVERMAIL
           
SMS
           
SMTP
           
 
Method Summary
static NotifChannel decode(Integer id)
           
 int getId()
           
static Collection<Integer> toIds(Collection<NotifChannel> notifChannels)
          Transforming the given collection into a collection of simple type
static NotifChannel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NotifChannel[] 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

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
Method Detail

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.