|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.projmgmt.monitor.ProjMonitorServerHelper
Helper class giving server access to ProjMonitorServiceSvr functionality.
Contains also utility methods.
Supported API: false
Extendable: false
wt.projmgmt.moinitor.ProjMonitorServiceSvr
,
Serialized FormField Summary | |
static int |
BOTH
Supported API: false |
private static String |
CLASSNAME
|
static int |
DOWN
Supported API: false |
static long |
EXTERNALIZATION_VERSION_UID
|
private static long |
MAX_DURATION
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private static String |
RESOURCE
|
(package private) static long |
serialVersionUID
|
static ProjMonitorServiceSvr |
service
Supported API: false |
static int |
UP
Supported API: false |
private static boolean |
VERBOSE
|
Constructor Summary | |
ProjMonitorServerHelper()
|
Method Summary | |
static void |
checkDuration(TimeToElapse duration)
Throws wt.util.ProjectManagementException if duration passed
as argument is larger than a customizable limit. |
static void |
checkEnabled(ExecutionObject exec_obj)
Throws an exception if object is not enabled. |
static void |
checkManagerAccess(ExecutionObject exec_obj,
String attr_key)
Throws an authorization exception if the current principal is not a project manager. |
static void |
checkNotClosed(ExecutionObject exec_obj)
Throws an exception if object's state is closed (COMPLETED or CANCELLED). |
static void |
checkRunning(ExecutionObject exec_obj)
Throws an exception if object's state is not RUNNING. |
static Timestamp |
computeTimePastDeadline(ExecutionObject exec_obj)
Auxiliary method to compute time before the object's deadline given the execution object. |
static Timestamp |
computeTimeToDeadline(ExecutionObject exec_obj)
Auxiliary method to compute time before the object's deadline given the execution object. |
static Enumeration |
getComponents(ExecutionObject exec_obj)
Returns components of execution object. |
static QueryResult |
getHolders(ExecutionObject exec_obj)
Returns an enumeration with the holders of the execution object (deliverable or node). |
private static ObjectIdentifier |
getOid(Object obj)
|
private static String |
getOidString(Object obj)
|
private static Timestamp |
getTimeToStart(Object object)
Returns time to start. |
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(ProjMonitorServerHelper thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
private static String |
showVector(Vector objs)
Returns a String contained the list of persistables in the Vector. |
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 BOTH
public static final int DOWN
public static final int UP
public static final ProjMonitorServiceSvr service
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
private static final boolean VERBOSE
private static final long MAX_DURATION
Constructor Detail |
public ProjMonitorServerHelper()
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(ProjMonitorServerHelper 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 void checkDuration(TimeToElapse duration) throws WTException
wt.util.ProjectManagementException
if duration passed
as argument is larger than a customizable limit. The customizable
limit is set as 'wt.calendar.delta' in 'wt.properties' in years.
The default value is 10 years.
duration
-
WTException
public static void checkEnabled(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static void checkManagerAccess(ExecutionObject exec_obj, String attr_key) throws WTException
exec_obj
- attr_key
-
WTException
public static void checkNotClosed(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static void checkRunning(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static Timestamp computeTimePastDeadline(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static Timestamp computeTimeToDeadline(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static QueryResult getHolders(ExecutionObject exec_obj) throws WTException
exec_obj
-
WTException
public static Enumeration getComponents(ExecutionObject exec_obj) throws WTException
WTException
private static String getOidString(Object obj)
private static String showVector(Vector objs)
private static ObjectIdentifier getOid(Object obj)
private static Timestamp getTimeToStart(Object object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |