com.ptc.netmarkets.projmgmt
Class StandardNmProjMgmtService

java.lang.Object
  extended bywt.services.StandardManager
      extended bycom.ptc.netmarkets.projmgmt.StandardNmProjMgmtService
All Implemented Interfaces:
Manager, NetFactor, NmProjMgmtService, Serializable

public class StandardNmProjMgmtService
extends StandardManager
implements NmProjMgmtService, Serializable

Use the newStandardNmProjMgmtService static factory method(s), not the StandardNmProjMgmtService 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

Nested Class Summary
static class StandardNmProjMgmtService.PlanModelCache
           
static class StandardNmProjMgmtService.PlanModelIgnoreList
           
 
Field Summary
private static String ADMIN_TOOLBAR
           
private static String ADMIN_TOOLBAR_INACTIVE
           
private static String ADMIN_TOOLBAR_PLAN_STATECHANGE
           
private static String ADMIN_TOOLBAR_PLAN_STATECHANGE_AND_IMPORT
           
private static String ADMIN_TOOLBAR_PLAN_STATECHANGE_AND_IMPORT_EDIT
           
private static boolean ALLOW_CACHING
           
private static int CACHE_COUNT
           
private static String CALCULATED_IMAGE
           
private static int CHUNKSIZE
           
private static String CLASSNAME
           
private static String COMPLETED_WORK_GIF
           
private static int DATE_TIME_FORMAT
           
private static int LIMIT
           
private static String MODEL_RESOURCE
           
private static String MONITOR_RESOURCE
           
private static boolean NAME_LINKS
           
private static String NBSP
           
private static int NRETRIES
           
private static long ONE_DAY
           
private static long ONE_HOUR
           
private static String OPEN_WORK_GIF
           
private static String OVERRIDDEN_IMAGE
           
private static String PLAN_RESOURCE
           
private static StandardNmProjMgmtService.PlanModelCache planModelCache
           
private static StandardNmProjMgmtService.PlanModelIgnoreList planModelIgnoreList
           
private static String PROJECT_RESOURCE_RESOURCE
           
static NmProjectService project_service
           
private static String RESOURCE
           
private static String SIMPLE_TOOLBAR
           
private static int SLEEPTIME
           
private static boolean VERBOSE
           
private static boolean VERBOSE_CACHE
           
private static Work ZEROWORK
           
 
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
StandardNmProjMgmtService()
           
 
Method Summary
private  void addChangeModel(NmProjMgmtObject pmObj, NmChangeModel nmChange1, NmHTMLTreeNode nextNode)
           
 void addDeliverables(NmCommandBean cb, NmOid milestoneOid, ArrayList oldList, ArrayList newList)
          

Supported API: false
private  void addDeliverableToHolder(DeliverableHolder holder, Deliverable new_deliverable)
           
 NmChangeModel[] addPredecessors(NmCommandBean cb)
          

Supported API: false
private  NmChangeModel[] addRemovePredecessors(NmCommandBean cb, boolean doRemoveOperation)
           
 NmChangeModel[] addToSummaryActivity(NmCommandBean cb)
          

Supported API: false
 void addToTimeline(NmCommandBean cb)
          

Supported API: false
 NmChangeModel[] changeExecutionState(NmOid nm_oid, ProjectState new_state)
          

Supported API: false
 void changePlanModel(NmOid oid, NmChangeModel[] nmcm)
          Update the tree model of the plan from changes made in a different method server

Supported API: true
 NmChangeModel[] changePlanState(NmCommandBean cb, ProjectState new_state)
          

Supported API: false
 NmChangeModel[] changeToActivity(NmOid nm_oid)
          

Supported API: false
 NmChangeModel[] changeToMilestone(NmOid nm_oid)
          

Supported API: false
 NmChangeModel[] changeToProxy(NmOid nm_oid)
          

Supported API: false
 NmChangeModel[] changeToSummary(NmOid nm_oid)
          

Supported API: false
 void copy(NmCommandBean cb)
          

Supported API: false
 NmChangeModel[] create(String type, NmCommandBean cb, Hashtable params)
          

Supported API: false
private  NmChangeModel[] createChangeModelArray(int size)
           
private  NmChangeModel[] createDeliverable(NmOid project_oid, ProjectPlan plan, Hashtable params)
           
private  Milestone createMilestone(ProjectPlan plan, WfContainer container, Hashtable params)
           
private  StandardNmProjMgmtService.PlanModelCache createPlanModelCache()
           
private  StandardNmProjMgmtService.PlanModelIgnoreList createPlanModelIgnoreList()
           
private  ProjectActivity createProjectActivity(ProjectPlan plan, WfContainer container, Hashtable params)
           
private  ProjectProxy createProjectProxy(ProjectPlan plan, WfContainer container, Hashtable params)
           
private  NmChangeModel[] createProjectResource(NmOid project_oid, ProjectPlan plan, Hashtable params)
           
private  NmChangeModel[] createResourceChangeModel(ProjectResource resource, NmOid project_oid, int change_type)
           
private  SummaryActivity createSummaryActivity(ProjectPlan plan, WfContainer container, Hashtable params)
           
 void cut(NmCommandBean cb)
          

Supported API: false
 NmChangeModel[] delete(NmCommandBean cb)
          

Supported API: false
(package private)  void dumpParams(Hashtable params, String title)
           
 void enableCacheForProject(NmOid oid)
          

Supported API: false
private  NmHTMLActionModel enablePlanActions(NmHTMLActionModel planActions, ProjectState planState)
           
private  Enumeration findDocuments(Project2 project)
           
private  Enumeration findParts(Project2 project)
           
private  void fixIdInPlan(int newId, int origId, NmProjectPlanTreeModel model)
           
 NmHTMLActionModel get_RowActionModel(NmProjMgmtObject nmPMObj)
          

Supported API: false
 NmHTMLTable getActivities(NmCommandBean cb)
          

Supported API: false
 NmHTMLTable getActivities(NmCommandBean cb, boolean restrictToCurrentUser)
          

Supported API: false
 NmHTMLTable getActivityDeliverables(NmCommandBean cb)
          

Supported API: false
 NmHTMLViewTable getActivityMilestoneViewTableImpl(NmCommandBean cb)
           
 ArrayList getActivityRowData(NmProjectActivity nmActi)
           
 NmHTMLTable getActivityTasks(NmCommandBean cb)
          

Supported API: false
 NmNameValuePair[] getActivityValues(NmOid nm_oid)
          

Supported API: false
 NmHTMLViewTable getActivityViewTable(NmCommandBean cb)
          

Supported API: false
private  String getAssigneeList(ProjectActivity activity)
           
private  boolean getBoolean(Hashtable params, String key)
           
 Hashtable getCategoryValues()
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
private  String getContainedNodeList(SummaryActivity summary)
           
 String getCurrentCost(NmProjMgmtObject nm_obj)
          

Supported API: false
private  NmUser getCurrentNmUser()
           
 NmNameValuePair[] getDefinedProjectResources(NmCommandBean cb)
          

Supported API: false
private  NmChangeModel[] getDeliverableChangeModel(NmChangeModel[] change_model, NmOid project_oid, DeliverableHolder holder, Deliverable deli)
           
private static HashMap getDeliverableHash(ArrayList nodes)
           
private  String getDeliverableList(ProjectNode holder)
           
 Hashtable getDeliverableMilestones(NmOid nm_oid)
          

Supported API: false
 ArrayList getDeliverableOfTarget(NmOid oid)
          

Supported API: false
 ArrayList getDeliverableRowData(NmDeliverable nmDeli)
           
 ArrayList getDeliverableRowData(NmOid oid)
           
 NmHTMLTable getDeliverables(NmOid proj_oid, NmCommandBean cb)
          

Supported API: false
 ArrayList getDeliverableSet(NmCommandBean cb, NmOid milestoneOid)
          

Supported API: false
private  NmHTMLTable getDeliverablesTable(QueryResult deliverables)
           
 NmHTMLViewTable getDeliverableViewTable(NmCommandBean cb)
          

Supported API: false
 HashMap getDetailsModels(NmCommandBean cb)
          Get all the information needed for the Details page of plan objects.
private  long getDuration(ExecutionObject exec_obj)
           
private  int getDuration(Hashtable params)
          Returns the duration as entered in the page.
private  NmModel getFullTree(NmOid oid)
           
private  ObjectIdentifier getId(Object obj)
           
private  int getInt(Hashtable params, String key)
           
 ArrayList getItemRowData(NmProjMgmtObject nmItem)
           
private  String getLCState(Deliverable deliver)
           
 Hashtable getLCStateValues()
          

Supported API: false
 Hashtable getLCStateValues(String oid_str)
          Returns all lifecycle values that are valid for an object whose id is passed as a string.
private static Vector getManagers(ExecutionObject exec_obj)
           
 ArrayList getMilestoneRowData(NmMilestone nmMile)
           
 NmHTMLTable getMilestones(NmCommandBean cb)
          

Supported API: false
 ArrayList getMilestonesAndSummaryActivities(NmCommandBean cb)
          

Supported API: false
 NmHTMLTable getMilestoneTimeline(NmCommandBean cb)
          

Supported API: false
 NmHTMLViewTable getMilestoneViewTable(NmCommandBean cb)
          

Supported API: false
 NmHTMLActionModel getMoreModel(NmOid nm_oid, String amName)
          

Supported API: false
 ArrayList getMyDeliverableRowData(NmDeliverable nmDeli)
           
 ArrayList getMyNodeRowData(NmProjMgmtObject nmPMObj)
           
private  NmUser getNmOwner(Persistable aPersistable)
           
 NmProjMgmtObject getNmProjMgmtObject(NmOid nm_oid)
          

Supported API: false
private  NmProjMgmtObject getNmProjMgmtObject(ProjectNode node)
           
 NmProjMgmtObject getNmProjMgmtObjectFromCache(NmOid nm_oid)
          

Supported API: false
 NmUser getNmProjMgmtObjectOwner(NmProjMgmtObject anObject)
          

Supported API: false
private  Object getNmSubProject(ProjectProxy proxy)
           
 ArrayList getNodeRowData(NmProjMgmtObject nmPMObj, boolean useServerLocale)
           
 ArrayList getNodeRowData(NmProjMgmtObject nmPMObj, boolean useServerLocale, boolean isProjManager)
           
 ArrayList getNodeRowData(NmProjMgmtObject nmPMObj, boolean useServerLocale, boolean isProjManager, boolean useMore)
           
 ArrayList getNodeRowData(NmProjMgmtObject nmPMObj, boolean useServerLocale, boolean isProjManager, boolean useMore, HashMap nodedelis)
           
 ArrayList getNodeRowData1(NmProjMgmtObject nmPMObj, boolean useServerLocale)
           
private  NmOid getOidFromObject(Persistable pNode)
           
private  NmOid getOidFromRef(WfContainerReference pNode)
           
private  String getOwnerId(Ownable own_obj)
           
private  NmHTMLTreeNode getParent(int index, int[] indexes, ArrayList indexToNode)
           
private  NmHTMLTreeNode getParentToRemoveFrom(int index, int[] indexes, ArrayList indexToNode)
           
 NmAction getPasteTargetAction(NmCommandBean cb)
          

Supported API: false
private  Integer getPercentComplete(ExecutionObject exec_obj)
           
private  NmHTMLActionModel getPlanActionModel(boolean projManager, ProjectPlan plan, Project2 project)
           
private  String getPlanActionsHtml(NmOid projectOid)
           
 NmHTMLTable getPlanItems(NmCommandBean cb)
          

Supported API: false
 NmModel getPlanModel(NmOid oid)
          Get the tree model of the forum to display

Supported API: true
private  StandardNmProjMgmtService.PlanModelCache getPlanModelCache()
           
private  StandardNmProjMgmtService.PlanModelIgnoreList getPlanModelIgnoreList()
           
private  String getPlanStateHtml(ProjectPlan plan)
           
private  void getPredecessors(ProjectPlan plan, Hashtable params, Vector predecessors, Vector linkTypes)
           
 Hashtable getPredecessorValues(NmOid nm_oid)
          

Supported API: false
private  ProjectNode getProjectNode(ProjectPlan plan, int nodeID)
           
 NmHTMLTableTree getProjectNodes(NmCommandBean cb)
          

Supported API: false
 NmHTMLTableTree getProjectNodes(NmCommandBean cb, boolean useMore)
          

Supported API: false
 Object[] getProjectNodeSelectUtil(NmCommandBean cb, Class nodeClass)
          

Supported API: false
 Hashtable getProjectNodeValues(NmOid nm_oid)
          

Supported API: false
private  ProjectPlan getProjectPlan(NmOid proj_oid)
           
 NmHTMLTable getProjectResources(NmOid proj_oid, NmCommandBean cb)
          Returns plan resources.
private  NmHTMLTable getProjectResourcesActive(ProjectPlan plan, boolean isAdmin, Locale locale, ResourceBundle rb)
          Returns all utilized plan resources.
private  NmHTMLTable getProjectResourcesAll(ProjectPlan plan, boolean isAdmin, Locale locale, ResourceBundle rb)
          Returns plan resources.
private  NmHTMLTable getProjectResourcesCosts(ProjectPlan plan, boolean isAdmin, Locale locale, ResourceBundle rb)
          Returns all utilized plan resources with cost information.
 NmHTMLViewTable getProxyViewTable(NmCommandBean cb)
          

Supported API: false
 String getResourceValues(NmProjMgmtObject nm_obj)
          

Supported API: false
 Hashtable getRiskValues()
          

Supported API: false
private  NmHTMLActionModel getRowActionModel(NmProjMgmtObject nmPMObj)
           
private  NmHTMLActionModel getRowActionModel(NmProjMgmtObject nmPMObj, boolean isProjManager, boolean isPlanActive)
           
private  NmHTMLActionModel getRowActionModel(NmProjMgmtObject nmPMObj, boolean isProjManager, boolean isPlanActive, boolean useMore)
           
private  NmHTMLActionModel getRowActionModel(NmProjMgmtObject nmPMObj, boolean isProjManager, boolean isPlanActive, boolean useMore, Locale locale)
           
 Hashtable getStateValues()
          

Supported API: false
 Hashtable getStateValues(NmProjMgmtObject page_obj)
          Resturns a Hashtable with valid states for the execution object whose's oid is passed as a String.
 Hashtable getStatusValues()
          

Supported API: false
 Hashtable getSubProjectValues(NmOid proj_oid)
          

Supported API: false
 NmHTMLTable getSummaryTasks(NmCommandBean cb)
          

Supported API: false
 NmNameValuePair[] getTargetValues(NmOid proj_oid)
          

Supported API: false
private  Date getTimelineDate(NmProjMgmtObject nmPmObj)
          Get the date that should be displayed in the timeline.
private  Timestamp getTimestamp(Hashtable params, String key)
           
private  TimeToElapse getTimeToElapse(Hashtable params, String key)
           
 String getTotalCost(NmProjMgmtObject nm_obj)
          

Supported API: false
private  String getType(Persistable persistable)
           
 WTPrincipal getUser(Hashtable params, String key)
           
 NmHTMLTable getUserDeliverables(NmOid proj_oid, NmCommandBean cb)
          

Supported API: false
 NmHTMLTable getUserNodes(NmOid proj_oid, NmCommandBean cb)
          

Supported API: false
 NmDisplayPrincipal[] getUsers(NmOid proj_oid)
          

Supported API: false
 ArrayList getValidMultiUpdateObjects(ArrayList theOids)
          Takes a list of Oids and returns a list of valid, updatable NmProjMgmtObjects

Supported API: false
private  NmAction getWorkAction(WorkItem work, Locale locale)
           
private  String getWorkValue(Work work, String default_str)
           
private  boolean hasChildren(NmChangeModel nmcm, NmProjectPlanTreeModel model)
           
private  boolean hasNonConsecutiveNodes(ArrayList selected, ArrayList indexToNode)
           
 boolean hasPlanAccess(NmOid projectOid)
          

Supported API: false
private  boolean idChanged(NmChangeModel nmcm, NmProjectPlanTreeModel model)
           
private  Timestamp incrementOneDay(Timestamp aTime)
           
private  int indexOfPersistable(Vector v, Persistable p)
           
private  boolean inSelected(int idx, int[] indexes)
           
private  boolean isClosed(ExecutionObject exec_obj)
           
private  boolean isDefining(ExecutionObject exec_obj)
           
 boolean isManager(NmCommandBean cb)
          

Supported API: false
private  boolean isManualExecutionMode(ExecutionObject exec_obj)
           
private  boolean isRollUpFinish(Hashtable params)
           
private  boolean isRollUpPerformedWork(Hashtable params)
           
private  boolean isRollUpStatus(Hashtable params)
           
private  boolean isRollUpTotalWork(Hashtable params)
           
private  boolean isRunning(ExecutionObject exec_obj)
           
private  boolean isThreadWorthy()
           
 boolean isTrackCost(NmOid oid)
          

Supported API: false
 void modifyTimeline(NmCommandBean cb, ArrayList oldTimeline, ArrayList newTimeline)
          

Supported API: false
private static boolean mouDateChanged(String tmp, Object o, Locale locale, TimeZone localTimeZone)
           
private static boolean mouNumberChanged(String tmp, double d)
           
 NmChangeModel[] moveTo(NmCommandBean cb, String position, String positionID)
          

Supported API: false
 ArrayList multiObjectUpdate(Hashtable params)
          A method to update a list of objects in sequence.
static StandardNmProjMgmtService newStandardNmProjMgmtService()
          Default factory for the class.
 NmChangeModel[] overrideStatus(String type, NmCommandBean cb, Hashtable params)
          

Supported API: false
private  boolean parentChanged(NmChangeModel nmcm, NmProjectPlanTreeModel model)
           
 NmChangeModel[] paste(NmCommandBean cb)
          

Supported API: false
protected  void performStartupProcess()
          Override the method from StandardManager to provide NmProjMgmtServices with custom startup for event subscription.
private  NmOid proceed(NmOid poid, int type, Cache cache)
           
private  void processTarget(Persistable target, int type1, StandardNmProjMgmtService.PlanModelCache cache)
           
protected  void registerAsListener()
          Register as a listener for dispatched events.
 void removeDeliverable(NmCommandBean cb)
          

Supported API: false
 void removeFromCache(NmOid oid)
          

Supported API: false
 NmChangeModel[] removeFromSummaryActivity(NmCommandBean cb)
          

Supported API: false
 NmChangeModel[] removePredecessors(NmCommandBean cb)
          

Supported API: false
private  ExecutionObject restoreOverridenAttributes(ExecutionObject exec_obj, Hashtable params)
           
 NmChangeModel[] rollUp(NmOid nm_oid)
          

Supported API: false
 Timestamp rollUpPlannedStart(ExecutionObject exObj)
          Returns the earliest planned start roll-up by the children.
private  boolean same(Object obj1, Object obj2)
           
private  boolean sameDay(Timestamp time1, Timestamp time2)
          Assumes time1 != null.
private  void setActivityResources(ProjectActivity projAct, Hashtable params)
           
private  void setColumnNames(ResourceBundle rbPlan, NmHTMLTableTree model, Locale locale, String planActions)
           
private  ExecutionObject setConfiguration(ExecutionObject exec_obj, Hashtable params)
           
private  ExecutionObject setExecutionObjectAttributes(ProjectPlan plan, ExecutionObject exec_obj, Hashtable params)
           
private  void setIndexesForSelectedNodes(ArrayList selected, int[] idx, ArrayList indexToNode)
           
private  ExecutionObject setProxyAttributes(ProjectPlan plan, ProjectProxy proxy, Hashtable params)
           
private  void setResourceAttributes(ProjectResource resource, Hashtable params)
           
private  void setResourceParams(Hashtable params, Vector resources, Vector units, ProjectPlan plan)
           
private  Deliverable setTargetNState(Deliverable deliverable, Hashtable params)
           
private  void subscribe(ExecutionObject object, ProjectEventType event)
           
 void subscribe(String type, NmCommandBean cb, Hashtable params)
          

Supported API: false
private  void unsubscribe(ExecutionObject object, ProjectEventType event)
           
 NmChangeModel[] update(String type, NmCommandBean cb, Hashtable params)
          

Supported API: false
private  ProjectActivity updateActivityOwnership(ProjectActivity exec_obj, Hashtable params)
           
private  ProjectActivity updateActivityResources(ProjectActivity projAct, Hashtable params)
           
private  void updateContainedObjects(SummaryActivity summary, Hashtable params)
           
private  ExecutionObject updateDeadline(ExecutionObject exec_obj, Hashtable params)
           
private  ExecutionObject updateDefinitionAttributes(ExecutionObject exec_obj, Hashtable params)
           
private  NmChangeModel[] updateDeliverable(NmOid project_oid, Deliverable deli, Hashtable params)
           
private  ExecutionObject updateDynamicAttributes(ExecutionObject exec_obj, Hashtable params)
           
private  ExecutionObject updateExecutionState(ExecutionObject exec_obj, Hashtable params)
           
private  NmChangeModel[] updateMilestone(NmOid project_oid, Milestone mile, Hashtable params)
           
private  int updateMilestones(Deliverable deli, Hashtable params)
           
private  ExecutionObject updateOwnerPmSubscriptions(ExecutionObject obj, Hashtable params, boolean isCreate)
           
private  ExecutionObject updateOwnerPmSubscriptions(ExecutionObject obj, Hashtable params, boolean isCreate, boolean beforeDeadlineChanged, boolean afterDeadlineChanged)
           
private  ProjectNode updatePredecessors(ProjectNode node, Hashtable params)
           
private  NmChangeModel[] updateProjectActivity(NmOid project_oid, ProjectActivity proj_act, Hashtable params)
           
private  NmChangeModel[] updateProjectProxy(NmOid project_oid, ProjectProxy proxy, Hashtable params)
           
private  NmChangeModel[] updateProjectResource(NmOid project_oid, ProjectResource resource, Hashtable params)
           
private  ProjectResource updateResourceAttributes(ProjectResource resource, Hashtable params)
           
private  ExecutionObject updateStartTime(ExecutionObject exec_obj, Hashtable params)
           
private  NmChangeModel[] updateSummaryActivity(NmOid project_oid, SummaryActivity summ_act, Hashtable params)
           
private  NmDisplayPrincipal[] vecNmDisplayPrincipalToArray(Vector v)
           
private static void verbosePrint(String s)
           
 
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

MONITOR_RESOURCE

private static final String MONITOR_RESOURCE

MODEL_RESOURCE

private static final String MODEL_RESOURCE
See Also:
Constant Field Values

project_service

public static final NmProjectService project_service

VERBOSE

private static boolean VERBOSE

NRETRIES

private static final int NRETRIES
See Also:
Constant Field Values

SLEEPTIME

private static final int SLEEPTIME
See Also:
Constant Field Values

SIMPLE_TOOLBAR

private static final String SIMPLE_TOOLBAR
See Also:
Constant Field Values

ADMIN_TOOLBAR

private static final String ADMIN_TOOLBAR
See Also:
Constant Field Values

ADMIN_TOOLBAR_PLAN_STATECHANGE

private static final String ADMIN_TOOLBAR_PLAN_STATECHANGE
See Also:
Constant Field Values

ADMIN_TOOLBAR_PLAN_STATECHANGE_AND_IMPORT

private static final String ADMIN_TOOLBAR_PLAN_STATECHANGE_AND_IMPORT
See Also:
Constant Field Values

ADMIN_TOOLBAR_PLAN_STATECHANGE_AND_IMPORT_EDIT

private static final String ADMIN_TOOLBAR_PLAN_STATECHANGE_AND_IMPORT_EDIT
See Also:
Constant Field Values

ADMIN_TOOLBAR_INACTIVE

private static final String ADMIN_TOOLBAR_INACTIVE
See Also:
Constant Field Values

LIMIT

private static final int LIMIT

ALLOW_CACHING

private static final boolean ALLOW_CACHING

VERBOSE_CACHE

private static final boolean VERBOSE_CACHE

ONE_DAY

private static final long ONE_DAY
See Also:
Constant Field Values

ONE_HOUR

private static final long ONE_HOUR
See Also:
Constant Field Values

PLAN_RESOURCE

private static final String PLAN_RESOURCE
See Also:
Constant Field Values

PROJECT_RESOURCE_RESOURCE

private static final String PROJECT_RESOURCE_RESOURCE
See Also:
Constant Field Values

OPEN_WORK_GIF

private static final String OPEN_WORK_GIF
See Also:
Constant Field Values

COMPLETED_WORK_GIF

private static final String COMPLETED_WORK_GIF
See Also:
Constant Field Values

CALCULATED_IMAGE

private static final String CALCULATED_IMAGE
See Also:
Constant Field Values

OVERRIDDEN_IMAGE

private static final String OVERRIDDEN_IMAGE
See Also:
Constant Field Values

NBSP

private static final String NBSP
See Also:
Constant Field Values

DATE_TIME_FORMAT

private static final int DATE_TIME_FORMAT

NAME_LINKS

private static final boolean NAME_LINKS

CACHE_COUNT

private static int CACHE_COUNT

CHUNKSIZE

private static final int CHUNKSIZE
See Also:
Constant Field Values

ZEROWORK

private static final Work ZEROWORK

planModelCache

private static volatile StandardNmProjMgmtService.PlanModelCache planModelCache

planModelIgnoreList

private static volatile StandardNmProjMgmtService.PlanModelIgnoreList planModelIgnoreList
Constructor Detail

StandardNmProjMgmtService

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

newStandardNmProjMgmtService

public static StandardNmProjMgmtService newStandardNmProjMgmtService()
                                                              throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardNmProjMgmtService
Throws:
WTException

getProjectNodes

public NmHTMLTableTree getProjectNodes(NmCommandBean cb)
                                throws WTException


Supported API: false

Specified by:
getProjectNodes in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLTableTree
Throws:
WTException

getUserNodes

public NmHTMLTable getUserNodes(NmOid proj_oid,
                                NmCommandBean cb)
                         throws WTException


Supported API: false

Specified by:
getUserNodes in interface NmProjMgmtService
Parameters:
proj_oid -
cb -
Returns:
NmHTMLTable
Throws:
WTException

getDeliverables

public NmHTMLTable getDeliverables(NmOid proj_oid,
                                   NmCommandBean cb)
                            throws WTException


Supported API: false

Specified by:
getDeliverables in interface NmProjMgmtService
Parameters:
proj_oid -
cb -
Returns:
NmHTMLTable
Throws:
WTException

getProjectResources

public NmHTMLTable getProjectResources(NmOid proj_oid,
                                       NmCommandBean cb)
                                throws WTException
Returns plan resources. The resources are returned in a table appropriate for display in an HTML page. A project resource ProjectResource can be a material, a people, a role, an information or a work resource.

Supported API: false

Specified by:
getProjectResources in interface NmProjMgmtService
Parameters:
proj_oid -
cb -
Returns:
NmHTMLTable
Throws:
WTException
See Also:
MaterialResource, PersonResource, RoleResource, wt.projmgmt.resource.InformationlResource, EquipmentResource, FacilityResource

getUserDeliverables

public NmHTMLTable getUserDeliverables(NmOid proj_oid,
                                       NmCommandBean cb)
                                throws WTException


Supported API: false

Specified by:
getUserDeliverables in interface NmProjMgmtService
Parameters:
proj_oid -
cb -
Returns:
NmHTMLTable
Throws:
WTException

getActivityDeliverables

public NmHTMLTable getActivityDeliverables(NmCommandBean cb)
                                    throws WTException


Supported API: false

Specified by:
getActivityDeliverables in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

getActivityTasks

public NmHTMLTable getActivityTasks(NmCommandBean cb)
                             throws WTException


Supported API: false

Specified by:
getActivityTasks in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

getNmProjMgmtObject

public NmProjMgmtObject getNmProjMgmtObject(NmOid nm_oid)
                                     throws WTException


Supported API: false

Specified by:
getNmProjMgmtObject in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
NmProjMgmtObject
Throws:
WTException

copy

public void copy(NmCommandBean cb)
          throws WTException


Supported API: false

Specified by:
copy in interface NmProjMgmtService
Parameters:
cb -
Throws:
WTException

paste

public NmChangeModel[] paste(NmCommandBean cb)
                      throws WTException


Supported API: false

Specified by:
paste in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

update

public NmChangeModel[] update(String type,
                              NmCommandBean cb,
                              Hashtable params)
                       throws WTException


Supported API: false

Specified by:
update in interface NmProjMgmtService
Parameters:
type -
cb -
params -
Returns:
NmChangeModel[]
Throws:
WTException

create

public NmChangeModel[] create(String type,
                              NmCommandBean cb,
                              Hashtable params)
                       throws WTException


Supported API: false

Specified by:
create in interface NmProjMgmtService
Parameters:
type -
cb -
params -
Returns:
NmChangeModel[]
Throws:
WTException

addToSummaryActivity

public NmChangeModel[] addToSummaryActivity(NmCommandBean cb)
                                     throws WTException


Supported API: false

Specified by:
addToSummaryActivity in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

delete

public NmChangeModel[] delete(NmCommandBean cb)
                       throws WTException


Supported API: false

Specified by:
delete in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getCategoryValues

public Hashtable getCategoryValues()
                            throws WTException


Supported API: false

Specified by:
getCategoryValues in interface NmProjMgmtService
Returns:
Hashtable
Throws:
WTException

getRiskValues

public Hashtable getRiskValues()
                        throws WTException


Supported API: false

Specified by:
getRiskValues in interface NmProjMgmtService
Returns:
Hashtable
Throws:
WTException

getStateValues

public Hashtable getStateValues()
                         throws WTException


Supported API: false

Specified by:
getStateValues in interface NmProjMgmtService
Returns:
Hashtable
Throws:
WTException

getStatusValues

public Hashtable getStatusValues()
                          throws WTException


Supported API: false

Specified by:
getStatusValues in interface NmProjMgmtService
Returns:
Hashtable
Throws:
WTException

getUsers

public NmDisplayPrincipal[] getUsers(NmOid proj_oid)
                              throws WTException


Supported API: false

Specified by:
getUsers in interface NmProjMgmtService
Parameters:
proj_oid -
Returns:
NmDisplayPrincipal[]
Throws:
WTException

cut

public void cut(NmCommandBean cb)
         throws WTException


Supported API: false

Specified by:
cut in interface NmProjMgmtService
Parameters:
cb -
Throws:
WTException

getLCStateValues

public Hashtable getLCStateValues()
                           throws WTException


Supported API: false

Specified by:
getLCStateValues in interface NmProjMgmtService
Returns:
Hashtable
Throws:
WTException

getLCStateValues

public Hashtable getLCStateValues(String oid_str)
                           throws WTException
Returns all lifecycle values that are valid for an object whose id is passed as a string.

Supported API: false

Specified by:
getLCStateValues in interface NmProjMgmtService
Parameters:
oid_str -
Returns:
Hashtable
Throws:
WTException

getStateValues

public Hashtable getStateValues(NmProjMgmtObject page_obj)
                         throws WTException
Resturns a Hashtable with valid states for the execution object whose's oid is passed as a String. The valid states include the current state and the accessible states.

Supported API: false

Specified by:
getStateValues in interface NmProjMgmtService
Parameters:
page_obj -
Returns:
Hashtable
Throws:
WTException

getPasteTargetAction

public NmAction getPasteTargetAction(NmCommandBean cb)
                              throws WTException


Supported API: false

Specified by:
getPasteTargetAction in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmAction
Throws:
WTException

getMilestoneTimeline

public NmHTMLTable getMilestoneTimeline(NmCommandBean cb)
                                 throws WTException


Supported API: false

Specified by:
getMilestoneTimeline in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

getTargetValues

public NmNameValuePair[] getTargetValues(NmOid proj_oid)
                                  throws WTException


Supported API: false

Specified by:
getTargetValues in interface NmProjMgmtService
Parameters:
proj_oid -
Returns:
NmNameValuePair[]
Throws:
WTException

getActivityValues

public NmNameValuePair[] getActivityValues(NmOid nm_oid)
                                    throws WTException


Supported API: false

Specified by:
getActivityValues in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
NmNameValuePair[]
Throws:
WTException

getDeliverableMilestones

public Hashtable getDeliverableMilestones(NmOid nm_oid)
                                   throws WTException


Supported API: false

Specified by:
getDeliverableMilestones in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
Hashtable
Throws:
WTException

getSubProjectValues

public Hashtable getSubProjectValues(NmOid proj_oid)
                              throws WTException


Supported API: false

Specified by:
getSubProjectValues in interface NmProjMgmtService
Parameters:
proj_oid -
Returns:
Hashtable
Throws:
WTException

getPredecessorValues

public Hashtable getPredecessorValues(NmOid nm_oid)
                               throws WTException


Supported API: false

Specified by:
getPredecessorValues in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
Hashtable
Throws:
WTException

getProjectNodeValues

public Hashtable getProjectNodeValues(NmOid nm_oid)
                               throws WTException


Supported API: false

Specified by:
getProjectNodeValues in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
Hashtable
Throws:
WTException

subscribe

public void subscribe(String type,
                      NmCommandBean cb,
                      Hashtable params)
               throws WTException


Supported API: false

Specified by:
subscribe in interface NmProjMgmtService
Parameters:
type -
cb -
params -
Throws:
WTException

rollUp

public NmChangeModel[] rollUp(NmOid nm_oid)
                       throws WTException


Supported API: false

Specified by:
rollUp in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
NmChangeModel[]
Throws:
WTException

changeExecutionState

public NmChangeModel[] changeExecutionState(NmOid nm_oid,
                                            ProjectState new_state)
                                     throws WTException


Supported API: false

Specified by:
changeExecutionState in interface NmProjMgmtService
Parameters:
nm_oid -
new_state -
Returns:
NmChangeModel[]
Throws:
WTException

getResourceValues

public String getResourceValues(NmProjMgmtObject nm_obj)
                         throws WTException


Supported API: false

Specified by:
getResourceValues in interface NmProjMgmtService
Parameters:
nm_obj -
Returns:
String
Throws:
WTException

getTotalCost

public String getTotalCost(NmProjMgmtObject nm_obj)
                    throws WTException


Supported API: false

Specified by:
getTotalCost in interface NmProjMgmtService
Parameters:
nm_obj -
Returns:
String
Throws:
WTException

getCurrentCost

public String getCurrentCost(NmProjMgmtObject nm_obj)
                      throws WTException


Supported API: false

Specified by:
getCurrentCost in interface NmProjMgmtService
Parameters:
nm_obj -
Returns:
String
Throws:
WTException

changeToActivity

public NmChangeModel[] changeToActivity(NmOid nm_oid)
                                 throws WTException


Supported API: false

Specified by:
changeToActivity in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
NmChangeModel[]
Throws:
WTException

changeToMilestone

public NmChangeModel[] changeToMilestone(NmOid nm_oid)
                                  throws WTException


Supported API: false

Specified by:
changeToMilestone in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
NmChangeModel[]
Throws:
WTException

changeToSummary

public NmChangeModel[] changeToSummary(NmOid nm_oid)
                                throws WTException


Supported API: false

Specified by:
changeToSummary in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
NmChangeModel[]
Throws:
WTException

changeToProxy

public NmChangeModel[] changeToProxy(NmOid nm_oid)
                              throws WTException


Supported API: false

Specified by:
changeToProxy in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
NmChangeModel[]
Throws:
WTException

getProjectNodeSelectUtil

public Object[] getProjectNodeSelectUtil(NmCommandBean cb,
                                         Class nodeClass)
                                  throws WTException


Supported API: false

Specified by:
getProjectNodeSelectUtil in interface NmProjMgmtService
Parameters:
cb -
nodeClass -
Returns:
Object[]
Throws:
WTException

addPredecessors

public NmChangeModel[] addPredecessors(NmCommandBean cb)
                                throws WTException


Supported API: false

Specified by:
addPredecessors in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

removePredecessors

public NmChangeModel[] removePredecessors(NmCommandBean cb)
                                   throws WTException


Supported API: false

Specified by:
removePredecessors in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getDeliverableOfTarget

public ArrayList getDeliverableOfTarget(NmOid oid)
                                 throws WTException


Supported API: false

Specified by:
getDeliverableOfTarget in interface NmProjMgmtService
Parameters:
oid -
Returns:
ArrayList
Throws:
WTException

overrideStatus

public NmChangeModel[] overrideStatus(String type,
                                      NmCommandBean cb,
                                      Hashtable params)
                               throws WTException


Supported API: false

Specified by:
overrideStatus in interface NmProjMgmtService
Parameters:
type -
cb -
params -
Returns:
NmChangeModel[]
Throws:
WTException

getProxyViewTable

public NmHTMLViewTable getProxyViewTable(NmCommandBean cb)
                                  throws WTException


Supported API: false

Specified by:
getProxyViewTable in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLViewTable
Throws:
WTException

getActivityViewTable

public NmHTMLViewTable getActivityViewTable(NmCommandBean cb)
                                     throws WTException


Supported API: false

Specified by:
getActivityViewTable in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLViewTable
Throws:
WTException

getMilestoneViewTable

public NmHTMLViewTable getMilestoneViewTable(NmCommandBean cb)
                                      throws WTException


Supported API: false

Specified by:
getMilestoneViewTable in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLViewTable
Throws:
WTException

getDeliverableViewTable

public NmHTMLViewTable getDeliverableViewTable(NmCommandBean cb)
                                        throws WTException


Supported API: false

Specified by:
getDeliverableViewTable in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLViewTable
Throws:
WTException

getMilestonesAndSummaryActivities

public ArrayList getMilestonesAndSummaryActivities(NmCommandBean cb)
                                            throws WTException


Supported API: false

Specified by:
getMilestonesAndSummaryActivities in interface NmProjMgmtService
Parameters:
cb -
Returns:
ArrayList
Throws:
WTException

modifyTimeline

public void modifyTimeline(NmCommandBean cb,
                           ArrayList oldTimeline,
                           ArrayList newTimeline)
                    throws WTException


Supported API: false

Specified by:
modifyTimeline in interface NmProjMgmtService
Parameters:
cb -
oldTimeline -
newTimeline -
Throws:
WTException

removeFromSummaryActivity

public NmChangeModel[] removeFromSummaryActivity(NmCommandBean cb)
                                          throws WTException


Supported API: false

Specified by:
removeFromSummaryActivity in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmChangeModel[]
Throws:
WTException

getSummaryTasks

public NmHTMLTable getSummaryTasks(NmCommandBean cb)
                            throws WTException


Supported API: false

Specified by:
getSummaryTasks in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

getDefinedProjectResources

public NmNameValuePair[] getDefinedProjectResources(NmCommandBean cb)
                                             throws WTException


Supported API: false

Specified by:
getDefinedProjectResources in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmNameValuePair[]
Throws:
WTException

addDeliverables

public void addDeliverables(NmCommandBean cb,
                            NmOid milestoneOid,
                            ArrayList oldList,
                            ArrayList newList)
                     throws WTException


Supported API: false

Specified by:
addDeliverables in interface NmProjMgmtService
Parameters:
cb -
milestoneOid -
oldList -
newList -
Throws:
WTException

getPlanModel

public NmModel getPlanModel(NmOid oid)
                     throws WTException
Get the tree model of the forum to display

Supported API: true

Specified by:
getPlanModel in interface NmProjMgmtService
Parameters:
oid - the AdministrativeDomain, used as search criteria when looking for project objects
Returns:
NmModel
Throws:
WTException

changePlanModel

public void changePlanModel(NmOid oid,
                            NmChangeModel[] nmcm)
                     throws WTException
Update the tree model of the plan from changes made in a different method server

Supported API: true

Specified by:
changePlanModel in interface NmProjMgmtService
Parameters:
oid - Oid of the project to change
nmcm - changes to make in the project model
Throws:
WTException

getMilestones

public NmHTMLTable getMilestones(NmCommandBean cb)
                          throws WTException


Supported API: false

Specified by:
getMilestones in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

getActivities

public NmHTMLTable getActivities(NmCommandBean cb)
                          throws WTException


Supported API: false

Specified by:
getActivities in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

getActivities

public NmHTMLTable getActivities(NmCommandBean cb,
                                 boolean restrictToCurrentUser)
                          throws WTException


Supported API: false

Specified by:
getActivities in interface NmProjMgmtService
Parameters:
cb -
restrictToCurrentUser -
Returns:
NmHTMLTable
Throws:
WTException

addToTimeline

public void addToTimeline(NmCommandBean cb)
                   throws WTException


Supported API: false

Specified by:
addToTimeline in interface NmProjMgmtService
Parameters:
cb -
Throws:
WTException

isManager

public boolean isManager(NmCommandBean cb)
                  throws WTException


Supported API: false

Specified by:
isManager in interface NmProjMgmtService
Parameters:
cb -
Returns:
boolean
Throws:
WTException

getPlanItems

public NmHTMLTable getPlanItems(NmCommandBean cb)
                         throws WTException


Supported API: false

Specified by:
getPlanItems in interface NmProjMgmtService
Parameters:
cb -
Returns:
NmHTMLTable
Throws:
WTException

changePlanState

public NmChangeModel[] changePlanState(NmCommandBean cb,
                                       ProjectState new_state)
                                throws WTException


Supported API: false

Specified by:
changePlanState in interface NmProjMgmtService
Parameters:
cb -
new_state -
Returns:
NmChangeModel[]
Throws:
WTException

moveTo

public NmChangeModel[] moveTo(NmCommandBean cb,
                              String position,
                              String positionID)
                       throws WTException


Supported API: false

Specified by:
moveTo in interface NmProjMgmtService
Parameters:
cb -
position -
positionID -
Returns:
NmChangeModel[]
Throws:
WTException

isTrackCost

public boolean isTrackCost(NmOid oid)
                    throws WTException


Supported API: false

Specified by:
isTrackCost in interface NmProjMgmtService
Parameters:
oid -
Returns:
boolean
Throws:
WTException

removeDeliverable

public void removeDeliverable(NmCommandBean cb)
                       throws WTException


Supported API: false

Specified by:
removeDeliverable in interface NmProjMgmtService
Parameters:
cb -
Throws:
WTException

removeFromCache

public void removeFromCache(NmOid oid)
                     throws WTException


Supported API: false

Specified by:
removeFromCache in interface NmProjMgmtService
Parameters:
oid -
Throws:
WTException

get_RowActionModel

public NmHTMLActionModel get_RowActionModel(NmProjMgmtObject nmPMObj)
                                     throws WTException


Supported API: false

Specified by:
get_RowActionModel in interface NmProjMgmtService
Parameters:
nmPMObj -
Returns:
NmHTMLActionModel
Throws:
WTException

getProjectNodes

public NmHTMLTableTree getProjectNodes(NmCommandBean cb,
                                       boolean useMore)
                                throws WTException


Supported API: false

Specified by:
getProjectNodes in interface NmProjMgmtService
Parameters:
cb -
useMore -
Returns:
NmHTMLTableTree
Throws:
WTException

getNmProjMgmtObjectFromCache

public NmProjMgmtObject getNmProjMgmtObjectFromCache(NmOid nm_oid)
                                              throws WTException


Supported API: false

Specified by:
getNmProjMgmtObjectFromCache in interface NmProjMgmtService
Parameters:
nm_oid -
Returns:
NmProjMgmtObject
Throws:
WTException

getMoreModel

public NmHTMLActionModel getMoreModel(NmOid nm_oid,
                                      String amName)
                               throws WTException


Supported API: false

Specified by:
getMoreModel in interface NmProjMgmtService
Parameters:
nm_oid -
amName -
Returns:
NmHTMLActionModel
Throws:
WTException

enableCacheForProject

public void enableCacheForProject(NmOid oid)
                           throws WTException


Supported API: false

Specified by:
enableCacheForProject in interface NmProjMgmtService
Parameters:
oid -
Throws:
WTException

getDeliverableSet

public ArrayList getDeliverableSet(NmCommandBean cb,
                                   NmOid milestoneOid)
                            throws WTException


Supported API: false

Specified by:
getDeliverableSet in interface NmProjMgmtService
Parameters:
cb -
milestoneOid -
Returns:
ArrayList
Throws:
WTException

getNmProjMgmtObjectOwner

public NmUser getNmProjMgmtObjectOwner(NmProjMgmtObject anObject)
                                throws WTException


Supported API: false

Specified by:
getNmProjMgmtObjectOwner in interface NmProjMgmtService
Parameters:
anObject -
Returns:
NmUser
Throws:
WTException

hasPlanAccess

public boolean hasPlanAccess(NmOid projectOid)
                      throws WTException


Supported API: false

Specified by:
hasPlanAccess in interface NmProjMgmtService
Parameters:
projectOid -
Returns:
boolean
Throws:
WTException

rollUpPlannedStart

public Timestamp rollUpPlannedStart(ExecutionObject exObj)
                             throws WTException
Returns the earliest planned start roll-up by the children.

Supported API: false

Specified by:
rollUpPlannedStart in interface NmProjMgmtService
Parameters:
exObj -
Returns:
Timestamp
Throws:
WTException

multiObjectUpdate

public ArrayList multiObjectUpdate(Hashtable params)
                            throws WTException
A method to update a list of objects in sequence. Currently supported objects are milestones, summaries, deliverables and activities.

Supported API: false

Specified by:
multiObjectUpdate in interface NmProjMgmtService
Parameters:
params - The hashtable of parameters from the form post.
Returns:
ArrayList
Throws:
WTException

getValidMultiUpdateObjects

public ArrayList getValidMultiUpdateObjects(ArrayList theOids)
                                     throws WTException
Takes a list of Oids and returns a list of valid, updatable NmProjMgmtObjects

Supported API: false

Specified by:
getValidMultiUpdateObjects in interface NmProjMgmtService
Parameters:
theOids -
Returns:
ArrayList
Throws:
WTException

getDetailsModels

public HashMap getDetailsModels(NmCommandBean cb)
                         throws WTException
Get all the information needed for the Details page of plan objects. Performance enhancement.

Supported API: false

Specified by:
getDetailsModels in interface NmProjMgmtService
Parameters:
cb -
Returns:
HashMap
Throws:
WTException

getDeliverableList

private String getDeliverableList(ProjectNode holder)
                           throws WTException
Throws:
WTException

getContainedNodeList

private String getContainedNodeList(SummaryActivity summary)
                             throws WTException
Throws:
WTException

getAssigneeList

private String getAssigneeList(ProjectActivity activity)
                        throws WTException
Throws:
WTException

getPercentComplete

private Integer getPercentComplete(ExecutionObject exec_obj)
                            throws WTException
Throws:
WTException

getNmSubProject

private Object getNmSubProject(ProjectProxy proxy)
                        throws WTException
Throws:
WTException

getType

private String getType(Persistable persistable)
                throws WTException
Throws:
WTException

getLCState

private String getLCState(Deliverable deliver)
                   throws WTException
Throws:
WTException

updateExecutionState

private ExecutionObject updateExecutionState(ExecutionObject exec_obj,
                                             Hashtable params)
                                      throws WTException
Throws:
WTException

updateDefinitionAttributes

private ExecutionObject updateDefinitionAttributes(ExecutionObject exec_obj,
                                                   Hashtable params)
                                            throws WTException
Throws:
WTException

updateActivityOwnership

private ProjectActivity updateActivityOwnership(ProjectActivity exec_obj,
                                                Hashtable params)
                                         throws WTException
Throws:
WTException

updateDeadline

private ExecutionObject updateDeadline(ExecutionObject exec_obj,
                                       Hashtable params)
                                throws WTException
Throws:
WTException

updateDynamicAttributes

private ExecutionObject updateDynamicAttributes(ExecutionObject exec_obj,
                                                Hashtable params)
                                         throws WTException
Throws:
WTException

isRollUpStatus

private boolean isRollUpStatus(Hashtable params)

isRollUpTotalWork

private boolean isRollUpTotalWork(Hashtable params)

isRollUpPerformedWork

private boolean isRollUpPerformedWork(Hashtable params)

isRollUpFinish

private boolean isRollUpFinish(Hashtable params)

restoreOverridenAttributes

private ExecutionObject restoreOverridenAttributes(ExecutionObject exec_obj,
                                                   Hashtable params)
                                            throws WTException
Throws:
WTException

setExecutionObjectAttributes

private ExecutionObject setExecutionObjectAttributes(ProjectPlan plan,
                                                     ExecutionObject exec_obj,
                                                     Hashtable params)
                                              throws WTException
Throws:
WTException

setProxyAttributes

private ExecutionObject setProxyAttributes(ProjectPlan plan,
                                           ProjectProxy proxy,
                                           Hashtable params)
                                    throws WTException
Throws:
WTException

setResourceAttributes

private void setResourceAttributes(ProjectResource resource,
                                   Hashtable params)
                            throws WTPropertyVetoException,
                                   WTException
Throws:
WTPropertyVetoException
WTException

updateResourceAttributes

private ProjectResource updateResourceAttributes(ProjectResource resource,
                                                 Hashtable params)
                                          throws WTPropertyVetoException,
                                                 WTException
Throws:
WTPropertyVetoException
WTException

setTargetNState

private Deliverable setTargetNState(Deliverable deliverable,
                                    Hashtable params)
                             throws WTException
Throws:
WTException

updateMilestones

private int updateMilestones(Deliverable deli,
                             Hashtable params)
                      throws WTException
Throws:
WTException

updatePredecessors

private ProjectNode updatePredecessors(ProjectNode node,
                                       Hashtable params)
                                throws WTException
Throws:
WTException

getPredecessors

private void getPredecessors(ProjectPlan plan,
                             Hashtable params,
                             Vector predecessors,
                             Vector linkTypes)
                      throws WTException
Throws:
WTException

updateContainedObjects

private void updateContainedObjects(SummaryActivity summary,
                                    Hashtable params)
                             throws WTException
Throws:
WTException

setConfiguration

private ExecutionObject setConfiguration(ExecutionObject exec_obj,
                                         Hashtable params)
                                  throws WTException
Throws:
WTException

getInt

private int getInt(Hashtable params,
                   String key)
            throws WTException
Throws:
WTException

getBoolean

private boolean getBoolean(Hashtable params,
                           String key)

getTimestamp

private Timestamp getTimestamp(Hashtable params,
                               String key)
                        throws WTException
Throws:
WTException

getTimeToElapse

private TimeToElapse getTimeToElapse(Hashtable params,
                                     String key)
                              throws WTException
Throws:
WTException

getUser

public WTPrincipal getUser(Hashtable params,
                           String key)
                    throws WTException
Throws:
WTException

addDeliverableToHolder

private void addDeliverableToHolder(DeliverableHolder holder,
                                    Deliverable new_deliverable)
                             throws WTException
Throws:
WTException

getProjectPlan

private ProjectPlan getProjectPlan(NmOid proj_oid)
                            throws WTException
Throws:
WTException

findDocuments

private Enumeration findDocuments(Project2 project)
                           throws WTException
Throws:
WTException

findParts

private Enumeration findParts(Project2 project)
                       throws WTException
Throws:
WTException

subscribe

private void subscribe(ExecutionObject object,
                       ProjectEventType event)
                throws WTException
Throws:
WTException

unsubscribe

private void unsubscribe(ExecutionObject object,
                         ProjectEventType event)
                  throws WTException
Throws:
WTException

getNodeRowData

public ArrayList getNodeRowData(NmProjMgmtObject nmPMObj,
                                boolean useServerLocale)
                         throws WTException
Throws:
WTException

getNodeRowData

public ArrayList getNodeRowData(NmProjMgmtObject nmPMObj,
                                boolean useServerLocale,
                                boolean isProjManager)
                         throws WTException
Throws:
WTException

getNodeRowData

public ArrayList getNodeRowData(NmProjMgmtObject nmPMObj,
                                boolean useServerLocale,
                                boolean isProjManager,
                                boolean useMore)
                         throws WTException
Throws:
WTException

getNodeRowData

public ArrayList getNodeRowData(NmProjMgmtObject nmPMObj,
                                boolean useServerLocale,
                                boolean isProjManager,
                                boolean useMore,
                                HashMap nodedelis)
                         throws WTException
Throws:
WTException

getNodeRowData1

public ArrayList getNodeRowData1(NmProjMgmtObject nmPMObj,
                                 boolean useServerLocale)
                          throws WTException
Throws:
WTException

getDeliverableRowData

public ArrayList getDeliverableRowData(NmOid oid)
                                throws WTException
Throws:
WTException

getDeliverableRowData

public ArrayList getDeliverableRowData(NmDeliverable nmDeli)
                                throws WTException
Throws:
WTException

getItemRowData

public ArrayList getItemRowData(NmProjMgmtObject nmItem)
                         throws WTException
Throws:
WTException

getMilestoneRowData

public ArrayList getMilestoneRowData(NmMilestone nmMile)
                              throws WTException
Throws:
WTException

getActivityRowData

public ArrayList getActivityRowData(NmProjectActivity nmActi)
                             throws WTException
Throws:
WTException

getMyNodeRowData

public ArrayList getMyNodeRowData(NmProjMgmtObject nmPMObj)
                           throws WTException
Throws:
WTException

getMyDeliverableRowData

public ArrayList getMyDeliverableRowData(NmDeliverable nmDeli)
                                  throws WTException
Throws:
WTException

getCurrentNmUser

private NmUser getCurrentNmUser()
                         throws WTException
Throws:
WTException

getId

private ObjectIdentifier getId(Object obj)

getOwnerId

private String getOwnerId(Ownable own_obj)
                   throws WTException
Throws:
WTException

getNmOwner

private NmUser getNmOwner(Persistable aPersistable)
                   throws WTException
Throws:
WTException

createChangeModelArray

private NmChangeModel[] createChangeModelArray(int size)

getRowActionModel

private NmHTMLActionModel getRowActionModel(NmProjMgmtObject nmPMObj)
                                     throws WTException
Throws:
WTException

getRowActionModel

private NmHTMLActionModel getRowActionModel(NmProjMgmtObject nmPMObj,
                                            boolean isProjManager,
                                            boolean isPlanActive)
                                     throws WTException
Throws:
WTException

getRowActionModel

private NmHTMLActionModel getRowActionModel(NmProjMgmtObject nmPMObj,
                                            boolean isProjManager,
                                            boolean isPlanActive,
                                            boolean useMore)
                                     throws WTException
Throws:
WTException

getRowActionModel

private NmHTMLActionModel getRowActionModel(NmProjMgmtObject nmPMObj,
                                            boolean isProjManager,
                                            boolean isPlanActive,
                                            boolean useMore,
                                            Locale locale)
                                     throws WTException
Throws:
WTException

createMilestone

private Milestone createMilestone(ProjectPlan plan,
                                  WfContainer container,
                                  Hashtable params)
                           throws WTException
Throws:
WTException

createProjectActivity

private ProjectActivity createProjectActivity(ProjectPlan plan,
                                              WfContainer container,
                                              Hashtable params)
                                       throws WTException
Throws:
WTException

createProjectProxy

private ProjectProxy createProjectProxy(ProjectPlan plan,
                                        WfContainer container,
                                        Hashtable params)
                                 throws WTException
Throws:
WTException

createSummaryActivity

private SummaryActivity createSummaryActivity(ProjectPlan plan,
                                              WfContainer container,
                                              Hashtable params)
                                       throws WTException
Throws:
WTException

createDeliverable

private NmChangeModel[] createDeliverable(NmOid project_oid,
                                          ProjectPlan plan,
                                          Hashtable params)
                                   throws WTException
Throws:
WTException

createProjectResource

private NmChangeModel[] createProjectResource(NmOid project_oid,
                                              ProjectPlan plan,
                                              Hashtable params)
                                       throws WTException
Throws:
WTException

updateMilestone

private NmChangeModel[] updateMilestone(NmOid project_oid,
                                        Milestone mile,
                                        Hashtable params)
                                 throws WTException
Throws:
WTException

updateProjectActivity

private NmChangeModel[] updateProjectActivity(NmOid project_oid,
                                              ProjectActivity proj_act,
                                              Hashtable params)
                                       throws WTException
Throws:
WTException

updateProjectProxy

private NmChangeModel[] updateProjectProxy(NmOid project_oid,
                                           ProjectProxy proxy,
                                           Hashtable params)
                                    throws WTException
Throws:
WTException

updateProjectResource

private NmChangeModel[] updateProjectResource(NmOid project_oid,
                                              ProjectResource resource,
                                              Hashtable params)
                                       throws WTException
Throws:
WTException

updateSummaryActivity

private NmChangeModel[] updateSummaryActivity(NmOid project_oid,
                                              SummaryActivity summ_act,
                                              Hashtable params)
                                       throws WTException
Throws:
WTException

updateDeliverable

private NmChangeModel[] updateDeliverable(NmOid project_oid,
                                          Deliverable deli,
                                          Hashtable params)
                                   throws WTException
Throws:
WTException

getDeliverableChangeModel

private NmChangeModel[] getDeliverableChangeModel(NmChangeModel[] change_model,
                                                  NmOid project_oid,
                                                  DeliverableHolder holder,
                                                  Deliverable deli)
                                           throws WTException
Throws:
WTException

createResourceChangeModel

private NmChangeModel[] createResourceChangeModel(ProjectResource resource,
                                                  NmOid project_oid,
                                                  int change_type)
                                           throws WTException
Throws:
WTException

updateStartTime

private ExecutionObject updateStartTime(ExecutionObject exec_obj,
                                        Hashtable params)
                                 throws WTException
Throws:
WTException

getWorkValue

private String getWorkValue(Work work,
                            String default_str)

isDefining

private boolean isDefining(ExecutionObject exec_obj)

isRunning

private boolean isRunning(ExecutionObject exec_obj)

isManualExecutionMode

private boolean isManualExecutionMode(ExecutionObject exec_obj)
                               throws WTException
Throws:
WTException

isClosed

private boolean isClosed(ExecutionObject exec_obj)

getNmProjMgmtObject

private NmProjMgmtObject getNmProjMgmtObject(ProjectNode node)
                                      throws WTException
Throws:
WTException

addRemovePredecessors

private NmChangeModel[] addRemovePredecessors(NmCommandBean cb,
                                              boolean doRemoveOperation)
                                       throws WTException
Throws:
WTException

getProjectNode

private ProjectNode getProjectNode(ProjectPlan plan,
                                   int nodeID)
                            throws WTException
Throws:
WTException

indexOfPersistable

private int indexOfPersistable(Vector v,
                               Persistable p)

same

private boolean same(Object obj1,
                     Object obj2)

dumpParams

void dumpParams(Hashtable params,
                String title)

getDuration

private long getDuration(ExecutionObject exec_obj)
                  throws WTException
Throws:
WTException

vecNmDisplayPrincipalToArray

private NmDisplayPrincipal[] vecNmDisplayPrincipalToArray(Vector v)

setActivityResources

private void setActivityResources(ProjectActivity projAct,
                                  Hashtable params)
                           throws WTException
Throws:
WTException

updateActivityResources

private ProjectActivity updateActivityResources(ProjectActivity projAct,
                                                Hashtable params)
                                         throws WTException
Throws:
WTException

setResourceParams

private void setResourceParams(Hashtable params,
                               Vector resources,
                               Vector units,
                               ProjectPlan plan)
                        throws WTException
Throws:
WTException

getActivityMilestoneViewTableImpl

public NmHTMLViewTable getActivityMilestoneViewTableImpl(NmCommandBean cb)
                                                  throws WTException
Throws:
WTException

getPlanModelCache

private StandardNmProjMgmtService.PlanModelCache getPlanModelCache()
                                                            throws WTException
Throws:
WTException

createPlanModelCache

private StandardNmProjMgmtService.PlanModelCache createPlanModelCache()
                                                               throws WTException,
                                                                      RemoteException
Throws:
WTException
RemoteException

getPlanModelIgnoreList

private StandardNmProjMgmtService.PlanModelIgnoreList getPlanModelIgnoreList()
                                                                      throws WTException
Throws:
WTException

createPlanModelIgnoreList

private StandardNmProjMgmtService.PlanModelIgnoreList createPlanModelIgnoreList()
                                                                         throws WTException,
                                                                                RemoteException
Throws:
WTException
RemoteException

getOidFromObject

private NmOid getOidFromObject(Persistable pNode)
                        throws WTException
Throws:
WTException

getOidFromRef

private NmOid getOidFromRef(WfContainerReference pNode)
                     throws WTException
Throws:
WTException

processTarget

private void processTarget(Persistable target,
                           int type1,
                           StandardNmProjMgmtService.PlanModelCache cache)
                    throws WTException
Throws:
WTException

getFullTree

private NmModel getFullTree(NmOid oid)
                     throws WTException
Throws:
WTException

proceed

private NmOid proceed(NmOid poid,
                      int type,
                      Cache cache)
               throws WTException
Throws:
WTException

getProjectResourcesAll

private NmHTMLTable getProjectResourcesAll(ProjectPlan plan,
                                           boolean isAdmin,
                                           Locale locale,
                                           ResourceBundle rb)
                                    throws WTException
Returns plan resources. The resources are returned in a table appropriate for display in an HTML page. A project resource ProjectResource can be a material, a people, a role, an information or a work resource.

Supported API: false

Returns:
NmHTMLTable
Throws:
WTException

getProjectResourcesActive

private NmHTMLTable getProjectResourcesActive(ProjectPlan plan,
                                              boolean isAdmin,
                                              Locale locale,
                                              ResourceBundle rb)
                                       throws WTException
Returns all utilized plan resources. The resources are returned in a table appropriate for display in an HTML page. A project resource ProjectResource can be a material, a people, a role, an information or a work resource.

Supported API: false

Returns:
NmHTMLTable
Throws:
WTException

getProjectResourcesCosts

private NmHTMLTable getProjectResourcesCosts(ProjectPlan plan,
                                             boolean isAdmin,
                                             Locale locale,
                                             ResourceBundle rb)
                                      throws WTException
Returns all utilized plan resources with cost information. The resources are returned in a table appropriate for display in an HTML page. A project resource ProjectResource can be a material, a people, a role, an information or a work resource.

Supported API: false

Returns:
NmHTMLTable
Throws:
WTException

parentChanged

private boolean parentChanged(NmChangeModel nmcm,
                              NmProjectPlanTreeModel model)
                       throws WTException
Throws:
WTException

idChanged

private boolean idChanged(NmChangeModel nmcm,
                          NmProjectPlanTreeModel model)
                   throws WTException
Throws:
WTException

fixIdInPlan

private void fixIdInPlan(int newId,
                         int origId,
                         NmProjectPlanTreeModel model)
                  throws WTException
Throws:
WTException

hasChildren

private boolean hasChildren(NmChangeModel nmcm,
                            NmProjectPlanTreeModel model)
                     throws WTException
Throws:
WTException

getPlanActionsHtml

private String getPlanActionsHtml(NmOid projectOid)

getPlanStateHtml

private String getPlanStateHtml(ProjectPlan plan)

getPlanActionModel

private NmHTMLActionModel getPlanActionModel(boolean projManager,
                                             ProjectPlan plan,
                                             Project2 project)
                                      throws WTException
Throws:
WTException

enablePlanActions

private NmHTMLActionModel enablePlanActions(NmHTMLActionModel planActions,
                                            ProjectState planState)
                                     throws WTException
Throws:
WTException

getWorkAction

private NmAction getWorkAction(WorkItem work,
                               Locale locale)
                        throws WTException
Throws:
WTException

hasNonConsecutiveNodes

private boolean hasNonConsecutiveNodes(ArrayList selected,
                                       ArrayList indexToNode)
                                throws WTException
Throws:
WTException

getParent

private NmHTMLTreeNode getParent(int index,
                                 int[] indexes,
                                 ArrayList indexToNode)
                          throws WTException
Throws:
WTException

getParentToRemoveFrom

private NmHTMLTreeNode getParentToRemoveFrom(int index,
                                             int[] indexes,
                                             ArrayList indexToNode)
                                      throws WTException
Throws:
WTException

inSelected

private boolean inSelected(int idx,
                           int[] indexes)
                    throws WTException
Throws:
WTException

setIndexesForSelectedNodes

private void setIndexesForSelectedNodes(ArrayList selected,
                                        int[] idx,
                                        ArrayList indexToNode)
                                 throws WTException
Throws:
WTException

getTimelineDate

private Date getTimelineDate(NmProjMgmtObject nmPmObj)
Get the date that should be displayed in the timeline. This method uses the following precedence rules when returning the date:
  1. Deadline
  2. Actual Finish Date (getEndTime)
  3. Estimated Finish Date (getEstimatedFinish)

Parameters:
nmPmObj - the NmProjMgmtObject
Returns:
the date to display in the timeline

getDuration

private int getDuration(Hashtable params)
Returns the duration as entered in the page. Returns '-1' if it is not provided.


sameDay

private boolean sameDay(Timestamp time1,
                        Timestamp time2)
Assumes time1 != null.


getDeliverablesTable

private NmHTMLTable getDeliverablesTable(QueryResult deliverables)
                                  throws WTException
Throws:
WTException

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Override the method from StandardManager to provide NmProjMgmtServices 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

isThreadWorthy

private boolean isThreadWorthy()

incrementOneDay

private Timestamp incrementOneDay(Timestamp aTime)
                           throws WTException
Throws:
WTException

addChangeModel

private void addChangeModel(NmProjMgmtObject pmObj,
                            NmChangeModel nmChange1,
                            NmHTMLTreeNode nextNode)
                     throws WTException
Throws:
WTException

getDeliverableHash

private static HashMap getDeliverableHash(ArrayList nodes)
                                   throws WTException,
                                          WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

verbosePrint

private static void verbosePrint(String s)

setColumnNames

private void setColumnNames(ResourceBundle rbPlan,
                            NmHTMLTableTree model,
                            Locale locale,
                            String planActions)

updateOwnerPmSubscriptions

private ExecutionObject updateOwnerPmSubscriptions(ExecutionObject obj,
                                                   Hashtable params,
                                                   boolean isCreate)
                                            throws WTException
Throws:
WTException

updateOwnerPmSubscriptions

private ExecutionObject updateOwnerPmSubscriptions(ExecutionObject obj,
                                                   Hashtable params,
                                                   boolean isCreate,
                                                   boolean beforeDeadlineChanged,
                                                   boolean afterDeadlineChanged)
                                            throws WTException
Throws:
WTException

getManagers

private static Vector getManagers(ExecutionObject exec_obj)
                           throws WTException
Throws:
WTException

mouNumberChanged

private static boolean mouNumberChanged(String tmp,
                                        double d)

mouDateChanged

private static boolean mouDateChanged(String tmp,
                                      Object o,
                                      Locale locale,
                                      TimeZone localTimeZone)
                               throws WTException
Throws:
WTException