|
|||||||||||
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.MPPResource
An object that represents data from a Microsoft Project
Plan Resource
.
Field Summary | |
static String |
NAME_ELEMENT
The XML element that contains this object's
name. |
Fields inherited from class wt.projmgmt.msproject.mppobject.MPPObject |
|
Constructor Summary | |
MPPResource()
|
Method Summary | |
private PersonResource |
addToTeam(PersonResource resource)
Add the person that is linked to the specified PersonResource to the project plan's
team. |
private MaterialResource |
createMaterialResource()
Create a MaterialResource that corresponds
to this resource. |
protected Persistable |
createPersistable()
Create a new Persistable that is of the correct
type for this object. |
private TimeResource |
createTimeResource()
Create a TimeResource that corresponds
to this resource. |
protected String |
getGenericName()
Return a generic name fo the this object. |
protected String |
getNameElement()
Return the name of the XML element that should
be used to obtain the value of this object's name. |
ProjectResource |
getProjectResource()
Get the persistable ProjectResource that
this object corresponds to. |
boolean |
isMaterial()
Return true if this resource is a material resource. |
protected boolean |
isValidPersistable(Persistable p)
Make sure that the specified Persistable is
of the right type for this object. |
boolean |
isWork()
Return true if this resource is a work resource. |
private MaterialResource |
refreshMaterialResource()
Find a MaterialResource that corresponds
to this resource. |
protected Persistable |
refreshPersistable()
Retrieve the Persistable that corresponds to this
object from the database. |
private TimeResource |
refreshTimeResource()
Find a TimeResource that corresponds
to this resource. |
protected CostResource |
updateCostResource(CostResource costRes)
Update the values that are specific to wt.projmgmt.execution.CostResource s. |
protected Persistable |
updatePersistable(Persistable p)
Update the specified Persistable with the data
in this object. |
protected ProjectResource |
updateProjectResource(ProjectResource projRes)
Update the values that are specific to wt.projmgmt.execution.ProjectResource s. |
protected TimeResource |
updateTimeResource(TimeResource timeRes)
Update the values that are specific to wt.projmgmt.execution.TimeResource s. |
Methods inherited from class wt.projmgmt.msproject.mppobject.MPPObject |
compareTo, containsKey, entrySet, get, getCurrentDate, getID, getImportInfo, getName, getObjectIdentifier, getPersistable, getPersistableClass, getPersistableID, getPlan, getProjectPlan, getUID, isContainer, keySet, print, printImpl, printMsg, printNoUpdate, printNoUpdate, printRollUp, printUpdate, printUpdate, put, 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 |
public static final String NAME_ELEMENT
XML
element that contains this object's
name.
Constructor Detail |
public MPPResource()
Method Detail |
protected final String getGenericName()
MPPObject
getGenericName
in class MPPObject
protected final String getNameElement()
MPPObject
XML
element that should
be used to obtain the value of this object's name.
getNameElement
in class MPPObject
public final boolean isWork()
true
if this resource is a work resource.
private final TimeResource refreshTimeResource() throws WTException
TimeResource
that corresponds
to this resource.
WTException
private final TimeResource createTimeResource() throws WTException
TimeResource
that corresponds
to this resource. The new resource is persisted.
NOTE: the current implementation of this methods always creates
a PersonResource
.
WTException
public final boolean isMaterial()
true
if this resource is a material resource.
private final MaterialResource refreshMaterialResource() throws WTException
MaterialResource
that corresponds
to this resource.
WTException
private final MaterialResource createMaterialResource() throws WTException
MaterialResource
that corresponds
to this resource. The new resource is persisted.
WTException
public final ProjectResource getProjectResource() throws WTException
ProjectResource
that
this object corresponds to.
WTException
wt.projmgmt.msproject.mppobject.MPPThing#getPersistable
protected final Persistable refreshPersistable() throws WTException
MPPObject
Persistable
that corresponds to this
object from the database. Return null
if no such
persistable exists.
refreshPersistable
in class MPPObject
WTException
protected final Persistable createPersistable() throws WTException
MPPObject
Persistable
that is of the correct
type for this object.
createPersistable
in class MPPObject
WTException
protected Persistable updatePersistable(Persistable p) throws WTException
MPPObject
Persistable
with the data
in this object.
updatePersistable
in class MPPObject
WTException
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
private final PersonResource addToTeam(PersonResource resource) throws WTException
PersonResource
to the project plan's
team.
WTException
protected final ProjectResource updateProjectResource(ProjectResource projRes)
wt.projmgmt.execution.ProjectResource
s. These include the
following values:
protected final CostResource updateCostResource(CostResource costRes)
wt.projmgmt.execution.CostResource
s. These include the
following values:
protected final TimeResource updateTimeResource(TimeResource timeRes)
wt.projmgmt.execution.TimeResource
s. These include the
following values:
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |