org.itracker.services.util
Class NotificationUtilities

java.lang.Object
  extended by org.itracker.services.util.NotificationUtilities

public class NotificationUtilities
extends Object


Field Summary
static int ROLE_ANY
          Deprecated. use enum NotificationUtilities.Role.ANY instead
static int ROLE_CO
          Deprecated. use enum NotificationUtilities.Role.CO instead
static int ROLE_CONTRIBUTER
          Deprecated. use enum NotificationUtilities.Role.CONTRIBUTOR instead
static int ROLE_CREATOR
          Deprecated. use enum NotificationUtilities.Role.CREATOR instead
static int ROLE_IP
          Deprecated. use enum NotificationUtilities.Role.IP instead
static int ROLE_OWNER
          Deprecated. use enum NotificationUtilities.Role.OWNER instead
static int ROLE_PM
          Deprecated. use enum NotificationUtilities.Role.PM instead
static int ROLE_PO
          Deprecated. use enum NotificationUtilities.Role.PO instead
static int ROLE_QA
          Deprecated. use enum NotificationUtilities.Role.QA instead
static int ROLE_VO
          Deprecated. use enum NotificationUtilities.Role.VO instead
static int TYPE_ASSIGNED
          Deprecated. use enum NotificationUtilities.Type.ASSIGNED instead
static int TYPE_CLOSED
          Deprecated. use enum NotificationUtilities.Type.CLOSED instead
static int TYPE_CREATED
          Deprecated. use enum NotificationUtilities.Type.CREATED instead
static int TYPE_ISSUE_REMINDER
          Deprecated. use enum NotificationUtilities.Type.ISSUE_REMINDER instead
static int TYPE_SELF_REGISTER
          Deprecated. use enum NotificationUtilities.Type.SELF_REGISTER instead
static int TYPE_UPDATED
          Deprecated. use enum NotificationUtilities.Type.UPDATED instead
 
Constructor Summary
NotificationUtilities()
           
 
Method Summary
static String getRoleName(int value)
          Deprecated.  
static String getRoleName(int value, Locale locale)
          Deprecated.  
static String getRoleName(Notification.Role role)
           
static String getRoleName(Notification.Role role, Locale locale)
           
static HashMap<Notification.Role,String> getRoleNames()
          Deprecated. prefer direct use of Role enumeration
static HashMap<Notification.Role,String> getRoleNames(Locale locale)
           
static String getTypeName(int value)
          Deprecated.  
static String getTypeName(int value, Locale locale)
          Deprecated.  
static Map<User,Set<Notification.Role>> mappedRoles(List<Notification> notifications)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROLE_ANY

public static final int ROLE_ANY
Deprecated. use enum NotificationUtilities.Role.ANY instead

ROLE_CREATOR

public static final int ROLE_CREATOR
Deprecated. use enum NotificationUtilities.Role.CREATOR instead

ROLE_OWNER

public static final int ROLE_OWNER
Deprecated. use enum NotificationUtilities.Role.OWNER instead

ROLE_CONTRIBUTER

public static final int ROLE_CONTRIBUTER
Deprecated. use enum NotificationUtilities.Role.CONTRIBUTOR instead

ROLE_QA

public static final int ROLE_QA
Deprecated. use enum NotificationUtilities.Role.QA instead

ROLE_PM

public static final int ROLE_PM
Deprecated. use enum NotificationUtilities.Role.PM instead

ROLE_PO

public static final int ROLE_PO
Deprecated. use enum NotificationUtilities.Role.PO instead

ROLE_CO

public static final int ROLE_CO
Deprecated. use enum NotificationUtilities.Role.CO instead

ROLE_VO

public static final int ROLE_VO
Deprecated. use enum NotificationUtilities.Role.VO instead

ROLE_IP

public static final int ROLE_IP
Deprecated. use enum NotificationUtilities.Role.IP instead

TYPE_CREATED

public static final int TYPE_CREATED
Deprecated. use enum NotificationUtilities.Type.CREATED instead

TYPE_UPDATED

public static final int TYPE_UPDATED
Deprecated. use enum NotificationUtilities.Type.UPDATED instead

TYPE_ASSIGNED

public static final int TYPE_ASSIGNED
Deprecated. use enum NotificationUtilities.Type.ASSIGNED instead

TYPE_CLOSED

public static final int TYPE_CLOSED
Deprecated. use enum NotificationUtilities.Type.CLOSED instead

TYPE_SELF_REGISTER

public static final int TYPE_SELF_REGISTER
Deprecated. use enum NotificationUtilities.Type.SELF_REGISTER instead

TYPE_ISSUE_REMINDER

public static final int TYPE_ISSUE_REMINDER
Deprecated. use enum NotificationUtilities.Type.ISSUE_REMINDER instead
Constructor Detail

NotificationUtilities

public NotificationUtilities()
Method Detail

getRoleName

public static String getRoleName(int value)
Deprecated. 

Parameters:
value -
Returns:

getRoleName

public static String getRoleName(int value,
                                 Locale locale)
Deprecated. 

Parameters:
value -
locale -
Returns:

getRoleName

public static String getRoleName(Notification.Role role)

getRoleName

public static String getRoleName(Notification.Role role,
                                 Locale locale)

getRoleNames

public static HashMap<Notification.Role,String> getRoleNames()
Deprecated. prefer direct use of Role enumeration

Returns:

getRoleNames

public static HashMap<Notification.Role,String> getRoleNames(Locale locale)

getTypeName

public static String getTypeName(int value)
Deprecated. 

Parameters:
value -
Returns:

getTypeName

public static String getTypeName(int value,
                                 Locale locale)
Deprecated. 

Parameters:
value -
locale -
Returns:

mappedRoles

public static final Map<User,Set<Notification.Role>> mappedRoles(List<Notification> notifications)


Copyright © 2002-2012 itracker. All Rights Reserved.