org.gcube.portal.databook.shared
Enum NotificationType

java.lang.Object
  extended by java.lang.Enum<NotificationType>
      extended by org.gcube.portal.databook.shared.NotificationType
All Implemented Interfaces:
Serializable, Comparable<NotificationType>

public enum NotificationType
extends Enum<NotificationType>

Version:
1.0 July 6th 2012
Author:
Massimiliano Assante ISTI-CNR

Enum Constant Summary
COMMENT
          use to notify a user that commented on a feed (Not his) that someone commented too
GENERIC
          generic notification
JOB_COMPLETED_NOK
          use to notify a user he got a job completed not ok
JOB_COMPLETED_OK
          use to notify a user he got a job completed ok
LIKE
          use to notify a user he got one of his feed liked
MESSAGE
          use to notify a user he got a message
OWN_COMMENT
          use to notify a user he got one of his feed commented
REQUEST_CONNECTION
          use to notify a user he got a connections request
WP_FOLDER_ADDEDUSER
          use to notify a user that a new user was added in on of his workspace shared folder
WP_FOLDER_REMOVEDUSER
          use to notify a user that an existing user was removed from one of his workspace shared folder
WP_FOLDER_SHARE
          use to notify a user he got a workspace folder shared
WP_ITEM_DELETE
          use to notify a user he got a workspace item deleted from one of his workspace shared folder
WP_ITEM_NEW
          use to notify a user he got a workspace item new in some of his workspace shared folder
WP_ITEM_UPDATED
          use to notify a user he got a workspace item updated from one of his workspace shared folder
 
Method Summary
static NotificationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NotificationType[] 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

WP_FOLDER_SHARE

public static final NotificationType WP_FOLDER_SHARE
use to notify a user he got a workspace folder shared


WP_FOLDER_ADDEDUSER

public static final NotificationType WP_FOLDER_ADDEDUSER
use to notify a user that a new user was added in on of his workspace shared folder


WP_FOLDER_REMOVEDUSER

public static final NotificationType WP_FOLDER_REMOVEDUSER
use to notify a user that an existing user was removed from one of his workspace shared folder


WP_ITEM_DELETE

public static final NotificationType WP_ITEM_DELETE
use to notify a user he got a workspace item deleted from one of his workspace shared folder


WP_ITEM_UPDATED

public static final NotificationType WP_ITEM_UPDATED
use to notify a user he got a workspace item updated from one of his workspace shared folder


WP_ITEM_NEW

public static final NotificationType WP_ITEM_NEW
use to notify a user he got a workspace item new in some of his workspace shared folder


OWN_COMMENT

public static final NotificationType OWN_COMMENT
use to notify a user he got one of his feed commented


COMMENT

public static final NotificationType COMMENT
use to notify a user that commented on a feed (Not his) that someone commented too


LIKE

public static final NotificationType LIKE
use to notify a user he got one of his feed liked


MESSAGE

public static final NotificationType MESSAGE
use to notify a user he got a message


REQUEST_CONNECTION

public static final NotificationType REQUEST_CONNECTION
use to notify a user he got a connections request


JOB_COMPLETED_OK

public static final NotificationType JOB_COMPLETED_OK
use to notify a user he got a job completed ok


JOB_COMPLETED_NOK

public static final NotificationType JOB_COMPLETED_NOK
use to notify a user he got a job completed not ok


GENERIC

public static final NotificationType GENERIC
generic notification

Method Detail

values

public static NotificationType[] 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 (NotificationType c : NotificationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NotificationType 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


Copyright © 2013. All Rights Reserved.