|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.projmgmt.msproject.mppobject.MPPObject
wt.projmgmt.msproject.mppobject.MPPExecutionObject
An object that represents data from a Microsoft Project
Plan Object
. An object is a task, resource or assignment.
These object all have a UID
attribute.
Field Summary | |
private Collection |
children
|
private int |
constraintType
|
private boolean |
isDataRolledUp
|
private ProjectHealthStatus |
rolledUpHealthStatus
|
Fields inherited from class wt.projmgmt.msproject.mppobject.MPPObject |
|
Constructor Summary | |
MPPExecutionObject()
|
Method Summary | |
protected void |
addChild(MPPTask child)
Add a task to this object's collection of children. |
protected Timestamp |
alignTime(Timestamp stamp,
boolean nextDay)
Return the Timestamp that represents midnight in the
specified TimeZone specified by this object's
ImportInfo on the same day as the specified
timestamp or on the day following the specified timestamp depending on
the value of nextDay . |
protected Timestamp |
alignTime(Timestamp stamp,
boolean nextDay,
boolean bAllowNonWorking)
Return the Timestamp that represents midnight in the
specified TimeZone specified by this object's
ImportInfo on the same day as the specified
timestamp or on the day following the specified timestamp depending on
the value of nextDay . |
protected void |
doDataRollUp()
Roll up data from this object's contained objects. |
Currency |
getActualCost()
Return the Actual Cost for this execution object
that is defined in the XML . |
Work |
getActualWork()
Return the Actual Work for this execution object
that is defined in the XML . |
Timestamp |
getAlignedDeadline()
Return the deadline that is aligned properly
with the day boundary. |
TimeToElapse |
getAlignedDuration()
Return the duration that is computed based on the
alignd timeToStart and the aligned
|
Timestamp |
getAlignedEstimatedFinishDate()
Return the estimatedFinishDate that is aligned
properly with the day boundary. |
Timestamp |
getAlignedTimeToStart()
Return the timeToStart that is aligned properly
with the day boundary. |
abstract ProjectCategory |
getCategory()
Get the category for this execution object that is specified in the XML . |
Collection |
getChildren()
Get this object's child tasks. |
Timestamp |
getConstraintDate()
Return the constraint date for the constraint that has been applied to this object if one exists. |
int |
getConstraintType()
Get the ConstraintType of any constraint
that has been applied to this task. |
Currency |
getCost()
Return the Cost for this execution object
that is defined in the XML . |
TimeToElapse |
getDuration()
Return the duration for this execution object
that is defined in the XML . |
long |
getElapsedDuration()
Return the elapsed duration for this execution object
that is defined in the XML . |
Timestamp |
getEstimatedFinishDate()
Return the estimatedFinishDate for this execution
object. |
ExecutionObject |
getExecutionObject()
Get the persistable ExecutionObject that
this object corresponds to. |
ProjectState |
getExecutionState()
Get the ProjectState for this
object that is specified in the XML . |
ProjectHealthStatus |
getHealthStatus()
Get the ProjectHealthStatus for this
object that is specified in the XML . |
WTPrincipal |
getOwner()
Get the owner of this execution object that is specified in the XML . |
Long |
getPercentComplete()
Return the Percent Complete for this execution object
that is defined in the XML . |
Long |
getPercentWorkComplete()
Return the Percent Work Complete for this execution object
that is defined in the XML . |
String |
getRiskDescription()
Get the risk description for this object that is specified in the XML . |
ProjectRiskValue |
getRiskValue()
Get the ProjectRiskValue for this
object that is specified in the XML . |
ProjectHealthStatus |
getRolledUpHealthStatus()
Get the health status that is rolled up from this object's contained objects. |
String |
getStatusDescription()
Get the health status for this object that is specified in the XML . |
Timestamp |
getTimeToStart()
Return the timeToStart for this execution object
that is defined in the XML . |
protected WTUser |
getUser(String fullName,
String email)
Get a WTUser based on the specified fullName
and email . |
Work |
getWork()
Return the Work for this execution object
that is defined in the XML . |
double |
getWorkingDays()
Return the duration for this execution object
that is defined in the XML . |
protected boolean |
isCreateTasksMode()
Return true if the plan is in create tasks
mode. |
protected boolean |
isManualExecutionMode()
Return true if the plan is in manual execution mode . |
protected abstract boolean |
isOwnable()
Return true if the ownership of this object should
be assigned to the owner specified in the XML . |
abstract boolean |
isRollUpCost()
Return true if the total cost and actual cost of this task are rolled-up. |
abstract boolean |
isRollUpFinishDate()
Return true if the estimated finish date of this task is rolled-up. |
abstract boolean |
isRollUpPercentComplete()
Return true if the percent complete of this task is rolled-up. |
protected boolean |
isRollUpRequired()
Return whether or not dat has been rolled up from this object's contained objects. |
boolean |
isRollUpStatus()
Return true if the health status of this task is rolled-up. |
abstract boolean |
isRollUpWork()
Return true if the total work and actual work of this task are rolled-up. |
abstract boolean |
isStartAtEndOfDay()
Returns true if the the object should start at
the end of the working day instead of at the beginning. |
boolean |
isStartComputed()
Return true if the planned start date of this task is computed. |
protected boolean |
isTrackCostsMode()
Return true if the plan is in track project costs
mode. |
protected boolean |
isValidPersistable(Persistable p)
Make sure that the specified Persistable is
of the right type for this object. |
protected boolean |
isValidUpdateState(ProjectState state)
Returns true if the specified
ProjectState is a state that
allows updates. |
protected Timestamp |
parseXSDDateTime(String dateTime)
Parse the specified xsd:dateTime string using
the default time zone specified in the
ImportInfo . |
protected void |
printNoUpdate(String key,
ProjectState state)
Print out a message indicating that an attribute cannot be updated because the object is not in a valid update state. |
protected void |
rollUpData()
Roll up data from this object's contained objects. |
protected void |
setRolledUpHealthStatus(ProjectHealthStatus status)
|
protected ExecutionObject |
updateCost(ExecutionObject exObj)
Update the total cost and current cost of the specified ExecutionObject . |
protected ExecutionObject |
updateExecutionObject(ExecutionObject exObj)
Update the values that are specific to ExecutionObject s. |
protected ExecutionObject |
updateName(ExecutionObject exObj)
Update the name of the specified ExecutionObject . |
Persistable |
updatePersistable(Persistable p)
Update values on the ExecutionObject based on the data in this
MPPExecutionObject . |
protected WfExecutionObject |
updateTimeToStart(WfExecutionObject exObj)
Update the timeToStart of this
WfExecutionObject . |
protected WfExecutionObject |
updateWfExecutionObject(WfExecutionObject exObj)
Update the values that are specific to WfExecutionObject s. |
protected ExecutionObject |
updateWork(ExecutionObject exObj)
Update the percent complete, total work and performed work of the specified ExecutionObject . |
Methods inherited from class wt.projmgmt.msproject.mppobject.MPPObject |
compareTo, containsKey, createPersistable, entrySet, get, getCurrentDate, getGenericName, getID, getImportInfo, getName, getNameElement, getObjectIdentifier, getPersistable, getPersistableClass, getPersistableID, getPlan, getProjectPlan, getUID, isContainer, keySet, print, printImpl, printMsg, printNoUpdate, printNoUpdate, printRollUp, printUpdate, printUpdate, put, refreshPersistable, savePersistable, setID, setPersistable, setPlan, toString, updatePersistableCache |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private int constraintType
private ProjectHealthStatus rolledUpHealthStatus
private boolean isDataRolledUp
private final Collection children
Constructor Detail |
public MPPExecutionObject()
Method Detail |
public final int getConstraintType()
ConstraintType
of any constraint
that has been applied to this task.
public final Timestamp getConstraintDate()
null
.
public final Timestamp getTimeToStart()
timeToStart
for this execution object
that is defined in the XML
. If the start date is
constrained then return the constraint date. Otherwise, just
return the start date.
public final Timestamp getAlignedTimeToStart()
timeToStart
that is aligned properly
with the day boundary.
getTimeToStart()
public final TimeToElapse getDuration()
duration
for this execution object
that is defined in the XML
. This duration
is "normalized" to working days instead of the working hours
that is actually reported in the XML
.
public final TimeToElapse getAlignedDuration() throws WTException
duration
that is computed based on the
alignd timeToStart
and the aligned
WTException
getAlignedTimeToStart()
,
getAlignedEstimatedFinishDate()
public final double getWorkingDays() throws WTException
duration
for this execution object
that is defined in the XML
. The number of
working days is returned.
WTException
public final long getElapsedDuration()
elapsed duration
for this execution object
that is defined in the XML
. This duration
is the amount of calendar time that exists between the
timeToStart
and the estimatedFinishDate
.
public final Timestamp getEstimatedFinishDate()
estimatedFinishDate
for this execution
object. This is always equal to the timeToStart
plus the elapsedDuration
between the start and
end dates that are reported in the XML
.
getTimeToStart()
,
getElapsedDuration()
public final Timestamp getAlignedEstimatedFinishDate()
estimatedFinishDate
that is aligned
properly with the day boundary.
getEstimatedFinishDate()
public final Timestamp getAlignedDeadline()
deadline
that is aligned properly
with the day boundary.
public final Long getPercentComplete()
Percent Complete
for this execution object
that is defined in the XML
.
public final Long getPercentWorkComplete()
Percent Work Complete
for this execution object
that is defined in the XML
.
public final Work getActualWork()
Actual Work
for this execution object
that is defined in the XML
.
public final Work getWork()
Work
for this execution object
that is defined in the XML
.
public final Currency getActualCost()
Actual Cost
for this execution object
that is defined in the XML
.
public final Currency getCost()
Cost
for this execution object
that is defined in the XML
.
public boolean isStartComputed()
public abstract boolean isStartAtEndOfDay()
true
if the the object should start at
the end of the working day instead of at the beginning.
public abstract boolean isRollUpFinishDate()
public boolean isRollUpStatus()
public final ProjectHealthStatus getRolledUpHealthStatus()
XML
.
protected final void setRolledUpHealthStatus(ProjectHealthStatus status)
public abstract boolean isRollUpPercentComplete()
public abstract boolean isRollUpWork()
public abstract boolean isRollUpCost()
protected final boolean isRollUpRequired()
protected final void rollUpData()
protected void doDataRollUp() throws WTException
This default implementation rolls up status information from this object's children.
WTException
protected final boolean isTrackCostsMode()
true
if the plan is in track project costs
mode. Otherwise, return false
.
protected final boolean isCreateTasksMode()
true
if the plan is in create tasks
mode. Otherwise, return false
.
protected final boolean isManualExecutionMode()
true
if the plan is in manual execution mode
.
Otherwise, return false
.
public abstract ProjectCategory getCategory()
XML
.
public WTPrincipal getOwner() throws WTException
XML
.
WTException
protected abstract boolean isOwnable()
true
if the ownership of this object should
be assigned to the owner specified in the XML
.
public final ProjectRiskValue getRiskValue()
ProjectRiskValue
for this
object that is specified in the XML
.
public final String getRiskDescription()
XML
.
public ProjectHealthStatus getHealthStatus()
ProjectHealthStatus
for this
object that is specified in the XML
.
public final String getStatusDescription()
XML
.
public final ProjectState getExecutionState()
ProjectState
for this
object that is specified in the XML
.
public final ExecutionObject getExecutionObject() throws WTException
ExecutionObject
that
this object corresponds to.
WTException
wt.projmgmt.msproject.mppobject.MPPThing#getPersistable
protected final boolean isValidUpdateState(ProjectState state)
true
if the specified
ProjectState
is a state that
allows updates. Otherwise returns false
.
public final Collection getChildren()
protected final void addChild(MPPTask child)
child
- the child to be addedpublic Persistable updatePersistable(Persistable p) throws WTException, WTPropertyVetoException
ExecutionObject
based on the data in this
MPPExecutionObject
.
Subclass should call super.updatePersistable
if they override
this method so that the ExecutionObject
and
WfExecutionObject
attributes are updated.
updatePersistable
in class MPPObject
WTException
WTPropertyVetoException
protected boolean isValidPersistable(Persistable p) throws WTException
MPPObject
Persistable
is
of the right type for this object. Return false
if null
is passed to the method.
This class's implementation of this method ensures that the
perisitable is in the right ProjectPlan
. Subclasses
that override this method should be sure to make a call to
super
so that this code is executed.
isValidPersistable
in class MPPObject
WTException
protected final ExecutionObject updateExecutionObject(ExecutionObject exObj) throws WTException
ExecutionObject
s. These include the
following values:
WTException
protected final WfExecutionObject updateWfExecutionObject(WfExecutionObject exObj) throws WTException
WfExecutionObject
s. These include the
following values:
WTException
protected WfExecutionObject updateTimeToStart(WfExecutionObject exObj)
timeToStart
of this
WfExecutionObject
. The following two
values are updated:
exObj
- the object to updateprotected ExecutionObject updateName(ExecutionObject exObj) throws WTException
ExecutionObject
.
WTException
protected ExecutionObject updateWork(ExecutionObject exObj) throws WTException
ExecutionObject
.
WTException
protected ExecutionObject updateCost(ExecutionObject exObj) throws WTException
ExecutionObject
.
WTException
protected final void printNoUpdate(String key, ProjectState state)
key
- the name of the attribute that cannot be updatedstate
- the execution object's stateprotected final WTUser getUser(String fullName, String email) throws WTException
WTUser
based on the specified fullName
and email
. If both fullName
and
email
are null
then null
is
returned. The user to returned is determined using the following
precedence rules:
fullName
@
to the fullName
Utils.getUser(java.lang.String, java.lang.String)
If multiple users are considered equal based on the precedence rules then the first user found in the database is returned.
fullName
- the full name of the user or nullemail
- the email address of the user or null
WTException
protected final Timestamp parseXSDDateTime(String dateTime)
xsd:dateTime
string using
the default time zone specified in the
ImportInfo
.
dateTime
- a date and time in xsd:dateTime format
protected final Timestamp alignTime(Timestamp stamp, boolean nextDay, boolean bAllowNonWorking)
Timestamp
that represents midnight in the
specified TimeZone
specified by this object's
ImportInfo
on the same day as the specified
timestamp or on the day following the specified timestamp depending on
the value of nextDay
.
If nextDay
is true
then midnight on
the next day is returned. Otherwise, midnight on the same day
is returned.
stamp
- the original timestampbAllowNonWorking
- whether to allow a non working day or notprotected final Timestamp alignTime(Timestamp stamp, boolean nextDay)
Timestamp
that represents midnight in the
specified TimeZone
specified by this object's
ImportInfo
on the same day as the specified
timestamp or on the day following the specified timestamp depending on
the value of nextDay
.
If nextDay
is true
then midnight on
the next day is returned. Otherwise, midnight on the same day
is returned.
stamp
- the original timestamp
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |