com.attask.common.constants
Enum CustomEnumType

java.lang.Object
  extended by java.lang.Enum<CustomEnumType>
      extended by com.attask.common.constants.CustomEnumType
All Implemented Interfaces:
Bitmappable, BitmappableJavaEnum, java.io.Serializable, java.lang.Comparable<CustomEnumType>

public enum CustomEnumType
extends java.lang.Enum<CustomEnumType>
implements BitmappableJavaEnum


Enum Constant Summary
PRIORITY_OPTASK
           
PRIORITY_PROJ
           
PRIORITY_TASK
           
SEVERITY_OPTASK
           
STATUS_OPTASK
           
STATUS_PROJ
           
STATUS_TASK
           
TYPE_OPTASK
           
 
Method Summary
 java.util.List<com.attask.biz.CustomEnumable> getAllEnums(com.attask.biz.CustomEnumAttachable customEnumAttachable)
           
 java.util.List<com.attask.biz.CustomEnumable> getAllEnums(com.attask.biz.CustomEnumAttachable customEnumAttachable, boolean includeHidden, java.lang.Object includeHiddenKey)
           
 java.util.List<com.attask.biz.CustomEnumable> getAllEnums(com.attask.biz.CustomEnumAttachable customEnumAttachable, java.lang.String subObjCode, boolean includeHidden, java.lang.Object includeHiddenKey)
           
 java.util.List<com.attask.biz.CustomEnumable> getAllEquatesWith(com.attask.biz.CustomEnumAttachable customEnumAttachable, java.lang.String value)
          Returns a collection of Enums, who's equatesWith flag match the value passed in.
 java.util.List<com.attask.biz.CustomEnumable> getAllEquatesWith(com.attask.biz.CustomEnumAttachable customEnumAttachable, java.lang.String value, boolean includeHidden, java.lang.Object includeHiddenKey)
           
 java.lang.Class<? extends Enum> getBackingEnum()
           
 java.lang.Long getBitValue()
           
 long getBitValueAsLong()
           
static com.attask.biz.CustomEnumOrder getCustomEnumOrder(com.attask.biz.CustomEnumable customEnumable, java.lang.String subObjCode)
           
static CustomEnumType getCustomEnumType(java.lang.Class backingEnumClass, java.lang.String objCode)
           
static CustomEnumType getCustomEnumTypeStatusByEnumObjCode(java.lang.String enumObjCode)
           
 com.attask.biz.CustomEnumable getDefaultEnum()
           
 com.attask.biz.CustomEnumable getDefaultEnumable(com.attask.biz.CustomEnumAttachable customEnumAttachable)
          If it is status, return from Preference no matter what, else return custom enum primary if custom enum is enabled, else return default enum
 java.util.List<com.attask.biz.CustomEnumable> getDefaultEnumables()
           
protected static java.util.Comparator<com.attask.biz.CustomEnumable> getDisplayOrderComparator(com.attask.biz.CustomEnumAttachable customEnumAttachable, CustomEnumType type, java.lang.String subObjCode)
           
 com.attask.biz.CustomEnumable getEnumable(com.attask.biz.CustomEnumAttachable customEnumAttachable, java.lang.Object key)
           
 com.attask.biz.CustomEnumable getEnumable(com.attask.biz.CustomEnumAttachable customEnumAttachable, java.lang.String val)
           
 java.lang.String getEnumObjCode()
           
static java.util.List<CustomEnumType> getEnums(com.attask.util.LongBitMap val)
           
static java.lang.String[] getEnumsAsStringArray(com.attask.util.LongBitMap val)
           
 java.util.List<com.attask.biz.CustomEnumable> getExtendableEnumables()
           
 java.lang.String getFieldName()
           
static com.attask.util.LongBitMap getLongBitMap(java.lang.String[] vals)
           
 java.lang.String getMessageKey()
           
 java.lang.String getPreferenceParamName()
           
 com.attask.biz.CustomEnumable getPrimaryEquatesWith(com.attask.biz.CustomEnumAttachable customEnumAttachable, java.lang.String equatesWith)
           
 java.util.List<com.attask.biz.CustomEnumable> getSubObjCodeEnumables()
           
 java.lang.String getSubObjCodeMethodCall()
           
 boolean getUseStringKey()
           
 java.util.List<com.attask.biz.CustomEnumable> invokeDefaultSubObjCodeMethod(java.lang.String parameter)
           
static boolean isDefaultEnumsOnly(CustomEnumType cet)
           
 boolean isDefaultKey(java.lang.Object key)
           
 boolean isHasSubObjcode()
           
static boolean isPriorityEnum(CustomEnumType cte)
           
static boolean isSeverityEnum(CustomEnumType cte)
           
static boolean isStatusEnum(CustomEnumType cte)
           
static boolean isTypeEnum(CustomEnumType cet)
           
static CustomEnumType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CustomEnumType[] 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
 
Methods inherited from interface com.attask.common.constants.BitmappableJavaEnum
name
 

Enum Constant Detail

PRIORITY_OPTASK

public static final CustomEnumType PRIORITY_OPTASK

PRIORITY_PROJ

public static final CustomEnumType PRIORITY_PROJ

PRIORITY_TASK

public static final CustomEnumType PRIORITY_TASK

SEVERITY_OPTASK

public static final CustomEnumType SEVERITY_OPTASK

STATUS_OPTASK

public static final CustomEnumType STATUS_OPTASK

STATUS_PROJ

public static final CustomEnumType STATUS_PROJ

STATUS_TASK

public static final CustomEnumType STATUS_TASK

TYPE_OPTASK

public static final CustomEnumType TYPE_OPTASK
Method Detail

values

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

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

valueOf

public static CustomEnumType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getBackingEnum

public java.lang.Class<? extends Enum> getBackingEnum()

getDefaultEnumables

public java.util.List<com.attask.biz.CustomEnumable> getDefaultEnumables()

getExtendableEnumables

public java.util.List<com.attask.biz.CustomEnumable> getExtendableEnumables()

getDefaultEnum

public com.attask.biz.CustomEnumable getDefaultEnum()

getSubObjCodeEnumables

public java.util.List<com.attask.biz.CustomEnumable> getSubObjCodeEnumables()

getUseStringKey

public boolean getUseStringKey()

getEnumObjCode

public java.lang.String getEnumObjCode()

getBitValue

public java.lang.Long getBitValue()
Specified by:
getBitValue in interface Bitmappable

getBitValueAsLong

public long getBitValueAsLong()
Specified by:
getBitValueAsLong in interface Bitmappable

getMessageKey

public java.lang.String getMessageKey()

getFieldName

public java.lang.String getFieldName()

getPreferenceParamName

public java.lang.String getPreferenceParamName()

isHasSubObjcode

public boolean isHasSubObjcode()

getSubObjCodeMethodCall

public java.lang.String getSubObjCodeMethodCall()

invokeDefaultSubObjCodeMethod

public java.util.List<com.attask.biz.CustomEnumable> invokeDefaultSubObjCodeMethod(java.lang.String parameter)

isDefaultKey

public boolean isDefaultKey(java.lang.Object key)

getAllEnums

public java.util.List<com.attask.biz.CustomEnumable> getAllEnums(com.attask.biz.CustomEnumAttachable customEnumAttachable)

getAllEnums

public java.util.List<com.attask.biz.CustomEnumable> getAllEnums(com.attask.biz.CustomEnumAttachable customEnumAttachable,
                                                                 boolean includeHidden,
                                                                 java.lang.Object includeHiddenKey)

getAllEnums

public java.util.List<com.attask.biz.CustomEnumable> getAllEnums(com.attask.biz.CustomEnumAttachable customEnumAttachable,
                                                                 java.lang.String subObjCode,
                                                                 boolean includeHidden,
                                                                 java.lang.Object includeHiddenKey)

getDefaultEnumable

public com.attask.biz.CustomEnumable getDefaultEnumable(com.attask.biz.CustomEnumAttachable customEnumAttachable)
If it is status, return from Preference no matter what, else return custom enum primary if custom enum is enabled, else return default enum

Parameters:
customEnumAttachable -
Returns:

getEnumable

public com.attask.biz.CustomEnumable getEnumable(com.attask.biz.CustomEnumAttachable customEnumAttachable,
                                                 java.lang.String val)

getEnumable

public com.attask.biz.CustomEnumable getEnumable(com.attask.biz.CustomEnumAttachable customEnumAttachable,
                                                 java.lang.Object key)

getPrimaryEquatesWith

public com.attask.biz.CustomEnumable getPrimaryEquatesWith(com.attask.biz.CustomEnumAttachable customEnumAttachable,
                                                           java.lang.String equatesWith)

getAllEquatesWith

public java.util.List<com.attask.biz.CustomEnumable> getAllEquatesWith(com.attask.biz.CustomEnumAttachable customEnumAttachable,
                                                                       java.lang.String value)
Returns a collection of Enums, who's equatesWith flag match the value passed in.

Parameters:
customEnumAttachable - customer object
value - that is used to match the custom enummable's equatesWith.
Returns:
List

getAllEquatesWith

public java.util.List<com.attask.biz.CustomEnumable> getAllEquatesWith(com.attask.biz.CustomEnumAttachable customEnumAttachable,
                                                                       java.lang.String value,
                                                                       boolean includeHidden,
                                                                       java.lang.Object includeHiddenKey)

getLongBitMap

public static com.attask.util.LongBitMap getLongBitMap(java.lang.String[] vals)

getEnums

public static java.util.List<CustomEnumType> getEnums(com.attask.util.LongBitMap val)

getEnumsAsStringArray

public static java.lang.String[] getEnumsAsStringArray(com.attask.util.LongBitMap val)

isPriorityEnum

public static boolean isPriorityEnum(CustomEnumType cte)

isSeverityEnum

public static boolean isSeverityEnum(CustomEnumType cte)

isStatusEnum

public static boolean isStatusEnum(CustomEnumType cte)

isTypeEnum

public static boolean isTypeEnum(CustomEnumType cet)

isDefaultEnumsOnly

public static boolean isDefaultEnumsOnly(CustomEnumType cet)

getCustomEnumType

public static CustomEnumType getCustomEnumType(java.lang.Class backingEnumClass,
                                               java.lang.String objCode)

getDisplayOrderComparator

protected static java.util.Comparator<com.attask.biz.CustomEnumable> getDisplayOrderComparator(com.attask.biz.CustomEnumAttachable customEnumAttachable,
                                                                                               CustomEnumType type,
                                                                                               java.lang.String subObjCode)

getCustomEnumOrder

public static com.attask.biz.CustomEnumOrder getCustomEnumOrder(com.attask.biz.CustomEnumable customEnumable,
                                                                java.lang.String subObjCode)

getCustomEnumTypeStatusByEnumObjCode

public static CustomEnumType getCustomEnumTypeStatusByEnumObjCode(java.lang.String enumObjCode)


Copyright © 2006-2009 AtTask, Inc. All Rights Reserved.