org.tigris.scarab.notification
Class ActivityType

java.lang.Object
  extended byorg.tigris.scarab.notification.ActivityType

public class ActivityType
extends java.lang.Object


Field Summary
static ActivityType ATTACHMENT_CREATED
           
static ActivityType ATTACHMENT_REMOVED
           
static ActivityType ATTRIBUTE_CHANGED
           
(package private)  java.lang.String code
           
static ActivityType COMMENT_ADDED
           
static ActivityType COMMENT_CHANGED
           
static ActivityType DEPENDENCY_CHANGED
           
static ActivityType DEPENDENCY_CREATED
           
static ActivityType DEPENDENCY_DELETED
           
static ActivityType ISSUE_COPIED
           
static ActivityType ISSUE_CREATED
           
static ActivityType ISSUE_DELETED
           
static ActivityType ISSUE_MOVED
           
(package private)  java.lang.String resourceId
           
static ActivityType URL_ADDED
           
static ActivityType URL_CHANGED
           
static ActivityType URL_DELETED
           
static ActivityType URL_DESC_CHANGED
           
static ActivityType USER_ATTRIBUTE_CHANGED
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares two ActivityType objects with their code attribute.
static ActivityType getActivityType(java.lang.String code)
          Returns the activitytype constant given its database value.
static java.util.Set getActivityTypeCodes()
          Return an iterator over all available ActivityType codes.
 java.lang.String getCode()
           
static java.lang.String getResourceId(java.lang.String code)
          Return the resource id for the given activity code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code

java.lang.String code

resourceId

java.lang.String resourceId

ISSUE_CREATED

public static final ActivityType ISSUE_CREATED

ISSUE_MOVED

public static final ActivityType ISSUE_MOVED

ISSUE_COPIED

public static final ActivityType ISSUE_COPIED

ISSUE_DELETED

public static final ActivityType ISSUE_DELETED

ATTRIBUTE_CHANGED

public static final ActivityType ATTRIBUTE_CHANGED

USER_ATTRIBUTE_CHANGED

public static final ActivityType USER_ATTRIBUTE_CHANGED

COMMENT_ADDED

public static final ActivityType COMMENT_ADDED

COMMENT_CHANGED

public static final ActivityType COMMENT_CHANGED

URL_ADDED

public static final ActivityType URL_ADDED

URL_CHANGED

public static final ActivityType URL_CHANGED

URL_DESC_CHANGED

public static final ActivityType URL_DESC_CHANGED

URL_DELETED

public static final ActivityType URL_DELETED

ATTACHMENT_CREATED

public static final ActivityType ATTACHMENT_CREATED

ATTACHMENT_REMOVED

public static final ActivityType ATTACHMENT_REMOVED

DEPENDENCY_CREATED

public static final ActivityType DEPENDENCY_CREATED

DEPENDENCY_CHANGED

public static final ActivityType DEPENDENCY_CHANGED

DEPENDENCY_DELETED

public static final ActivityType DEPENDENCY_DELETED
Method Detail

getActivityTypeCodes

public static java.util.Set getActivityTypeCodes()
Return an iterator over all available ActivityType codes.

Returns:

getActivityType

public static ActivityType getActivityType(java.lang.String code)
Returns the activitytype constant given its database value.

Parameters:
code - The internal code of the type (the value that gets stored in database)
Returns:
A constant AcivityType matching the given code

getCode

public java.lang.String getCode()

equals

public boolean equals(java.lang.Object obj)
Compares two ActivityType objects with their code attribute.


getResourceId

public static java.lang.String getResourceId(java.lang.String code)
Return the resource id for the given activity code. Note[HD]: Unfortunately the name convention for resources is different from the name convention used in ActivityType for activity codes. We should switch to the convention for resources here. Thus we can avoid this remapping from code to resource id.

Parameters:
code -
Returns:


Copyright © 2000-2004 Tigris.org. All Rights Reserved.