|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.projmgmt.execution.ProjExecHelper
Helper class giving remote access to ProjExecService functionality.
Supported API: true
Extendable: false
ProjExecService
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
static int |
COST_ATTR
Supported API: false |
static long |
EXTERNALIZATION_VERSION_UID
|
static int |
FINISH_ATTR
Supported API: false |
protected static long |
OLD_FORMAT_VERSION_UID
|
static int |
PERCENT_ATTR
Supported API: false |
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
(package private) static boolean |
SERVER
|
static ProjExecService |
service
Supported API: true |
static int |
STATUS_ATTR
Supported API: false |
static int |
WORK_ATTR
Supported API: false |
Constructor Summary | |
ProjExecHelper()
|
Method Summary | |
static void |
checkProjectCycle(ProjectPlan host,
ProjectPlan plan)
Throws exception if a 'host' is the same as 'plan' or if 'host' is a sub-project (directly or indirectly) of 'plan'. |
private static ObjectIdentifier |
getOid(Object obj)
|
static TimeToElapse |
getPlannedDuration(ExecutionObject exec_obj)
|
static ProjectState |
getProjectState(WfState state)
Returns the project state corresponding to a workflow state passed as argument. |
private static boolean |
getRolledUpValue(ExecutionConfiguration config,
int attribute)
|
static Timestamp |
getStart(ExecutionObject exec_obj)
Returns the best estimate for the start time. |
static ProcessDataInfo |
getVariableSignature()
Returns basic variablesignature data for the creation of execution object. |
static WfState |
getWfState(ProjectState state)
Returns the workflow state corresponding to a project state passed as argument. |
static WfTransition |
getWfTransition(ProjectState old_state,
ProjectState new_state)
Returns the workflow transition corresponding to pair of project states passed as argument as old and new states. |
static boolean |
hasTasks(ExecutionObject exec_obj)
Determines whether a ExecutionObject
has subordinate tasks (ProjectWorkItem ). |
static boolean |
isAutomatic(ExecutionObject exec_obj)
Return true if the specified ExecutionObject
is executing in automatic mode (either with or without tasks). |
static boolean |
isCompleted(ExecutionObject exec_obj)
Return true if the specified ExecutionObject
is completed. |
static boolean |
isDefined(ExecutionObject exec_obj)
Return true if the specified ExecutionObject
is defined. |
static boolean |
isDisplayAsRolledUp(ExecutionObject exec_obj,
int attribute)
Determines whether the dynamic attribute (status, percent, estimated finish, total work and work cost) of the object passed as argument should be displayed as rolled up or overridden. |
static boolean |
isManual(ExecutionObject exec_obj)
Return true if the specified ExecutionObject
is executing in manual mode. |
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(ProjExecHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
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 int STATUS_ATTR
public static final int PERCENT_ATTR
public static final int FINISH_ATTR
public static final int WORK_ATTR
public static final int COST_ATTR
public static final ProjExecService service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
static final boolean SERVER
Constructor Detail |
public ProjExecHelper()
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(ProjExecHelper 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 WfState getWfState(ProjectState state)
state
-
WfState
,
ProjectState
public static ProjectState getProjectState(WfState state)
state
-
WfState
,
ProjectState
public static WfTransition getWfTransition(ProjectState old_state, ProjectState new_state)
old_state
- new_state
-
WfTransition
,
ProjectState
public static ProcessDataInfo getVariableSignature() throws WTException
WTException
public static boolean isDisplayAsRolledUp(ExecutionObject exec_obj, int attribute)
exec_obj
- attribute
-
public static Timestamp getStart(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static boolean hasTasks(ExecutionObject exec_obj)
ExecutionObject
has subordinate tasks (ProjectWorkItem
).
Returns 'true' if this is the case, 'false' otherwise.
Only ProjectActivity
object may have
tasks, so this method returns false if the object passed as argument
is not an activity.
Supported API: false
exec_obj
-
public static boolean isCompleted(ExecutionObject exec_obj)
true
if the specified ExecutionObject
is completed. An execution object is completed under two different
conditions:
ProjectState.COMPLETED
exec_obj
- determine whether this object is completed or not
public static boolean isDefined(ExecutionObject exec_obj)
true
if the specified ExecutionObject
is defined. An execution object is defined under two different conditions:
ProjectState.DEFINED
exec_obj
- determine whether this object is defined or not
public static boolean isManual(ExecutionObject exec_obj)
true
if the specified ExecutionObject
is executing in manual mode.
exec_obj
- determine whether this object is executing in manual mode or not
public static boolean isAutomatic(ExecutionObject exec_obj)
true
if the specified ExecutionObject
is executing in automatic mode (either with or without tasks).
exec_obj
- determine whether this object is executing in automatic mode or not
public static void checkProjectCycle(ProjectPlan host, ProjectPlan plan) throws WTException
host
- plan
-
WTException
private static ObjectIdentifier getOid(Object obj)
public static TimeToElapse getPlannedDuration(ExecutionObject exec_obj) throws WTException
WTException
private static boolean getRolledUpValue(ExecutionConfiguration config, int attribute)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |