com.ptc.netmarkets.projmgmt
Class NmProjMgmtHelper

java.lang.Object
  extended bycom.ptc.netmarkets.projmgmt.NmProjMgmtHelper
All Implemented Interfaces:
Externalizable, Serializable

public class NmProjMgmtHelper
extends Object
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static String ACTIVITY_HOLDER
           
static String ACTIVITY_HOLDER_LINK
           
static String ACTIVITY_HOLDER_VIEW
           
static String ASSIGNEES
          

Supported API: false
static String CATEGORY
          

Supported API: false
static String CATEGORY_VIEW
          

Supported API: false
private static String CLASSNAME
           
static String COST_PER_USE
          

Supported API: false
static String CURRENT_COST
          

Supported API: false
static String CURRENT_DURATION
           
static String DEADLINE
          

Supported API: false
static String DEADLINE_ORIG
           
static String DEADLINE_VIEW
           
static String DELIVERABLE
          

Supported API: false
static String DESCRIPTION
          

Supported API: false
static String DURATION
          

Supported API: false
static String EQUIPMENT_RESOURCE
          

Supported API: false
static String ESTIMATED_FINISH_DATE
          

Supported API: false
static String ESTIMATED_FINISH_ORIG
           
static long EXTERNALIZATION_VERSION_UID
           
static String FACILITY_RESOURCE
          

Supported API: false
static String FINISH_DATE
          

Supported API: false
static String FORCE_DEADLINE
          

Supported API: false
static String ID
           
static String IN_TIMELINE
          

Supported API: false
static String INFORMATION_RESOURCE
          

Supported API: false
static String INHERITED_DEADLINE
          

Supported API: false
static String IS_AUTO
           
static String IS_COMPLETED
           
static String IS_DEFINED
           
static String IS_MANUAL
           
static String LC_STATE
          

Supported API: false
static String MANAGER
          

Supported API: false
static String MANAGER_COMPLETION
          

Supported API: false
static String MANAGER_RED_STATUS
          

Supported API: false
static String MATERIAL_RESOURCE
          

Supported API: false
static String MAX_UNITS
          

Supported API: false
static String MAXIMUM_UTILIZATION
          

Supported API: false
static String MAXIMUM_UTILIZATION_DISPLAY
           
static String MILESTONE
          

Supported API: false
static String MILESTONES
           
static String MILESTONES_LINK
           
private static String MISC_RESOURCE
           
static String MODIFY_ACTUAL_DATES
           
static String MODIFY_ACTUAL_DATES_UI
           
static boolean modifyActualDates
           
static boolean modifyActualDatesUI
           
static String NAME
          

Supported API: false
protected static long OLD_FORMAT_VERSION_UID
           
private static long ONE_DAY
           
private static long ONE_HOUR
           
static String OVERTIME_RATE
          

Supported API: false
static String OVERTIME_WORK
          

Supported API: false
static String OWNER
          

Supported API: false
static String OWNER_VIEW
           
static String PERCENT_COMPLETE
          

Supported API: false
static String PERCENT_UTILIZATION
          

Supported API: false
static String PERFORMED_WORK
          

Supported API: false
static String PERSON
          

Supported API: false
static String PERSON_RESOURCE
          

Supported API: false
static String PLANNED_START
          

Supported API: false
static String PLANNED_START_ORIG
           
static String PLANNED_START_VIEW
           
static String PREDECESSOR_LINKS
           
static String PREDECESSORS
          

Supported API: false
static String PRIORITY
           
static String PROJECT
          

Supported API: false
static String PROJECT_ACTIVITY
          

Supported API: false
static String PROJECT_PLAN
          

Supported API: false
static String PROJECT_PROXY
          

Supported API: false
static String PROJECT_RESOURCE
          

Supported API: false
private static String RESOURCE
           
static String RESOURCE_LABEL
          

Supported API: false
static String RESOURCE_TYPE
          

Supported API: false
static String RESOURCE_TYPE_VIEW
          

Supported API: false
static String RESTORE_ROLL_UP_FINISH
           
static String RESTORE_ROLL_UP_PERCENT
           
static String RESTORE_ROLL_UP_PERFORMED_WORK
           
static String RESTORE_ROLL_UP_STATUS
           
static String RESTORE_ROLL_UP_TOTAL_WORK
           
static String RISK
          

Supported API: false
static String RISK_DESCRIPTION
          

Supported API: false
static String RISK_VIEW
          

Supported API: false
static String ROLE
          

Supported API: false
static String ROLE_RESOURCE
          

Supported API: false
static String ROLE_VIEW
          

Supported API: false
static String ROLL_UP_FINISH
          

Supported API: false
static String ROLL_UP_PERCENT
          

Supported API: false
static String ROLL_UP_PERFORMED_WORK
           
static String ROLL_UP_STATUS
          

Supported API: false
static String ROLL_UP_TOTAL_WORK
           
static String SELECTED
          

Supported API: false
(package private) static long serialVersionUID
           
private static boolean SERVER
           
static NmProjMgmtService service
          

Supported API: false
static String STANDARD_RATE
          

Supported API: false
static String STANDARD_WORK
          

Supported API: false
static String START_DATE
          

Supported API: false
static String STATE
          

Supported API: false
static String STATE_VIEW
          

Supported API: false
static String STATE_VIEW_TEXT
           
private static Boolean STATIC_VIEW
           
static String STATUS
          

Supported API: false
static String STATUS_DESCRIPTION
          

Supported API: false
static String STATUS_VIEW
          

Supported API: false
static String SUB_PROJECT
          

Supported API: false
static String SUB_PROJECT_VIEW
          

Supported API: false
static String SUCCESSOR_LINKS
           
static String SUMMARY_ACTIVITY
          

Supported API: false
static String TARGET
          

Supported API: false
static String TARGET_OBJ
           
static String TIME_PAST_DEADLINE
          

Supported API: false
static String TIME_TO_DEADLINE
          

Supported API: false
static String TIME_TO_START
           
static String TOTAL_COST
          

Supported API: false
static String TOTAL_OVERTIME_WORK
          

Supported API: false
static String TOTAL_STANDARD_WORK
          

Supported API: false
static String TOTAL_WORK
          

Supported API: false
static String UPDATE_WORK_COMPUTE_PER_COMP
           
 
Constructor Summary
NmProjMgmtHelper()
           
 
Method Summary
private static void addParam(Hashtable params, String parameter, NmCommandBean cb)
          A small method to protected agains null
static boolean canModify(ExecutionObject eo, WTUser user)
          Return whether the user can modify the specified ExecutionObject.
static boolean canModify(ExecutionObject eo, WTUser user, WTContainerRef pc)
           
private static NmDeliverable createNmDeliverable(Deliverable deli)
           
private static NmDeliverable createNmDeliverable(Deliverable deli, boolean minimal)
           
private static NmMilestone createNmMilestone(Milestone mile)
           
private static NmMilestone createNmMilestone(Milestone mile, boolean minimal, boolean inList)
           
private static NmProjectActivity createNmProjectActivity(ProjectActivity act)
           
private static NmProjectActivity createNmProjectActivity(ProjectActivity act, boolean minimal, boolean inList)
           
private static NmProjectPlan createNmProjectPlan(ProjectPlan plan)
           
private static NmProjectPlan createNmProjectPlan(ProjectPlan plan, boolean minimal)
           
private static NmProjectProxy createNmProjectProxy(ProjectProxy proxy)
           
private static NmProjectProxy createNmProjectProxy(ProjectProxy proxy, boolean minimal, boolean inList)
           
static NmProjMgmtObject createNmProjMgmtObject(Persistable object)
          Returns a netmarkets object corresponding to a given Persistable.
static NmProjMgmtObject createNmProjMgmtObject(Persistable object, boolean useCache)
           
static NmProjMgmtObject createNmProjMgmtObject(Persistable object, boolean useCache, boolean minimal)
           
static NmProjMgmtObject createNmProjMgmtObject(Persistable object, boolean useCache, boolean minimal, boolean inList)
           
private static NmSummaryActivity createNmSummaryActivity(SummaryActivity summ)
           
private static NmSummaryActivity createNmSummaryActivity(SummaryActivity summ, boolean minimal, boolean inList)
           
static String formatDate(Date date)
          Return a string that can be used to display the specified date in the user's preferred locale.
static Object getActualFinish(ExecutionObject exObj, int dispType, Object def)
          Get the FINISH_DATE for the specified ExecutionObject.
static Object getActualFinish(ExecutionObject exObj, Object def)
          Get the FINISH_DATE for the specified ExecutionObject.
static Object getActualStart(ExecutionObject exObj, int dispType, Object def)
          Get the START_DATE for the specified ExecutionObject.
static Object getActualStart(ExecutionObject exObj, Object def)
          Get the START_DATE for the specified ExecutionObject.
private static String getBooleanString(boolean bool)
           
static NmHTMLTreeNode getCachedNode(int id, NmProjectPlanTreeModel model)
           
static NmHTMLTreeNode getCachedNode(NmOid oid, NmProjectPlanTreeModel model)
           
static Long getDaysBetween(Date time1, Date time2)
           
private static String getDaysString(TimeToElapse elapsed)
           
static NmDate getDeadline(ExecutionObject exObj)
          Get the DEADLINE for the specified ExecutionObject.
static NmDate getDeadline(ExecutionObject exObj, int dispType)
          Get the DEADLINE for the specified ExecutionObject.
static Object getDeadline(ExecutionObject exObj, int dispType, Object def)
          Get the DEADLINE for the specified ExecutionObject.
static Object getDeadline(ExecutionObject exObj, Object def)
          Get the DEADLINE for the specified ExecutionObject.
static Deliverable getDeliFromResultObj(Object nextObj)
           
static Object getDeliverableForColumn(Persistable p, Locale locale, String name)
           
static Object getDeliverableForColumn(Persistable p, Locale locale, String name, boolean hasDeli)
           
static Object getDeliverableForColumn(Persistable p, Locale locale, String name, FolderHierarchy.FolderEntryInfo fei, boolean isDeliverablePopulated)
           
static Object getDeliverableForColumn(Persistable p, Locale locale, String name, HashMap nodedelis)
           
static QueryResult getDeliverables(Persistable p)
           
static String getDetailsActionModel(NmOid nmOid)
           
static String getDuration(ExecutionObject execObj)
           
private static String getDurationToDate(ExecutionObject execObj)
           
static NmDate getEstimatedFinish(ExecutionObject exObj)
          Get the ESTIMATED_FINISH_DATE for the specified ExecutionObject.
static NmDate getEstimatedFinish(ExecutionObject exObj, int dispType)
          Get the ESTIMATED_FINISH_DATE for the specified ExecutionObject.
static Object getEstimatedFinish(ExecutionObject exObj, int dispType, Object def)
          Get the ESTIMATED_FINISH_DATE for the specified ExecutionObject.
static Object getEstimatedFinish(ExecutionObject exObj, Object def)
          Get the ESTIMATED_FINISH_DATE for the specified ExecutionObject.
private static ObjectIdentifier getId(Object obj)
           
static Object getNmDate(Date date, Object default_value)
          Returns a NmDate object given a time stamp.
static NmObject getNmObject(Persistable persistable)
          Constructs and returns netmarkets objects that corresponds to a database object.
private static NmUser getNmOwner(Ownable own_obj)
           
static String getOverrideRollupFlag(NmProjMgmtObject nm_obj, String attributeName, String ckBoxName)
          

Supported API: false
private static String getOwnerId(Ownable own_obj)
           
static Hashtable getParams(NmCommandBean cb)
          Extracts the parameters of a command bean in the form of a hashtable.
private static String getPercentComplete(ExecutionObject exec_obj)
           
static NmDate getPlannedStart(WfExecutionObject exObj, int dispType)
          Get the PLANNED_START for the specified WfExecutionObject.
static Object getPlannedStart(WfExecutionObject exObj, int dispType, Object def)
          Get the PLANNED_START for the specified WfExecutionObject.
static Object getPlannedStart(WfExecutionObject exObj, Object def)
          Get the PLANNED_START for the specified WfExecutionObject.
static String getPredecessorLinks(ProjectNode node)
           
static String getProjectNodeSelectURL(NmContextBean cb)
          

Supported API: false
static NmProjMgmtObject getProjMgmtObjectFromCache(Persistable p)
           
static NmProjMgmtObject getProjMgmtObjectFromCache(Persistable p, NmHTMLTableTree tree)
           
static String getResourceDisplayName(ProjectResource res, Locale loc)
           
static String getStatus(ExecutionObject exec_obj)
          Returns HTML text referencing the icon for the execution object's health status.
static String getString(Hashtable params, String key, String default_value)
          Retrieves String associated with given key in the hashtable passed as argument.
static String getSuccessorLinks(ProjectNode node)
           
static NmDate getTimeToStart(WfExecutionObject exObj)
          Get the TIME_TO_START for the specified WfExecutionObject.
static NmDate getTimeToStart(WfExecutionObject exObj, int dispType)
          Get the TIME_TO_START for the specified WfExecutionObject.
static Object getTimeToStart(WfExecutionObject exObj, int dispType, Object def)
          Get the TIME_TO_START for the specified WfExecutionObject.
static Object getTimeToStart(WfExecutionObject exObj, Object def)
          Get the TIME_TO_START for the specified WfExecutionObject.
private static String getViewLinkForProjectNode(ProjectNode node, boolean displayName)
           
private static String getViewLinkForProjectNode(ProjectNode node, boolean displayName, boolean displayID)
           
static boolean isStatic()
           
static boolean isSubscribed(ExecutionObject object, ProjectEventType event)
           
static int parsePercentComplete(String percent)
          

Supported API: false
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(NmProjMgmtHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static void refreshResources(NmProjectActivity nmAct)
           
private static void setEnumeratedType(NmProjMgmtObject nm_obj, String key, EnumeratedType enum_type, Object default_enum_type)
           
private static void setEnumeratedTypeView(NmProjMgmtObject nm_obj, String key, EnumeratedType enum_type, Object default_enum_type)
           
private static void setExecObjValues(NmProjMgmtObject nm_obj, ExecutionObject exec_obj)
           
private static void setObjectConfiguration(NmProjMgmtObject nm_obj, ExecutionObject exec_obj)
           
private static void setProjectNodeValues(NmProjMgmtObject nm_obj, ProjectNode projNode)
           
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

PROJECT_PLAN

public static final String PROJECT_PLAN


Supported API: false

See Also:
Constant Field Values

PROJECT_ACTIVITY

public static final String PROJECT_ACTIVITY


Supported API: false

See Also:
Constant Field Values

PROJECT_PROXY

public static final String PROJECT_PROXY


Supported API: false

See Also:
Constant Field Values

SUMMARY_ACTIVITY

public static final String SUMMARY_ACTIVITY


Supported API: false

See Also:
Constant Field Values

MILESTONE

public static final String MILESTONE


Supported API: false

See Also:
Constant Field Values

DELIVERABLE

public static final String DELIVERABLE


Supported API: false

See Also:
Constant Field Values

PROJECT_RESOURCE

public static final String PROJECT_RESOURCE


Supported API: false

See Also:
Constant Field Values

TARGET

public static final String TARGET


Supported API: false

See Also:
Constant Field Values

LC_STATE

public static final String LC_STATE


Supported API: false

See Also:
Constant Field Values

NAME

public static final String NAME


Supported API: false

See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION


Supported API: false

See Also:
Constant Field Values

OWNER

public static final String OWNER


Supported API: false

See Also:
Constant Field Values

ASSIGNEES

public static final String ASSIGNEES


Supported API: false

See Also:
Constant Field Values

CATEGORY

public static final String CATEGORY


Supported API: false

See Also:
Constant Field Values

DEADLINE

public static final String DEADLINE


Supported API: false

See Also:
Constant Field Values

INHERITED_DEADLINE

public static final String INHERITED_DEADLINE


Supported API: false

See Also:
Constant Field Values

FORCE_DEADLINE

public static final String FORCE_DEADLINE


Supported API: false

See Also:
Constant Field Values

RISK

public static final String RISK


Supported API: false

See Also:
Constant Field Values

RISK_DESCRIPTION

public static final String RISK_DESCRIPTION


Supported API: false

See Also:
Constant Field Values

STATUS

public static final String STATUS


Supported API: false

See Also:
Constant Field Values

STATUS_DESCRIPTION

public static final String STATUS_DESCRIPTION


Supported API: false

See Also:
Constant Field Values

STATE

public static final String STATE


Supported API: false

See Also:
Constant Field Values

START_DATE

public static final String START_DATE


Supported API: false

See Also:
Constant Field Values

FINISH_DATE

public static final String FINISH_DATE


Supported API: false

See Also:
Constant Field Values

PLANNED_START

public static final String PLANNED_START


Supported API: false

See Also:
Constant Field Values

ESTIMATED_FINISH_DATE

public static final String ESTIMATED_FINISH_DATE


Supported API: false

See Also:
Constant Field Values

PERCENT_COMPLETE

public static final String PERCENT_COMPLETE


Supported API: false

See Also:
Constant Field Values

MANAGER

public static final String MANAGER


Supported API: false

See Also:
Constant Field Values

RESOURCE_TYPE

public static final String RESOURCE_TYPE


Supported API: false

See Also:
Constant Field Values

PERSON

public static final String PERSON


Supported API: false

See Also:
Constant Field Values

ROLE

public static final String ROLE


Supported API: false

See Also:
Constant Field Values

PERCENT_UTILIZATION

public static final String PERCENT_UTILIZATION


Supported API: false

See Also:
Constant Field Values

MAX_UNITS

public static final String MAX_UNITS


Supported API: false

See Also:
Constant Field Values

STANDARD_RATE

public static final String STANDARD_RATE


Supported API: false

See Also:
Constant Field Values

COST_PER_USE

public static final String COST_PER_USE


Supported API: false

See Also:
Constant Field Values

OVERTIME_RATE

public static final String OVERTIME_RATE


Supported API: false

See Also:
Constant Field Values

RESOURCE_LABEL

public static final String RESOURCE_LABEL


Supported API: false

See Also:
Constant Field Values

PERSON_RESOURCE

public static final String PERSON_RESOURCE


Supported API: false

See Also:
Constant Field Values

ROLE_RESOURCE

public static final String ROLE_RESOURCE


Supported API: false

See Also:
Constant Field Values

EQUIPMENT_RESOURCE

public static final String EQUIPMENT_RESOURCE


Supported API: false

See Also:
Constant Field Values

FACILITY_RESOURCE

public static final String FACILITY_RESOURCE


Supported API: false

See Also:
Constant Field Values

INFORMATION_RESOURCE

public static final String INFORMATION_RESOURCE


Supported API: false

See Also:
Constant Field Values

MATERIAL_RESOURCE

public static final String MATERIAL_RESOURCE


Supported API: false

See Also:
Constant Field Values

MAXIMUM_UTILIZATION

public static final String MAXIMUM_UTILIZATION


Supported API: false

See Also:
Constant Field Values

ROLL_UP_STATUS

public static final String ROLL_UP_STATUS


Supported API: false

See Also:
Constant Field Values

ROLL_UP_PERCENT

public static final String ROLL_UP_PERCENT


Supported API: false

See Also:
Constant Field Values

ROLL_UP_FINISH

public static final String ROLL_UP_FINISH


Supported API: false

See Also:
Constant Field Values

TIME_TO_DEADLINE

public static final String TIME_TO_DEADLINE


Supported API: false

See Also:
Constant Field Values

TIME_PAST_DEADLINE

public static final String TIME_PAST_DEADLINE


Supported API: false

See Also:
Constant Field Values

MANAGER_RED_STATUS

public static final String MANAGER_RED_STATUS


Supported API: false

See Also:
Constant Field Values

MANAGER_COMPLETION

public static final String MANAGER_COMPLETION


Supported API: false

See Also:
Constant Field Values

PROJECT

public static final String PROJECT


Supported API: false

See Also:
Constant Field Values

TOTAL_WORK

public static final String TOTAL_WORK


Supported API: false

See Also:
Constant Field Values

TOTAL_STANDARD_WORK

public static final String TOTAL_STANDARD_WORK


Supported API: false

See Also:
Constant Field Values

TOTAL_OVERTIME_WORK

public static final String TOTAL_OVERTIME_WORK


Supported API: false

See Also:
Constant Field Values

PERFORMED_WORK

public static final String PERFORMED_WORK


Supported API: false

See Also:
Constant Field Values

STANDARD_WORK

public static final String STANDARD_WORK


Supported API: false

See Also:
Constant Field Values

OVERTIME_WORK

public static final String OVERTIME_WORK


Supported API: false

See Also:
Constant Field Values

STATE_VIEW

public static final String STATE_VIEW


Supported API: false

See Also:
Constant Field Values

STATUS_VIEW

public static final String STATUS_VIEW


Supported API: false

See Also:
Constant Field Values

RISK_VIEW

public static final String RISK_VIEW


Supported API: false

See Also:
Constant Field Values

CATEGORY_VIEW

public static final String CATEGORY_VIEW


Supported API: false

See Also:
Constant Field Values

RESOURCE_TYPE_VIEW

public static final String RESOURCE_TYPE_VIEW


Supported API: false

See Also:
Constant Field Values

ROLE_VIEW

public static final String ROLE_VIEW


Supported API: false

See Also:
Constant Field Values

SUB_PROJECT

public static final String SUB_PROJECT


Supported API: false

See Also:
Constant Field Values

SUB_PROJECT_VIEW

public static final String SUB_PROJECT_VIEW


Supported API: false

See Also:
Constant Field Values

TOTAL_COST

public static final String TOTAL_COST


Supported API: false

See Also:
Constant Field Values

CURRENT_COST

public static final String CURRENT_COST


Supported API: false

See Also:
Constant Field Values

DURATION

public static final String DURATION


Supported API: false

See Also:
Constant Field Values

PREDECESSORS

public static final String PREDECESSORS


Supported API: false

See Also:
Constant Field Values

IN_TIMELINE

public static final String IN_TIMELINE


Supported API: false

See Also:
Constant Field Values

SELECTED

public static final String SELECTED


Supported API: false

See Also:
Constant Field Values

service

public static final NmProjMgmtService service


Supported API: false


serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

MISC_RESOURCE

private static final String MISC_RESOURCE
See Also:
Constant Field Values

STATIC_VIEW

private static Boolean STATIC_VIEW

ONE_HOUR

private static final long ONE_HOUR
See Also:
Constant Field Values

ONE_DAY

private static final long ONE_DAY
See Also:
Constant Field Values

SERVER

private static final boolean SERVER

modifyActualDates

public static boolean modifyActualDates

modifyActualDatesUI

public static boolean modifyActualDatesUI

MODIFY_ACTUAL_DATES

public static final String MODIFY_ACTUAL_DATES
See Also:
Constant Field Values

MODIFY_ACTUAL_DATES_UI

public static final String MODIFY_ACTUAL_DATES_UI
See Also:
Constant Field Values

PREDECESSOR_LINKS

public static final String PREDECESSOR_LINKS
See Also:
Constant Field Values

SUCCESSOR_LINKS

public static final String SUCCESSOR_LINKS
See Also:
Constant Field Values

PRIORITY

public static final String PRIORITY
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

CURRENT_DURATION

public static final String CURRENT_DURATION
See Also:
Constant Field Values

UPDATE_WORK_COMPUTE_PER_COMP

public static final String UPDATE_WORK_COMPUTE_PER_COMP
See Also:
Constant Field Values

OWNER_VIEW

public static final String OWNER_VIEW
See Also:
Constant Field Values

ACTIVITY_HOLDER

public static final String ACTIVITY_HOLDER
See Also:
Constant Field Values

ACTIVITY_HOLDER_LINK

public static final String ACTIVITY_HOLDER_LINK
See Also:
Constant Field Values

ACTIVITY_HOLDER_VIEW

public static final String ACTIVITY_HOLDER_VIEW
See Also:
Constant Field Values

MILESTONES

public static final String MILESTONES
See Also:
Constant Field Values

MILESTONES_LINK

public static final String MILESTONES_LINK
See Also:
Constant Field Values

TARGET_OBJ

public static final String TARGET_OBJ
See Also:
Constant Field Values

ROLL_UP_TOTAL_WORK

public static final String ROLL_UP_TOTAL_WORK
See Also:
Constant Field Values

ROLL_UP_PERFORMED_WORK

public static final String ROLL_UP_PERFORMED_WORK
See Also:
Constant Field Values

RESTORE_ROLL_UP_STATUS

public static final String RESTORE_ROLL_UP_STATUS
See Also:
Constant Field Values

RESTORE_ROLL_UP_PERCENT

public static final String RESTORE_ROLL_UP_PERCENT
See Also:
Constant Field Values

RESTORE_ROLL_UP_FINISH

public static final String RESTORE_ROLL_UP_FINISH
See Also:
Constant Field Values

RESTORE_ROLL_UP_TOTAL_WORK

public static final String RESTORE_ROLL_UP_TOTAL_WORK
See Also:
Constant Field Values

RESTORE_ROLL_UP_PERFORMED_WORK

public static final String RESTORE_ROLL_UP_PERFORMED_WORK
See Also:
Constant Field Values

PLANNED_START_VIEW

public static final String PLANNED_START_VIEW
See Also:
Constant Field Values

PLANNED_START_ORIG

public static final String PLANNED_START_ORIG
See Also:
Constant Field Values

TIME_TO_START

public static final String TIME_TO_START
See Also:
Constant Field Values

DEADLINE_VIEW

public static final String DEADLINE_VIEW
See Also:
Constant Field Values

DEADLINE_ORIG

public static final String DEADLINE_ORIG
See Also:
Constant Field Values

IS_MANUAL

public static final String IS_MANUAL
See Also:
Constant Field Values

IS_AUTO

public static final String IS_AUTO
See Also:
Constant Field Values

IS_COMPLETED

public static final String IS_COMPLETED
See Also:
Constant Field Values

IS_DEFINED

public static final String IS_DEFINED
See Also:
Constant Field Values

MAXIMUM_UTILIZATION_DISPLAY

public static final String MAXIMUM_UTILIZATION_DISPLAY
See Also:
Constant Field Values

ESTIMATED_FINISH_ORIG

public static final String ESTIMATED_FINISH_ORIG
See Also:
Constant Field Values

STATE_VIEW_TEXT

public static final String STATE_VIEW_TEXT
See Also:
Constant Field Values
Constructor Detail

NmProjMgmtHelper

public NmProjMgmtHelper()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(NmProjMgmtHelper thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getNmObject

public static NmObject getNmObject(Persistable persistable)
                            throws WTException
Constructs and returns netmarkets objects that corresponds to a database object. The object passed as argument must have been persisted.

Supported API: false

Parameters:
persistable -
Returns:
NmObject
Throws:
WTException
See Also:
NmObject

getParams

public static Hashtable getParams(NmCommandBean cb)
Extracts the parameters of a command bean in the form of a hashtable.

Supported API: false

Parameters:
cb -
Returns:
Hashtable

getString

public static String getString(Hashtable params,
                               String key,
                               String default_value)
Retrieves String associated with given key in the hashtable passed as argument. If there is no associated String, the default value passed as argument is returned.

Supported API: false

Parameters:
params -
key -
default_value -
Returns:
String

createNmProjMgmtObject

public static NmProjMgmtObject createNmProjMgmtObject(Persistable object)
                                               throws WTException
Returns a netmarkets object corresponding to a given Persistable. Throws a runtime exception if the persistable is not an ExecutionObject or a wt.projmgmt.resource.ProjectResource..

Supported API: false

Parameters:
object -
Returns:
NmProjMgmtObject
Throws:
WTException

getNmDate

public static Object getNmDate(Date date,
                               Object default_value)
Returns a NmDate object given a time stamp. The display type of the object returned is set to NmDate.STANDARD_DATE.

Supported API: false

Parameters:
date -
default_value -
Returns:
Object

getStatus

public static String getStatus(ExecutionObject exec_obj)
                        throws WTException
Returns HTML text referencing the icon for the execution object's health status.

Supported API: false

Parameters:
exec_obj -
Returns:
String
Throws:
WTException

parsePercentComplete

public static int parsePercentComplete(String percent)
                                throws WTException


Supported API: false

Parameters:
percent -
Returns:
int
Throws:
WTException

getProjectNodeSelectURL

public static String getProjectNodeSelectURL(NmContextBean cb)
                                      throws WTException


Supported API: false

Parameters:
cb -
Returns:
String
Throws:
WTException

getOverrideRollupFlag

public static String getOverrideRollupFlag(NmProjMgmtObject nm_obj,
                                           String attributeName,
                                           String ckBoxName)
                                    throws WTException


Supported API: false

Parameters:
nm_obj -
attributeName -
ckBoxName -
Returns:
String
Throws:
WTException

canModify

public static boolean canModify(ExecutionObject eo,
                                WTUser user)
                         throws WTException
Return whether the user can modify the specified ExecutionObject.

Throws:
WTException

canModify

public static boolean canModify(ExecutionObject eo,
                                WTUser user,
                                WTContainerRef pc)
                         throws WTException
Throws:
WTException

getDaysBetween

public static Long getDaysBetween(Date time1,
                                  Date time2)

addParam

private static void addParam(Hashtable params,
                             String parameter,
                             NmCommandBean cb)
A small method to protected agains null


setEnumeratedType

private static void setEnumeratedType(NmProjMgmtObject nm_obj,
                                      String key,
                                      EnumeratedType enum_type,
                                      Object default_enum_type)
                               throws WTException
Throws:
WTException

setEnumeratedTypeView

private static void setEnumeratedTypeView(NmProjMgmtObject nm_obj,
                                          String key,
                                          EnumeratedType enum_type,
                                          Object default_enum_type)
                                   throws WTException
Throws:
WTException

setObjectConfiguration

private static void setObjectConfiguration(NmProjMgmtObject nm_obj,
                                           ExecutionObject exec_obj)
                                    throws WTException
Throws:
WTException

createNmDeliverable

private static NmDeliverable createNmDeliverable(Deliverable deli)
                                          throws WTException
Throws:
WTException

createNmDeliverable

private static NmDeliverable createNmDeliverable(Deliverable deli,
                                                 boolean minimal)
                                          throws WTException
Throws:
WTException

createNmMilestone

private static NmMilestone createNmMilestone(Milestone mile)
                                      throws WTException
Throws:
WTException

createNmMilestone

private static NmMilestone createNmMilestone(Milestone mile,
                                             boolean minimal,
                                             boolean inList)
                                      throws WTException
Throws:
WTException

createNmProjectActivity

private static NmProjectActivity createNmProjectActivity(ProjectActivity act)
                                                  throws WTException
Throws:
WTException

createNmProjectActivity

private static NmProjectActivity createNmProjectActivity(ProjectActivity act,
                                                         boolean minimal,
                                                         boolean inList)
                                                  throws WTException
Throws:
WTException

refreshResources

public static void refreshResources(NmProjectActivity nmAct)
                             throws WTException
Throws:
WTException

createNmProjectProxy

private static NmProjectProxy createNmProjectProxy(ProjectProxy proxy)
                                            throws WTException
Throws:
WTException

createNmProjectProxy

private static NmProjectProxy createNmProjectProxy(ProjectProxy proxy,
                                                   boolean minimal,
                                                   boolean inList)
                                            throws WTException
Throws:
WTException

createNmSummaryActivity

private static NmSummaryActivity createNmSummaryActivity(SummaryActivity summ)
                                                  throws WTException
Throws:
WTException

createNmSummaryActivity

private static NmSummaryActivity createNmSummaryActivity(SummaryActivity summ,
                                                         boolean minimal,
                                                         boolean inList)
                                                  throws WTException
Throws:
WTException

createNmProjectPlan

private static NmProjectPlan createNmProjectPlan(ProjectPlan plan)
                                          throws WTException
Throws:
WTException

createNmProjectPlan

private static NmProjectPlan createNmProjectPlan(ProjectPlan plan,
                                                 boolean minimal)
                                          throws WTException
Throws:
WTException

setExecObjValues

private static void setExecObjValues(NmProjMgmtObject nm_obj,
                                     ExecutionObject exec_obj)
                              throws WTException
Throws:
WTException

setProjectNodeValues

private static void setProjectNodeValues(NmProjMgmtObject nm_obj,
                                         ProjectNode projNode)
                                  throws WTException
Throws:
WTException

getPredecessorLinks

public static String getPredecessorLinks(ProjectNode node)
                                  throws WTException
Throws:
WTException

getSuccessorLinks

public static String getSuccessorLinks(ProjectNode node)
                                throws WTException
Throws:
WTException

getViewLinkForProjectNode

private static String getViewLinkForProjectNode(ProjectNode node,
                                                boolean displayName)
                                         throws WTException
Throws:
WTException

getViewLinkForProjectNode

private static String getViewLinkForProjectNode(ProjectNode node,
                                                boolean displayName,
                                                boolean displayID)
                                         throws WTException
Throws:
WTException

getDaysString

private static String getDaysString(TimeToElapse elapsed)

getBooleanString

private static String getBooleanString(boolean bool)

getOwnerId

private static String getOwnerId(Ownable own_obj)
                          throws WTException
Throws:
WTException

getNmOwner

private static NmUser getNmOwner(Ownable own_obj)
                          throws WTException
Throws:
WTException

isSubscribed

public static boolean isSubscribed(ExecutionObject object,
                                   ProjectEventType event)
                            throws WTException
Throws:
WTException

getPercentComplete

private static String getPercentComplete(ExecutionObject exec_obj)
                                  throws WTException
Throws:
WTException

getDuration

public static String getDuration(ExecutionObject execObj)
                          throws WTException
Throws:
WTException

getDurationToDate

private static String getDurationToDate(ExecutionObject execObj)
                                 throws WTException
Throws:
WTException

getPlannedStart

public static Object getPlannedStart(WfExecutionObject exObj,
                                     Object def)
Get the PLANNED_START for the specified WfExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getPlannedStart(wt.workflow.engine.WfExecutionObject, java.lang.Object) for more details.

Parameters:
exObj - the execution object whose planned start should be returned
def - the default value to return if the planned start is not set
Returns:
NmDate representing the object's planned start or def
See Also:
getPlannedStart(wt.workflow.engine.WfExecutionObject, java.lang.Object)

getPlannedStart

public static Object getPlannedStart(WfExecutionObject exObj,
                                     int dispType,
                                     Object def)
Get the PLANNED_START for the specified WfExecutionObject.

This method returns an NmDate object that has been initialized with the object's timeToStart. If the object's timeToStart is being computed then def is returned.

Parameters:
exObj - the execution object whose planned start should be returned
dispType - the display type for the NmDate
def - the default value to return if the planned start is not set
Returns:
NmDate representing the object's planned start or def

getPlannedStart

public static NmDate getPlannedStart(WfExecutionObject exObj,
                                     int dispType)
Get the PLANNED_START for the specified WfExecutionObject.

This method returns an NmDate object that has been initialized with the object's timeToStart. An NmDate object that has been initialize with null is returned if the timeToStart is being computed.

Parameters:
exObj - the execution object whose timeToStart should be returned
dispType - the display type for the NmDate
Returns:
NmDate representing the object's planned start

getTimeToStart

public static NmDate getTimeToStart(WfExecutionObject exObj)
Get the TIME_TO_START for the specified WfExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getTimeToStart(wt.workflow.engine.WfExecutionObject) for more details.

Parameters:
exObj - the execution object whose timeToStart should be returned
Returns:
NmDate representing the object's timeToStart
See Also:
getTimeToStart(wt.workflow.engine.WfExecutionObject)

getTimeToStart

public static NmDate getTimeToStart(WfExecutionObject exObj,
                                    int dispType)
Get the TIME_TO_START for the specified WfExecutionObject.

This method returns an NmDate object that has been initialized with the object's timeToStart. An NmDate object that has been initialize with the object's timeToStart is returned regardless of whether the timeToStart is being computed. If the timeToStart is null then a NmDate object that is initialized with null is returned.

Parameters:
exObj - the execution object whose timeToStart should be returned
dispType - the display type for the NmDate
Returns:
NmDate representing the object's timeToStart or def

getTimeToStart

public static Object getTimeToStart(WfExecutionObject exObj,
                                    Object def)
Get the TIME_TO_START for the specified WfExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getTimeToStart(wt.workflow.engine.WfExecutionObject) for more details.

Parameters:
exObj - the execution object whose timeToStart should be returned
def - the default value to return if timeToStart is null
Returns:
NmDate representing the object's timeToStart or def
See Also:
getTimeToStart(wt.workflow.engine.WfExecutionObject)

getTimeToStart

public static Object getTimeToStart(WfExecutionObject exObj,
                                    int dispType,
                                    Object def)
Get the TIME_TO_START for the specified WfExecutionObject.

This method returns an NmDate object that has been initialized with the object's timeToStart. An NmDate object that has been initialize with the object's timeToStart is returned regardless of whether the timeToStart is being computed.

Parameters:
exObj - the execution object whose timeToStart should be returned
dispType - the display type for the NmDate
def - the default value to return if timeToStart is null
Returns:
NmDate representing the object's timeToStart or def

getEstimatedFinish

public static Object getEstimatedFinish(ExecutionObject exObj,
                                        Object def)
Get the ESTIMATED_FINISH_DATE for the specified ExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getEstimatedFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object) for more details.

Parameters:
exObj - the execution object whose estimated finish should be returned
def - the default value to return if estimated finish is not set
Returns:
NmDate representing the object's estimated finish or def
See Also:
getEstimatedFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object)

getEstimatedFinish

public static Object getEstimatedFinish(ExecutionObject exObj,
                                        int dispType,
                                        Object def)
Get the ESTIMATED_FINISH_DATE for the specified ExecutionObject.

This method returns an NmDate object that has been initialized with the object's estimatedFinishDate. If the object's estimatedFinishDate is null then def is returned.

Parameters:
exObj - the execution object whose estimated finish should be returned
dispType - the display type for the NmDate
def - the default value to return if the estimated finish is not set
Returns:
NmDate representing the object's estimated finish or def

getEstimatedFinish

public static NmDate getEstimatedFinish(ExecutionObject exObj)
Get the ESTIMATED_FINISH_DATE for the specified ExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getEstimatedFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object) for more details.

Parameters:
exObj - the execution object whose estimated finish should be returned
Returns:
NmDate representing the object's estimated finish or def
See Also:
getEstimatedFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object)

getEstimatedFinish

public static NmDate getEstimatedFinish(ExecutionObject exObj,
                                        int dispType)
Get the ESTIMATED_FINISH_DATE for the specified ExecutionObject.

This method returns an NmDate object that has been initialized with the object's estimatedFinishDate. If the object's estimatedFinishDate is null then a NmDate that has been initialize with null is returned.

Parameters:
exObj - the execution object whose estimated finish should be returned
dispType - the display type for the NmDate
Returns:
NmDate representing the object's estimated finish or def

getActualFinish

public static Object getActualFinish(ExecutionObject exObj,
                                     Object def)
Get the FINISH_DATE for the specified ExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getActualFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object) for more details.

Parameters:
exObj - the execution object whose actual finish should be returned
def - the default value to return if actual finish is not set
Returns:
NmDate representing the object's actual finish or def
See Also:
getActualFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object)

getActualFinish

public static Object getActualFinish(ExecutionObject exObj,
                                     int dispType,
                                     Object def)
Get the FINISH_DATE for the specified ExecutionObject.

This method returns an NmDate object that has been initialized with the object's actualFinishDate. If the object's actualFinishDate is null then def is returned.

Parameters:
exObj - the execution object whose actual finish should be returned
dispType - the display type for the NmDate
def - the default value to return if the actual finish is not set
Returns:
NmDate representing the object's actual finish or def

getActualStart

public static Object getActualStart(ExecutionObject exObj,
                                    Object def)
Get the START_DATE for the specified ExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getActualStart(wt.projmgmt.execution.ExecutionObject, java.lang.Object) for more details.

Parameters:
exObj - the execution object whose actual start should be returned
def - the default value to return if actual start is not set
Returns:
NmDate representing the object's actual start or def
See Also:
getActualStart(wt.projmgmt.execution.ExecutionObject, java.lang.Object)

getActualStart

public static Object getActualStart(ExecutionObject exObj,
                                    int dispType,
                                    Object def)
Get the START_DATE for the specified ExecutionObject.

This method returns an NmDate object that has been initialized with the object's actualStartDate. If the object's actualStartDate is null then def is returned.

Parameters:
exObj - the execution object whose actual start should be returned
dispType - the display type for the NmDate
def - the default value to return if the actual start is not set
Returns:
NmDate representing the object's actual start or def

getDeadline

public static Object getDeadline(ExecutionObject exObj,
                                 Object def)
Get the DEADLINE for the specified ExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getDeadline(wt.projmgmt.execution.ExecutionObject, java.lang.Object) for more details.

Parameters:
exObj - the execution object whose deadline should be returned
def - the default value to return if the deadline is not set
Returns:
NmDate representing the object's deadline or def
See Also:
getDeadline(wt.projmgmt.execution.ExecutionObject, java.lang.Object)

getDeadline

public static Object getDeadline(ExecutionObject exObj,
                                 int dispType,
                                 Object def)
Get the DEADLINE for the specified ExecutionObject.

This method returns an NmDate object that has been initialized with the object's deadline. If the object's deadline is null then def is returned.

Parameters:
exObj - the execution object whose deadline should be returned
dispType - the display type for the NmDate
def - the default value to return if the deadline is not set
Returns:
NmDate representing the object's deadline or def

getDeadline

public static NmDate getDeadline(ExecutionObject exObj)
Get the DEADLINE for the specified ExecutionObject. The NmDate uses the STANDARD_DATE display type.

See getDeadline(wt.projmgmt.execution.ExecutionObject, java.lang.Object) for more details.

Parameters:
exObj - the execution object whose deadline should be returned
Returns:
NmDate representing the object's deadline
See Also:
getDeadline(wt.projmgmt.execution.ExecutionObject, java.lang.Object)

getDeadline

public static NmDate getDeadline(ExecutionObject exObj,
                                 int dispType)
Get the DEADLINE for the specified ExecutionObject.

This method returns an NmDate object that has been initialized with the object's deadline. If the object's deadline is null then the NmDate is initialize with null.

Parameters:
exObj - the execution object whose deadline should be returned
dispType - the display type for the NmDate
Returns:
NmDate representing the object's deadline

getResourceDisplayName

public static String getResourceDisplayName(ProjectResource res,
                                            Locale loc)

createNmProjMgmtObject

public static NmProjMgmtObject createNmProjMgmtObject(Persistable object,
                                                      boolean useCache,
                                                      boolean minimal)
                                               throws WTException
Throws:
WTException

createNmProjMgmtObject

public static NmProjMgmtObject createNmProjMgmtObject(Persistable object,
                                                      boolean useCache)
                                               throws WTException
Throws:
WTException

createNmProjMgmtObject

public static NmProjMgmtObject createNmProjMgmtObject(Persistable object,
                                                      boolean useCache,
                                                      boolean minimal,
                                                      boolean inList)
                                               throws WTException
Throws:
WTException

getProjMgmtObjectFromCache

public static NmProjMgmtObject getProjMgmtObjectFromCache(Persistable p)
                                                   throws WTException
Throws:
WTException

getProjMgmtObjectFromCache

public static NmProjMgmtObject getProjMgmtObjectFromCache(Persistable p,
                                                          NmHTMLTableTree tree)
                                                   throws WTException
Throws:
WTException

getCachedNode

public static NmHTMLTreeNode getCachedNode(NmOid oid,
                                           NmProjectPlanTreeModel model)
                                    throws WTException
Throws:
WTException

getCachedNode

public static NmHTMLTreeNode getCachedNode(int id,
                                           NmProjectPlanTreeModel model)
                                    throws WTException
Throws:
WTException

formatDate

public static String formatDate(Date date)
                         throws WTException
Return a string that can be used to display the specified date in the user's preferred locale. This includes formatting preferences and time zone preference. If date is null then null is returned.

The LONG_DATE_TIME format is used.

Parameters:
date - the date to be formatted
Throws:
WTException

isStatic

public static boolean isStatic()
                        throws WTException
Throws:
WTException

getDeliverableForColumn

public static Object getDeliverableForColumn(Persistable p,
                                             Locale locale,
                                             String name)
                                      throws WTException
Throws:
WTException

getDeliverableForColumn

public static Object getDeliverableForColumn(Persistable p,
                                             Locale locale,
                                             String name,
                                             HashMap nodedelis)
                                      throws WTException
Throws:
WTException

getDeliverableForColumn

public static Object getDeliverableForColumn(Persistable p,
                                             Locale locale,
                                             String name,
                                             FolderHierarchy.FolderEntryInfo fei,
                                             boolean isDeliverablePopulated)
                                      throws WTException
Throws:
WTException

getDeliverableForColumn

public static Object getDeliverableForColumn(Persistable p,
                                             Locale locale,
                                             String name,
                                             boolean hasDeli)
                                      throws WTException
Throws:
WTException

getDeliFromResultObj

public static Deliverable getDeliFromResultObj(Object nextObj)

getDeliverables

public static QueryResult getDeliverables(Persistable p)
                                   throws WTException
Throws:
WTException

getId

private static ObjectIdentifier getId(Object obj)

getDetailsActionModel

public static String getDetailsActionModel(NmOid nmOid)