wt.projmgmt.admin
Class StandardProjAdminService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.projmgmt.admin.StandardProjAdminService
All Implemented Interfaces:
Manager, NetFactor, ProjAdminService, ProjAdminServiceSvr, Serializable

public class StandardProjAdminService
extends StandardManager
implements ProjAdminService, ProjAdminServiceSvr, Serializable

Standard implementation of the proj admin service interfaces

Use the newStandardProjAdminService static factory method(s), not the StandardProjAdminService 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: true

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
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
StandardProjAdminService()
           
 
Method Summary
 Project2 create(Project2 project)
          Persists a Project2 object.
 Project2 create(Project2 project, String type)
          Persists a Project2 object.
 String getConceptualClassname()
          Deprecated.  
 ProjectPlan getProjectPlan(Project2 project)
          Deprecated. at 7.0 - Use the getProjectPlan() api on the Project2 instead.
 TimeZone getServerTimeZone()
          Returns the method server TimeZone.
static StandardProjAdminService newStandardProjAdminService()
          Default factory for the class.
protected  void performStartupProcess()
          Override the method from StandardManager to provide ProjAdminServices with custom startup for event subscription.
protected  void registerAsListener()
          Register as a listener for dispatched events.
 void registerEvents()
           
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, 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
Constructor Detail

StandardProjAdminService

public StandardProjAdminService()
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

newStandardProjAdminService

public static StandardProjAdminService newStandardProjAdminService()
                                                            throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardProjAdminService
Throws:
WTException

getProjectPlan

public ProjectPlan getProjectPlan(Project2 project)
                           throws WTException
Deprecated. at 7.0 - Use the getProjectPlan() api on the Project2 instead.

Return the ProjectPlan that is associated with this Project2 or null if none exists.

Supported API: false

Specified by:
getProjectPlan in interface ProjAdminService
Parameters:
project -
Returns:
ProjectPlan
Throws:
WTException

create

public Project2 create(Project2 project)
                throws WTException
Persists a Project2 object.

Supported API: true

Specified by:
create in interface ProjAdminService
Parameters:
project -
Returns:
Project2
Throws:
WTException

getServerTimeZone

public TimeZone getServerTimeZone()
                           throws WTException
Returns the method server TimeZone. Used in CalendarHelper

Supported API: false

Specified by:
getServerTimeZone in interface ProjAdminService
Returns:
TimeZone
Throws:
WTException

create

public Project2 create(Project2 project,
                       String type)
                throws WTException
Persists a Project2 object. The syntax of the type string consists of "wt.projmgmt.admin.Project2" followed by the soft type structure as defined in the Type Manager, with each level of the tree separated by a vertical bar symbol "|". For example: "wt.projmgmt.admin.Project2|softTypeProject2|subSoftTypeProject2" corresponds to the following tree structure in the Type Manager: |-- wt.projmgmt.admin.Project2 |-- softTypeProject2 |-- subSoftTypeProject2

Supported API: true

Specified by:
create in interface ProjAdminService
Parameters:
project -
type -
Returns:
Project2
Throws:
WTException

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Override the method from StandardManager to provide ProjAdminServices with custom startup for event subscription. When subscribing create an anonymous inner class adapter per subscription to handle each specific event being subscribed to.

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

registerAsListener

protected void registerAsListener()
                           throws ManagerException
Register as a listener for dispatched events. This method registers for:

Throws:
ManagerException

registerEvents

public void registerEvents()