com.ptc.netmarkets.project
Class NmProject

java.lang.Object
  extended bycom.ptc.netmarkets.model.NmObject
      extended bycom.ptc.netmarkets.model.NmNamedObject
          extended bycom.ptc.netmarkets.project.NmProject
All Implemented Interfaces:
Comparable, Externalizable, NetFactor, NmActionTarget, NmDescribed, NmFormatable, NmNamed, Serializable

public class NmProject
extends NmNamedObject
implements NmDescribed, Externalizable

Use the newNmProject static factory method(s), not the NmProject constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private  String actualEndDate
           
private  String category
           
private static String CLASSNAME
           
private  String completionStatus
           
private  String description
           
private  String estimatedEndDate
           
static long EXTERNALIZATION_VERSION_UID
           
private  Vector folders
           
private  Vector groups
           
private  String health
           
private  Vector messages
           
protected static long OLD_FORMAT_VERSION_UID
           
private  Vector parts
           
private  String phase
           
private static String RESOURCE
           
private  String riskDescription
           
private  String riskValue
           
private  String scope
           
(package private) static long serialVersionUID
           
private  String sponsor
           
private  String startDate
           
private  String state
           
private  String statusDescription
           
static String TYPE
           
 
Fields inherited from class com.ptc.netmarkets.model.NmNamedObject
NO_TRUCATION, USER_PREFERENCE
 
Fields inherited from class com.ptc.netmarkets.model.NmObject
ADDITIONAL_INFO, MARKED_FOR_DELETE, OID, RESTORABLE, VIEW_ACTION, VIEW_URL
 
Fields inherited from interface com.ptc.netmarkets.model.NmDescribed
DESCRIPTION
 
Fields inherited from interface com.ptc.netmarkets.model.NmNamed
NAME
 
Fields inherited from interface com.ptc.netmarkets.util.misc.NmFormatable
DIV_CLASS, RENDER_WHILE_HIDDEN
 
Constructor Summary
NmProject()
           
 
Method Summary
 boolean checkAvailable(NmAction action, WTContainer container, HashMap checkInfo)
          

Supported API: false
 String getActualEndDate()
          Gets the value of the attribute: actualEndDate.
 String getCategory()
          Gets the value of the attribute: category.
 String getCompletionStatus()
          Gets the value of the attribute: completionStatus.
 String getConceptualClassname()
          Deprecated.  
 String getDescription()
          Gets the value of the attribute: description.
 String getEstimatedEndDate()
          Gets the value of the attribute: estimatedEndDate.
 Vector getFolders()
          Gets the value of the attribute: folders.
 Vector getGroups()
          Gets the value of the attribute: groups.
 String getHealth()
          Gets the value of the attribute: health.
 Vector getMessages()
          Gets the value of the attribute: messages.
 Vector getParts()
          Gets the value of the attribute: parts.
 String getPhase()
          Gets the value of the attribute: phase.
 NmProjectPlan getProjectPlan()
          Return the NmProjectPlan associated with this project or null if no project plan exists.
 String getRiskDescription()
          Gets the value of the attribute: riskDescription.
 String getRiskValue()
          Gets the value of the attribute: riskValue.
 String getScope()
          Gets the value of the attribute: scope.
 String getSponsor()
          Gets the value of the attribute: sponsor.
 String getStartDate()
          Gets the value of the attribute: startDate.
 String getState()
          Gets the value of the attribute: state.
 String getStatusDescription()
          Gets the value of the attribute: statusDescription.
 Object getValue(String attr_name)
          

Supported API: false
private  boolean isAdmin(WTUser user, WTContainer pc, HashMap checkInfo)
           
static NmProject newNmProject()
          Default factory for the class.
 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(NmProject thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setActualEndDate(String a_ActualEndDate)
          Sets the value of the attribute: actualEndDate.
 void setCategory(String a_Category)
          Sets the value of the attribute: category.
 void setCompletionStatus(String a_CompletionStatus)
          Sets the value of the attribute: completionStatus.
 void setDescription(String a_Description)
          Sets the value of the attribute: description.
 void setEstimatedEndDate(String a_EstimatedEndDate)
          Sets the value of the attribute: estimatedEndDate.
 void setFolders(Vector a_Folders)
          Sets the value of the attribute: folders.
 void setGroups(Vector a_Groups)
          Sets the value of the attribute: groups.
 void setHealth(String a_Health)
          Sets the value of the attribute: health.
 void setMessages(Vector a_Messages)
          Sets the value of the attribute: messages.
 void setParts(Vector a_Parts)
          Sets the value of the attribute: parts.
 void setPhase(String a_Phase)
          Sets the value of the attribute: phase.
 void setRiskDescription(String a_RiskDescription)
          Sets the value of the attribute: riskDescription.
 void setRiskValue(String a_RiskValue)
          Sets the value of the attribute: riskValue.
 void setScope(String a_Scope)
          Sets the value of the attribute: scope.
 void setSponsor(String a_Sponsor)
          Sets the value of the attribute: sponsor.
 void setStartDate(String a_StartDate)
          Sets the value of the attribute: startDate.
 void setState(String a_State)
          Sets the value of the attribute: state.
 void setStatusDescription(String a_StatusDescription)
          Sets the value of the attribute: statusDescription.
 void setValue(String attr_name, Object attr_value)
          

Supported API: false
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class com.ptc.netmarkets.model.NmNamedObject
compareTo, getMaxNameLength, getName, initialize, newNmNamedObject, newNmNamedObject, readVersion, setMaxNameLength, setName
 
Methods inherited from class com.ptc.netmarkets.model.NmObject
checkAccess, checkAccess, getAdditionalInfo, getClassInfo, getCollationKey, getDivClass, getOid, getViewAction, getViewUrl, initialize, initialize, isAdmin, isAdmin, isExchangeAdmin, isMarkedForDelete, isRenderWhileHidden, isRestorable, newNmObject, newNmObject, readVersion, setAdditionalInfo, setCollationKey, setDivClass, setMarkedForDelete, setOid, setRenderWhileHidden, setRestorable, setViewAction, setViewUrl, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

groups

private Vector groups

folders

private Vector folders

parts

private Vector parts

messages

private Vector messages

scope

private String scope

sponsor

private String sponsor

startDate

private String startDate

estimatedEndDate

private String estimatedEndDate

actualEndDate

private String actualEndDate

state

private String state

phase

private String phase

completionStatus

private String completionStatus

statusDescription

private String statusDescription

health

private String health

riskValue

private String riskValue

riskDescription

private String riskDescription

category

private String category

description

private String description

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

TYPE

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

NmProject

public NmProject()
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
Overrides:
writeExternal in class NmNamedObject
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
Overrides:
readExternal in class NmNamedObject
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(NmProject 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

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class NmNamedObject
Returns:
String

getGroups

public Vector getGroups()
Gets the value of the attribute: groups.

Supported API: false

Returns:
Vector

setGroups

public void setGroups(Vector a_Groups)
Sets the value of the attribute: groups.

Supported API: false

Parameters:
a_Groups -

getFolders

public Vector getFolders()
Gets the value of the attribute: folders.

Supported API: false

Returns:
Vector

setFolders

public void setFolders(Vector a_Folders)
Sets the value of the attribute: folders.

Supported API: false

Parameters:
a_Folders -

getParts

public Vector getParts()
Gets the value of the attribute: parts.

Supported API: false

Returns:
Vector

setParts

public void setParts(Vector a_Parts)
Sets the value of the attribute: parts.

Supported API: false

Parameters:
a_Parts -

getMessages

public Vector getMessages()
Gets the value of the attribute: messages.

Supported API: false

Returns:
Vector

setMessages

public void setMessages(Vector a_Messages)
Sets the value of the attribute: messages.

Supported API: false

Parameters:
a_Messages -

getScope

public String getScope()
Gets the value of the attribute: scope.

Supported API: false

Returns:
String

setScope

public void setScope(String a_Scope)
Sets the value of the attribute: scope.

Supported API: false

Parameters:
a_Scope -

getSponsor

public String getSponsor()
Gets the value of the attribute: sponsor.

Supported API: false

Returns:
String

setSponsor

public void setSponsor(String a_Sponsor)
Sets the value of the attribute: sponsor.

Supported API: false

Parameters:
a_Sponsor -

getStartDate

public String getStartDate()
Gets the value of the attribute: startDate.

Supported API: false

Returns:
String

setStartDate

public void setStartDate(String a_StartDate)
Sets the value of the attribute: startDate.

Supported API: false

Parameters:
a_StartDate -

getEstimatedEndDate

public String getEstimatedEndDate()
Gets the value of the attribute: estimatedEndDate.

Supported API: false

Returns:
String

setEstimatedEndDate

public void setEstimatedEndDate(String a_EstimatedEndDate)
Sets the value of the attribute: estimatedEndDate.

Supported API: false

Parameters:
a_EstimatedEndDate -

getActualEndDate

public String getActualEndDate()
Gets the value of the attribute: actualEndDate.

Supported API: false

Returns:
String

setActualEndDate

public void setActualEndDate(String a_ActualEndDate)
Sets the value of the attribute: actualEndDate.

Supported API: false

Parameters:
a_ActualEndDate -

getState

public String getState()
Gets the value of the attribute: state.

Supported API: false

Returns:
String

setState

public void setState(String a_State)
Sets the value of the attribute: state.

Supported API: false

Parameters:
a_State -

getPhase

public String getPhase()
Gets the value of the attribute: phase.

Supported API: false

Returns:
String

setPhase

public void setPhase(String a_Phase)
Sets the value of the attribute: phase.

Supported API: false

Parameters:
a_Phase -

getCompletionStatus

public String getCompletionStatus()
Gets the value of the attribute: completionStatus.

Supported API: false

Returns:
String

setCompletionStatus

public void setCompletionStatus(String a_CompletionStatus)
Sets the value of the attribute: completionStatus.

Supported API: false

Parameters:
a_CompletionStatus -

getStatusDescription

public String getStatusDescription()
Gets the value of the attribute: statusDescription.

Supported API: false

Returns:
String

setStatusDescription

public void setStatusDescription(String a_StatusDescription)
Sets the value of the attribute: statusDescription.

Supported API: false

Parameters:
a_StatusDescription -

getHealth

public String getHealth()
Gets the value of the attribute: health.

Supported API: false

Returns:
String

setHealth

public void setHealth(String a_Health)
Sets the value of the attribute: health.

Supported API: false

Parameters:
a_Health -

getRiskValue

public String getRiskValue()
Gets the value of the attribute: riskValue.

Supported API: false

Returns:
String

setRiskValue

public void setRiskValue(String a_RiskValue)
Sets the value of the attribute: riskValue.

Supported API: false

Parameters:
a_RiskValue -

getRiskDescription

public String getRiskDescription()
Gets the value of the attribute: riskDescription.

Supported API: false

Returns:
String

setRiskDescription

public void setRiskDescription(String a_RiskDescription)
Sets the value of the attribute: riskDescription.

Supported API: false

Parameters:
a_RiskDescription -

getCategory

public String getCategory()
Gets the value of the attribute: category.

Supported API: false

Returns:
String

setCategory

public void setCategory(String a_Category)
Sets the value of the attribute: category.

Supported API: false

Parameters:
a_Category -

getValue

public Object getValue(String attr_name)


Supported API: false

Parameters:
attr_name -
Returns:
Object

setValue

public void setValue(String attr_name,
                     Object attr_value)


Supported API: false

Parameters:
attr_name -
attr_value -

getProjectPlan

public NmProjectPlan getProjectPlan()
                             throws WTException
Return the NmProjectPlan associated with this project or null if no project plan exists.

Supported API: false

Returns:
NmProjectPlan
Throws:
WTException

newNmProject

public static NmProject newNmProject()
                              throws WTException
Default factory for the class.

Supported API: false

Returns:
NmProject
Throws:
WTException

getDescription

public String getDescription()
Gets the value of the attribute: description.

Supported API: false

Specified by:
getDescription in interface NmDescribed
Returns:
String

setDescription

public void setDescription(String a_Description)
Sets the value of the attribute: description.

Supported API: false

Specified by:
setDescription in interface NmDescribed
Parameters:
a_Description -

checkAvailable

public boolean checkAvailable(NmAction action,
                              WTContainer container,
                              HashMap checkInfo)
Description copied from class: NmObject


Supported API: false

Specified by:
checkAvailable in interface NmActionTarget
Overrides:
checkAvailable in class NmObject
Parameters:
action -
container -
checkInfo -
Returns:
boolean

isAdmin

private boolean isAdmin(WTUser user,
                        WTContainer pc,
                        HashMap checkInfo)