|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.netmarkets.projmgmt.NmProjMgmtHelper
Supported API: false
Extendable: false
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 |
private static final String RESOURCE
private static final String CLASSNAME
public static final String PROJECT_PLAN
public static final String PROJECT_ACTIVITY
public static final String PROJECT_PROXY
public static final String SUMMARY_ACTIVITY
public static final String MILESTONE
public static final String DELIVERABLE
public static final String PROJECT_RESOURCE
public static final String TARGET
public static final String LC_STATE
public static final String NAME
public static final String DESCRIPTION
public static final String OWNER
public static final String ASSIGNEES
public static final String CATEGORY
public static final String DEADLINE
public static final String INHERITED_DEADLINE
public static final String FORCE_DEADLINE
public static final String RISK
public static final String RISK_DESCRIPTION
public static final String STATUS
public static final String STATUS_DESCRIPTION
public static final String STATE
public static final String START_DATE
public static final String FINISH_DATE
public static final String PLANNED_START
public static final String ESTIMATED_FINISH_DATE
public static final String PERCENT_COMPLETE
public static final String MANAGER
public static final String RESOURCE_TYPE
public static final String PERSON
public static final String ROLE
public static final String PERCENT_UTILIZATION
public static final String MAX_UNITS
public static final String STANDARD_RATE
public static final String COST_PER_USE
public static final String OVERTIME_RATE
public static final String RESOURCE_LABEL
public static final String PERSON_RESOURCE
public static final String ROLE_RESOURCE
public static final String EQUIPMENT_RESOURCE
public static final String FACILITY_RESOURCE
public static final String INFORMATION_RESOURCE
public static final String MATERIAL_RESOURCE
public static final String MAXIMUM_UTILIZATION
public static final String ROLL_UP_STATUS
public static final String ROLL_UP_PERCENT
public static final String ROLL_UP_FINISH
public static final String TIME_TO_DEADLINE
public static final String TIME_PAST_DEADLINE
public static final String MANAGER_RED_STATUS
public static final String MANAGER_COMPLETION
public static final String PROJECT
public static final String TOTAL_WORK
public static final String TOTAL_STANDARD_WORK
public static final String TOTAL_OVERTIME_WORK
public static final String PERFORMED_WORK
public static final String STANDARD_WORK
public static final String OVERTIME_WORK
public static final String STATE_VIEW
public static final String STATUS_VIEW
public static final String RISK_VIEW
public static final String CATEGORY_VIEW
public static final String RESOURCE_TYPE_VIEW
public static final String ROLE_VIEW
public static final String SUB_PROJECT
public static final String SUB_PROJECT_VIEW
public static final String TOTAL_COST
public static final String CURRENT_COST
public static final String DURATION
public static final String PREDECESSORS
public static final String IN_TIMELINE
public static final String SELECTED
public static final NmProjMgmtService service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final String MISC_RESOURCE
private static Boolean STATIC_VIEW
private static final long ONE_HOUR
private static final long ONE_DAY
private static final boolean SERVER
public static boolean modifyActualDates
public static boolean modifyActualDatesUI
public static final String MODIFY_ACTUAL_DATES
public static final String MODIFY_ACTUAL_DATES_UI
public static final String PREDECESSOR_LINKS
public static final String SUCCESSOR_LINKS
public static final String PRIORITY
public static final String ID
public static final String CURRENT_DURATION
public static final String UPDATE_WORK_COMPUTE_PER_COMP
public static final String OWNER_VIEW
public static final String ACTIVITY_HOLDER
public static final String ACTIVITY_HOLDER_LINK
public static final String ACTIVITY_HOLDER_VIEW
public static final String MILESTONES
public static final String MILESTONES_LINK
public static final String TARGET_OBJ
public static final String ROLL_UP_TOTAL_WORK
public static final String ROLL_UP_PERFORMED_WORK
public static final String RESTORE_ROLL_UP_STATUS
public static final String RESTORE_ROLL_UP_PERCENT
public static final String RESTORE_ROLL_UP_FINISH
public static final String RESTORE_ROLL_UP_TOTAL_WORK
public static final String RESTORE_ROLL_UP_PERFORMED_WORK
public static final String PLANNED_START_VIEW
public static final String PLANNED_START_ORIG
public static final String TIME_TO_START
public static final String DEADLINE_VIEW
public static final String DEADLINE_ORIG
public static final String IS_MANUAL
public static final String IS_AUTO
public static final String IS_COMPLETED
public static final String IS_DEFINED
public static final String MAXIMUM_UTILIZATION_DISPLAY
public static final String ESTIMATED_FINISH_ORIG
public static final String STATE_VIEW_TEXT
Constructor Detail |
public NmProjMgmtHelper()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
-
IOException
ClassNotFoundException
protected boolean readVersion(NmProjMgmtHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public static NmObject getNmObject(Persistable persistable) throws WTException
persistable
-
WTException
NmObject
public static Hashtable getParams(NmCommandBean cb)
cb
-
public static String getString(Hashtable params, String key, String default_value)
params
- key
- default_value
-
public static NmProjMgmtObject createNmProjMgmtObject(Persistable object) throws WTException
Persistable
.
Throws a runtime exception if the persistable is not an ExecutionObject
or a wt.projmgmt.resource.ProjectResource.
.
object
-
WTException
public static Object getNmDate(Date date, Object default_value)
date
- default_value
-
public static String getStatus(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static int parsePercentComplete(String percent) throws WTException
percent
-
WTException
public static String getProjectNodeSelectURL(NmContextBean cb) throws WTException
cb
-
WTException
public static String getOverrideRollupFlag(NmProjMgmtObject nm_obj, String attributeName, String ckBoxName) throws WTException
nm_obj
- attributeName
- ckBoxName
-
WTException
public static boolean canModify(ExecutionObject eo, WTUser user) throws WTException
user
can modify the
specified ExecutionObject
.
WTException
public static boolean canModify(ExecutionObject eo, WTUser user, WTContainerRef pc) throws WTException
WTException
public static Long getDaysBetween(Date time1, Date time2)
private static void addParam(Hashtable params, String parameter, NmCommandBean cb)
private static void setEnumeratedType(NmProjMgmtObject nm_obj, String key, EnumeratedType enum_type, Object default_enum_type) throws WTException
WTException
private static void setEnumeratedTypeView(NmProjMgmtObject nm_obj, String key, EnumeratedType enum_type, Object default_enum_type) throws WTException
WTException
private static void setObjectConfiguration(NmProjMgmtObject nm_obj, ExecutionObject exec_obj) throws WTException
WTException
private static NmDeliverable createNmDeliverable(Deliverable deli) throws WTException
WTException
private static NmDeliverable createNmDeliverable(Deliverable deli, boolean minimal) throws WTException
WTException
private static NmMilestone createNmMilestone(Milestone mile) throws WTException
WTException
private static NmMilestone createNmMilestone(Milestone mile, boolean minimal, boolean inList) throws WTException
WTException
private static NmProjectActivity createNmProjectActivity(ProjectActivity act) throws WTException
WTException
private static NmProjectActivity createNmProjectActivity(ProjectActivity act, boolean minimal, boolean inList) throws WTException
WTException
public static void refreshResources(NmProjectActivity nmAct) throws WTException
WTException
private static NmProjectProxy createNmProjectProxy(ProjectProxy proxy) throws WTException
WTException
private static NmProjectProxy createNmProjectProxy(ProjectProxy proxy, boolean minimal, boolean inList) throws WTException
WTException
private static NmSummaryActivity createNmSummaryActivity(SummaryActivity summ) throws WTException
WTException
private static NmSummaryActivity createNmSummaryActivity(SummaryActivity summ, boolean minimal, boolean inList) throws WTException
WTException
private static NmProjectPlan createNmProjectPlan(ProjectPlan plan) throws WTException
WTException
private static NmProjectPlan createNmProjectPlan(ProjectPlan plan, boolean minimal) throws WTException
WTException
private static void setExecObjValues(NmProjMgmtObject nm_obj, ExecutionObject exec_obj) throws WTException
WTException
private static void setProjectNodeValues(NmProjMgmtObject nm_obj, ProjectNode projNode) throws WTException
WTException
public static String getPredecessorLinks(ProjectNode node) throws WTException
WTException
public static String getSuccessorLinks(ProjectNode node) throws WTException
WTException
private static String getViewLinkForProjectNode(ProjectNode node, boolean displayName) throws WTException
WTException
private static String getViewLinkForProjectNode(ProjectNode node, boolean displayName, boolean displayID) throws WTException
WTException
private static String getDaysString(TimeToElapse elapsed)
private static String getBooleanString(boolean bool)
private static String getOwnerId(Ownable own_obj) throws WTException
WTException
private static NmUser getNmOwner(Ownable own_obj) throws WTException
WTException
public static boolean isSubscribed(ExecutionObject object, ProjectEventType event) throws WTException
WTException
private static String getPercentComplete(ExecutionObject exec_obj) throws WTException
WTException
public static String getDuration(ExecutionObject execObj) throws WTException
WTException
private static String getDurationToDate(ExecutionObject execObj) throws WTException
WTException
public static Object getPlannedStart(WfExecutionObject exObj, Object def)
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.
exObj
- the execution object whose planned start should be returneddef
- the default value to return if the planned start is not set
getPlannedStart(wt.workflow.engine.WfExecutionObject, java.lang.Object)
public static Object getPlannedStart(WfExecutionObject exObj, int dispType, Object def)
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.
exObj
- the execution object whose planned start should be returneddispType
- the display type for the NmDatedef
- the default value to return if the planned start is not set
public static NmDate getPlannedStart(WfExecutionObject exObj, int dispType)
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.
exObj
- the execution object whose timeToStart should be returneddispType
- the display type for the NmDate
public static NmDate getTimeToStart(WfExecutionObject exObj)
TIME_TO_START
for the specified
WfExecutionObject
.
The NmDate
uses the STANDARD_DATE display type.
See getTimeToStart(wt.workflow.engine.WfExecutionObject)
for more details.
exObj
- the execution object whose timeToStart should be returned
getTimeToStart(wt.workflow.engine.WfExecutionObject)
public static NmDate getTimeToStart(WfExecutionObject exObj, int dispType)
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.
exObj
- the execution object whose timeToStart should be returneddispType
- the display type for the NmDate
public static Object getTimeToStart(WfExecutionObject exObj, Object def)
TIME_TO_START
for the specified
WfExecutionObject
.
The NmDate
uses the STANDARD_DATE display type.
See getTimeToStart(wt.workflow.engine.WfExecutionObject)
for more details.
exObj
- the execution object whose timeToStart should be returneddef
- the default value to return if timeToStart is null
getTimeToStart(wt.workflow.engine.WfExecutionObject)
public static Object getTimeToStart(WfExecutionObject exObj, int dispType, Object def)
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.
exObj
- the execution object whose timeToStart should be returneddispType
- the display type for the NmDatedef
- the default value to return if timeToStart is null
public static Object getEstimatedFinish(ExecutionObject exObj, Object def)
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.
exObj
- the execution object whose estimated finish should be returneddef
- the default value to return if estimated finish is not set
getEstimatedFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object)
public static Object getEstimatedFinish(ExecutionObject exObj, int dispType, Object def)
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.
exObj
- the execution object whose estimated finish should be returneddispType
- the display type for the NmDatedef
- the default value to return if the estimated finish is not set
public static NmDate getEstimatedFinish(ExecutionObject exObj)
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.
exObj
- the execution object whose estimated finish should be returned
getEstimatedFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object)
public static NmDate getEstimatedFinish(ExecutionObject exObj, int dispType)
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.
exObj
- the execution object whose estimated finish should be returneddispType
- the display type for the NmDate
public static Object getActualFinish(ExecutionObject exObj, Object def)
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.
exObj
- the execution object whose actual finish should be returneddef
- the default value to return if actual finish is not set
getActualFinish(wt.projmgmt.execution.ExecutionObject, java.lang.Object)
public static Object getActualFinish(ExecutionObject exObj, int dispType, Object def)
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.
exObj
- the execution object whose actual finish should be returneddispType
- the display type for the NmDatedef
- the default value to return if the actual finish is not set
public static Object getActualStart(ExecutionObject exObj, Object def)
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.
exObj
- the execution object whose actual start should be returneddef
- the default value to return if actual start is not set
getActualStart(wt.projmgmt.execution.ExecutionObject, java.lang.Object)
public static Object getActualStart(ExecutionObject exObj, int dispType, Object def)
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.
exObj
- the execution object whose actual start should be returneddispType
- the display type for the NmDatedef
- the default value to return if the actual start is not set
public static Object getDeadline(ExecutionObject exObj, Object def)
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.
exObj
- the execution object whose deadline should be returneddef
- the default value to return if the deadline is not set
getDeadline(wt.projmgmt.execution.ExecutionObject, java.lang.Object)
public static Object getDeadline(ExecutionObject exObj, int dispType, Object def)
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.
exObj
- the execution object whose deadline should be returneddispType
- the display type for the NmDatedef
- the default value to return if the deadline is not set
public static NmDate getDeadline(ExecutionObject exObj)
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.
exObj
- the execution object whose deadline should be returned
getDeadline(wt.projmgmt.execution.ExecutionObject, java.lang.Object)
public static NmDate getDeadline(ExecutionObject exObj, int dispType)
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
.
exObj
- the execution object whose deadline should be returneddispType
- the display type for the NmDate
public static String getResourceDisplayName(ProjectResource res, Locale loc)
public static NmProjMgmtObject createNmProjMgmtObject(Persistable object, boolean useCache, boolean minimal) throws WTException
WTException
public static NmProjMgmtObject createNmProjMgmtObject(Persistable object, boolean useCache) throws WTException
WTException
public static NmProjMgmtObject createNmProjMgmtObject(Persistable object, boolean useCache, boolean minimal, boolean inList) throws WTException
WTException
public static NmProjMgmtObject getProjMgmtObjectFromCache(Persistable p) throws WTException
WTException
public static NmProjMgmtObject getProjMgmtObjectFromCache(Persistable p, NmHTMLTableTree tree) throws WTException
WTException
public static NmHTMLTreeNode getCachedNode(NmOid oid, NmProjectPlanTreeModel model) throws WTException
WTException
public static NmHTMLTreeNode getCachedNode(int id, NmProjectPlanTreeModel model) throws WTException
WTException
public static String formatDate(Date date) throws WTException
date
is null
then null
is returned.
The LONG_DATE_TIME
format is used.
date
- the date to be formatted
WTException
public static boolean isStatic() throws WTException
WTException
public static Object getDeliverableForColumn(Persistable p, Locale locale, String name) throws WTException
WTException
public static Object getDeliverableForColumn(Persistable p, Locale locale, String name, HashMap nodedelis) throws WTException
WTException
public static Object getDeliverableForColumn(Persistable p, Locale locale, String name, FolderHierarchy.FolderEntryInfo fei, boolean isDeliverablePopulated) throws WTException
WTException
public static Object getDeliverableForColumn(Persistable p, Locale locale, String name, boolean hasDeli) throws WTException
WTException
public static Deliverable getDeliFromResultObj(Object nextObj)
public static QueryResult getDeliverables(Persistable p) throws WTException
WTException
private static ObjectIdentifier getId(Object obj)
public static String getDetailsActionModel(NmOid nmOid)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |