wt.projmgmt
Class StandardProjMgmtService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.projmgmt.StandardProjMgmtService
All Implemented Interfaces:
Manager, NetFactor, ProjMgmtService, ProjMgmtServiceSvr, Serializable

public class StandardProjMgmtService
extends StandardManager
implements ProjMgmtService, ProjMgmtServiceSvr, Serializable

Use the newStandardProjMgmtService static factory method(s), not the StandardProjMgmtService 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 static String CLASSNAME
           
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardProjMgmtService()
           
 
Method Summary
 void emitEvent(String event_type, Object target, Object emitter)
          Emits a project management service event.
 void emitViewContentEvent(String target_ref_str)
          Emits a VIEW_CONTENTproject management service event.
private  boolean equals(Object obj1, Object obj2)
          Checks for equality when one or both of the objects might be null.
private  Vector getActualTypes(ExecutionObject source, MonitorInfo old_info)
          Returns a vetor of possible event types associated with either status, percent complete or estimated finish date.
 String getConceptualClassname()
          Deprecated.  
private  ObjectIdentifier getOid(Object obj)
           
private  String getOidString(Object obj)
           
static StandardProjMgmtService newStandardProjMgmtService()
          Default factory for the class.
protected  void performStartupProcess()
          

Supported API: false
private  void processEvents(Vector types, Timestamp now, ExecutionObject source, Object old_val)
           
 void processProjMgmtEvent(ProjectEventType event_type, ExecutionObject source, Object old_val)
          Creates and emits project management service event.
private  void registerAsListener()
          Register as listener to the following events: all synch robot events PersistenceManagerEvent.PRE_DELETE
 void registerEvents(ManagerService ms)
          Registers all events that can be emitted by service.
private  boolean validStateChange(ProjectPlan plan, ProjectState new_state, ProjectState old_state)
          Checks whether the state change is valid.
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, 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

VERBOSE

private static final boolean VERBOSE
Constructor Detail

StandardProjMgmtService

public StandardProjMgmtService()
Method Detail

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 StandardManager
Returns:
String

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException


Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

registerEvents

public void registerEvents(ManagerService ms)
Registers all events that can be emitted by service.

Supported API: false

Specified by:
registerEvents in interface Manager
Overrides:
registerEvents in class StandardManager
Parameters:
ms -

newStandardProjMgmtService

public static StandardProjMgmtService newStandardProjMgmtService()
                                                          throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardProjMgmtService
Throws:
WTException

emitEvent

public void emitEvent(String event_type,
                      Object target,
                      Object emitter)
               throws WTException
Emits a project management service event. The event type, the source object and the emitter object (service or class) are passed as arguments.

Supported API: false

Specified by:
emitEvent in interface ProjMgmtService
Parameters:
event_type -
target -
emitter -
Throws:
WTException

emitViewContentEvent

public void emitViewContentEvent(String target_ref_str)
                          throws WTException
Emits a VIEW_CONTENTproject management service event. A string representation of the object reference is passed as argument. This method is primarily used when viewing an object with ProductView.

Supported API: false

Specified by:
emitViewContentEvent in interface ProjMgmtService
Parameters:
target_ref_str -
Throws:
WTException

processProjMgmtEvent

public void processProjMgmtEvent(ProjectEventType event_type,
                                 ExecutionObject source,
                                 Object old_val)
                          throws WTException
Creates and emits project management service event.

Supported API: false

Specified by:
processProjMgmtEvent in interface ProjMgmtServiceSvr
Parameters:
event_type -
source -
old_val -
Throws:
WTException

getActualTypes

private Vector getActualTypes(ExecutionObject source,
                              MonitorInfo old_info)
                       throws WTException
Returns a vetor of possible event types associated with either status, percent complete or estimated finish date.

Throws:
WTException

processEvents

private void processEvents(Vector types,
                           Timestamp now,
                           ExecutionObject source,
                           Object old_val)
                    throws WTException
Throws:
WTException

registerAsListener

private void registerAsListener()
                         throws ManagerException
Register as listener to the following events:

Throws:
ManagerException

validStateChange

private boolean validStateChange(ProjectPlan plan,
                                 ProjectState new_state,
                                 ProjectState old_state)
Checks whether the state change is valid.


equals

private boolean equals(Object obj1,
                       Object obj2)
Checks for equality when one or both of the objects might be null.


getOid

private ObjectIdentifier getOid(Object obj)

getOidString

private String getOidString(Object obj)