|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.projmgmt.definer.StandardProjDefinerService
Standard implementation of the client and service interfaces.
Use the newStandardProjDefinerService
static factory method(s),
not the StandardProjDefinerService
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
ProjDefinerService
,
ProjDefinerServiceSvr
,
Serialized FormField 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 | |
StandardProjDefinerService()
|
Method Summary | |
ProjectNode |
addNode(ProjectNode node,
WfContainer container)
Adds node to container passed as argument. |
private WfConnector |
adjustPredNumber(WfNodeTemplate source_temp,
WfConnectorTemplate dest_temp)
|
protected WfConnectorTemplate |
createInConnectors(WfContainer container,
ProjectNode node)
|
NodeTemplateLink |
createLink(WfNode source_node,
WfNode dest_node,
ProjectLinkType link_type)
Creates dependency link between two nodes. |
NodeTemplateLink |
createLinkTemplate(WfNodeTemplate source_temp,
WfNodeTemplate dest_temp)
Assumes link_type = FINISH_START. |
Milestone |
createMilestoneTemplate(ProjectPlan plan,
Milestone milestone)
Creates a milestone template given the project plan and the milestone instance. |
ProjectNode |
createNodeTemplate(WfContainer container,
ProjectNode node)
Creates a project node template given the node container (plan or summary) and the node instance. |
ProjectActivity |
createProjectActivityTemplate(ProjectPlan plan,
ProjectActivity activity)
Creates a project activity template given the project plan, the activity instance and a vector containing references to activity assignees. |
ProjectPlanTemplate |
createProjectPlanTemplate(ProjectPlan plan)
Creates project plan template with the name given as argument. |
ProjectProxy |
createProjectProxyTemplate(ProjectPlan plan,
ProjectProxy proxy)
Creates a project proxy template given the project plan and the proxy instance. |
void |
createStartEndConnectors(WfContainerTemplate template,
WfContainer container)
Creates the start and end connectors for a container passed as arguments. |
SummaryActivity |
createSummaryActivityTemplate(ProjectPlan plan,
SummaryActivity summary)
Creates a summary activity template given the project plan and the activity instance. |
private WfTemplateObject |
createTemplateObject(ProjectNode node)
|
void |
deleteFinalLink(WfNode pred_node,
WfNode succ_node)
Deletes the link that joins the first node to an end connector if both nodes belong to the same container. |
WfNode |
deleteInitialLink(WfNode node)
Deletes the link that joins the start connector to the node passed as argument. |
private void |
deleteLink(WfNodeTemplate node,
WfConnectorTemplate conn)
|
String |
getConceptualClassname()
Deprecated. |
private String |
getIdString(Object obj)
|
private NodeTemplateLink |
getLink(ObjectReference source_ref,
ObjectReference destination_ref)
|
ProjectLinkType |
getLinkType(ProjectNode source_node,
ProjectNode dest_node)
Returns the type of the link (FINISH-START, START-START) given two project nodes. |
private List |
getList(Object object)
|
private ObjectIdentifier |
getOid(Object obj)
|
protected QueryResult |
getPredecessorsInContainer(WfNodeTemplate node_template,
WfContainerTemplate container_template)
|
private ObjectReference |
getRef(Object obj)
|
protected QueryResult |
getSuccessorsInContainer(WfNodeTemplate node_template,
WfContainerTemplate container_template)
|
private TimeToElapse |
getTimeToElapse(int days)
|
private boolean |
isClosed(WfNode wf_node)
|
void |
moveLink(ProjectNodeTemplate pred,
WfConnectorTemplate succ,
WfContainerTemplate container_template)
|
static StandardProjDefinerService |
newStandardProjDefinerService()
Default factory for the class. |
void |
removeDependency(WfNode source_node,
WfNode dest_node)
Deletes all links between the templates of the nodes passed as argument. |
ProjectNode |
removeNode(ProjectNode node)
Removes node from its current container. |
NodeTemplateLink |
setLinkType(WfNode source_node,
WfNode dest_node,
ProjectLinkType link_type)
Sets the type of dependency beteween two nodes to the dependency passed as argument (ProjectLinkType). |
private String |
showVector(Object object)
Returns a String contained the list of objects in the Vector/QueryResult. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final boolean VERBOSE
Constructor Detail |
public StandardProjDefinerService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static StandardProjDefinerService newStandardProjDefinerService() throws WTException
WTException
public ProjectPlanTemplate createProjectPlanTemplate(ProjectPlan plan) throws WTException
createProjectPlanTemplate
in interface ProjDefinerService
plan
-
WTException
public ProjectLinkType getLinkType(ProjectNode source_node, ProjectNode dest_node) throws WTException
getLinkType
in interface ProjDefinerService
source_node
- dest_node
-
WTException
public ProjectActivity createProjectActivityTemplate(ProjectPlan plan, ProjectActivity activity) throws WTException
createProjectActivityTemplate
in interface ProjDefinerServiceSvr
plan
- activity
-
WTException
ProjectActivityTemplate
,
ProjectActivity
public Milestone createMilestoneTemplate(ProjectPlan plan, Milestone milestone) throws WTException
createMilestoneTemplate
in interface ProjDefinerServiceSvr
plan
- milestone
-
WTException
public SummaryActivity createSummaryActivityTemplate(ProjectPlan plan, SummaryActivity summary) throws WTException
createSummaryActivityTemplate
in interface ProjDefinerServiceSvr
plan
- summary
-
WTException
SummaryActivityTemplate
,
SummaryActivity
public ProjectProxy createProjectProxyTemplate(ProjectPlan plan, ProjectProxy proxy) throws WTException
createProjectProxyTemplate
in interface ProjDefinerServiceSvr
plan
- proxy
-
WTException
ProjectProxyTemplate
,
ProjectProxy
public ProjectNode createNodeTemplate(WfContainer container, ProjectNode node) throws WTException
Milestone
,
a ProjectActivity
,
a SummaryActivity
,
or a ProjectProxy
.
The start connector of the container template is connected to the
project node template created.
Supported API: false
createNodeTemplate
in interface ProjDefinerServiceSvr
container
- node
-
WTException
ProjectNodeTemplate
,
ProjectNode
,
WfContainer
,
ProjectPlan
,
SummaryActivity
public void removeDependency(WfNode source_node, WfNode dest_node) throws WTException
removeDependency
in interface ProjDefinerServiceSvr
source_node
- dest_node
-
WTException
public NodeTemplateLink setLinkType(WfNode source_node, WfNode dest_node, ProjectLinkType link_type) throws WTException
setLinkType
in interface ProjDefinerServiceSvr
source_node
- dest_node
- link_type
-
WTException
public NodeTemplateLink createLink(WfNode source_node, WfNode dest_node, ProjectLinkType link_type) throws WTException
createLink
in interface ProjDefinerServiceSvr
source_node
- dest_node
- link_type
-
WTException
public ProjectNode removeNode(ProjectNode node) throws WTException
removeNode
in interface ProjDefinerServiceSvr
node
-
WTException
public ProjectNode addNode(ProjectNode node, WfContainer container) throws WTException
addNode
in interface ProjDefinerServiceSvr
node
- container
-
WTException
public void createStartEndConnectors(WfContainerTemplate template, WfContainer container) throws WTException
This method is used when a summary or a project plan is created.
It is called only once for each created object.
Supported API: false
createStartEndConnectors
in interface ProjDefinerServiceSvr
template
- container
-
WTException
public WfNode deleteInitialLink(WfNode node) throws WTException
deleteInitialLink
in interface ProjDefinerServiceSvr
node
-
WTException
public void deleteFinalLink(WfNode pred_node, WfNode succ_node) throws WTException
deleteFinalLink
in interface ProjDefinerServiceSvr
pred_node
- succ_node
-
WTException
private void deleteLink(WfNodeTemplate node, WfConnectorTemplate conn) throws WTException
WTException
protected QueryResult getPredecessorsInContainer(WfNodeTemplate node_template, WfContainerTemplate container_template) throws WTException
WTException
protected QueryResult getSuccessorsInContainer(WfNodeTemplate node_template, WfContainerTemplate container_template) throws WTException
WTException
protected WfConnectorTemplate createInConnectors(WfContainer container, ProjectNode node) throws WTException
WTException
private NodeTemplateLink getLink(ObjectReference source_ref, ObjectReference destination_ref) throws WTException
WTException
public void moveLink(ProjectNodeTemplate pred, WfConnectorTemplate succ, WfContainerTemplate container_template) throws WTException
WTException
private WfTemplateObject createTemplateObject(ProjectNode node) throws WTException
WTException
public NodeTemplateLink createLinkTemplate(WfNodeTemplate source_temp, WfNodeTemplate dest_temp) throws WTException
WTException
private WfConnector adjustPredNumber(WfNodeTemplate source_temp, WfConnectorTemplate dest_temp) throws WTException
WTException
private boolean isClosed(WfNode wf_node)
private TimeToElapse getTimeToElapse(int days)
private List getList(Object object)
private String showVector(Object object)
private String getIdString(Object obj)
private ObjectIdentifier getOid(Object obj)
private ObjectReference getRef(Object obj) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |