|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.template.containercopy.AbstractContainerCopyHandler
com.ptc.netmarkets.nmixb.ProjectPlanStructCopyHelper
This takes care of changes to the Project Plan
ProjectPlan Attribute changes.
Milestones
Resources
Activities
Deliverables
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static int[] |
DEF_INDICES
|
private static Object[] |
DEF_PARAMS
|
private static Class |
ENUM_TYPE_CLASS
|
private static Class |
OBJ_REF_CLASS
|
private static String |
RESOURCE
|
private ProjectPlan |
sourcePlan
|
private Project2 |
sourceProject
|
private ProjectPlan |
targetPlan
|
private Project2 |
targetProject
|
private static boolean |
VERBOSE
|
(package private) ProjectCopyWorklist |
workList
|
private static Class |
WT_OBJECT_CLASS
|
Fields inherited from class wt.inf.template.containercopy.AbstractContainerCopyHandler |
|
Constructor Summary | |
ProjectPlanStructCopyHelper()
|
Method Summary | |
private ProjectActivity |
copyActivity(ProjectActivity source_activity)
|
protected void |
copyAddedObjects()
Most of the time this is the only method that needs to be over-ridden. |
private void |
copyAssignments(ProjectActivity target,
ProjectActivity sourceActivity)
|
private ProjectResource |
copyBaseResourceInfo(ProjectResource target,
ProjectResource src)
initializes category, name and description |
void |
copyContainmentLinks()
|
void |
copyContainmentLinks(WfContainer source_container,
WfContainer target_container)
|
private CostResource |
copyCostResourceInfo(CostResource target,
CostResource src)
|
private Deliverable |
copyDeliverable(Deliverable source_deli)
|
void |
copyDeliverableLinks()
|
void |
copyDeliverables()
|
private void |
copyExecutionInfo(ExecutionObject source_obj,
ExecutionObject target_obj)
|
ObjectToObjectLink |
copyLink(ObjectToObjectLink link)
|
private Milestone |
copyMilestone(Milestone source_stone)
|
private void |
copyOwnership(Ownable obj,
Ownable sourceObj)
|
void |
copyPlan()
|
void |
copyPrecedenceLinks()
|
void |
copyPrecedenceLinks(WfContainerTemplate source_container,
WfContainerTemplate target_container)
|
private void |
copyProjectNodeInfo(ProjectNode source_node,
ProjectNode target_node)
|
void |
copyProjectNodes()
|
private ProjectResource |
copyProjectResource(ProjectResource source_resource)
|
private ProjectProxy |
copyProxy(ProjectProxy source_proxy)
|
void |
copyResourceAssignmentLinks()
|
void |
copyResources()
|
private SummaryActivity |
copySummary(SummaryActivity source_summ)
|
private TimeResource |
copyTimeResourceInfo(TimeResource target,
TimeResource src)
|
private void |
copyWfAttributes(WfExecutionObject source_obj,
WfExecutionObject target_obj)
|
private WfConnector |
getConnector(WfContainer container,
WfConnectorType type)
|
private WfConnectorTemplate |
getEndConnectorTemplate(WfContainerTemplate container_template)
|
private String |
getIdString(Object obj)
|
private ObjectIdentifier |
getOid(Object obj)
|
private WfContainerTemplate |
getParentTemplate(WfTemplateObject template)
|
QueryResult |
getPrecedenceLinks(WfContainerTemplate container_template)
|
private ProjectPlan |
getProjectPlan(Project2 proj)
|
Persistable |
getTargetObject(Persistable source)
|
ObjectIdentifier |
getTargetOid(Persistable source)
|
QueryResult |
getWfNodes(WfContainer container)
|
protected void |
initialize()
This method provides an opportunity to do any initializion beyond setting the three target member variables that is performed in at the start of the method. |
void |
postPostCopyFeedback()
Posts post copy feedback. |
void |
postPreCopyFeedback()
Posts pre-copy user feedback. |
void |
printPostCopyVerbose()
Prints verbose post-copy statements. |
void |
printPreCopyVerbose()
Prints verbose pre-copy statements. |
protected void |
pruneObjects()
This is not necessary for every type of object, but there are times when it is most efficient to prune objects that are present in the target container, but are absent in the source container. |
protected void |
rememberSourceContainerObjects()
Depending on the template being employed it may be necessary to to remember what was in the source container in order to do pruning. |
private void |
saveContainerMap(WfContainer source,
WfContainer target)
|
private void |
saveNodeMap(ProjectNode source,
ProjectNode target)
|
private void |
saveOidMap(Persistable source,
Persistable target)
|
private String |
showAttributes(ProjectPlan plan)
|
Methods inherited from class wt.inf.template.containercopy.AbstractContainerCopyHandler |
copyObjects, getCopier, getSourceContainer, getTargetContainer, getWorklist, postFeedback, rememberTargetContainerObjects, setCopier, setSourceContainer, setTargetContainer, setWorklist |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
ProjectCopyWorklist workList
private Project2 sourceProject
private Project2 targetProject
private ProjectPlan sourcePlan
private ProjectPlan targetPlan
private static final Class ENUM_TYPE_CLASS
private static final Class OBJ_REF_CLASS
private static final Class WT_OBJECT_CLASS
private static final int[] DEF_INDICES
private static final Object[] DEF_PARAMS
private static final boolean VERBOSE
Constructor Detail |
public ProjectPlanStructCopyHelper()
Method Detail |
protected void initialize() throws WTException
initialize
in class AbstractContainerCopyHandler
WTException
public void printPreCopyVerbose() throws WTException
printPreCopyVerbose
in interface ContainerCopyHandler
printPreCopyVerbose
in class AbstractContainerCopyHandler
WTException
public void postPreCopyFeedback() throws WTException
postPreCopyFeedback
in interface ContainerCopyHandler
postPreCopyFeedback
in class AbstractContainerCopyHandler
WTException
protected void rememberSourceContainerObjects() throws WTException
rememberSourceContainerObjects
in class AbstractContainerCopyHandler
WTException
protected void pruneObjects() throws WTException
WTException
protected void copyAddedObjects() throws WTException
copyAddedObjects
in class AbstractContainerCopyHandler
WTException
public void postPostCopyFeedback() throws WTException
postPostCopyFeedback
in interface ContainerCopyHandler
postPostCopyFeedback
in class AbstractContainerCopyHandler
WTException
public void printPostCopyVerbose() throws WTException
printPostCopyVerbose
in interface ContainerCopyHandler
printPostCopyVerbose
in class AbstractContainerCopyHandler
WTException
private ProjectProxy copyProxy(ProjectProxy source_proxy) throws WTException
WTException
private SummaryActivity copySummary(SummaryActivity source_summ) throws WTException
WTException
private ProjectActivity copyActivity(ProjectActivity source_activity) throws WTException
WTException
private ProjectResource copyProjectResource(ProjectResource source_resource) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private TimeResource copyTimeResourceInfo(TimeResource target, TimeResource src) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private CostResource copyCostResourceInfo(CostResource target, CostResource src) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private ProjectResource copyBaseResourceInfo(ProjectResource target, ProjectResource src) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private void copyAssignments(ProjectActivity target, ProjectActivity sourceActivity) throws WTException
WTException
private Milestone copyMilestone(Milestone source_stone) throws WTException
WTException
private void copyOwnership(Ownable obj, Ownable sourceObj) throws WTException
WTException
private Deliverable copyDeliverable(Deliverable source_deli) throws WTException
WTException
private void copyProjectNodeInfo(ProjectNode source_node, ProjectNode target_node) throws WTException
WTException
private void copyWfAttributes(WfExecutionObject source_obj, WfExecutionObject target_obj) throws WTException
WTException
private void copyExecutionInfo(ExecutionObject source_obj, ExecutionObject target_obj) throws WTException
WTException
private WfContainerTemplate getParentTemplate(WfTemplateObject template) throws WTException
WTException
private ProjectPlan getProjectPlan(Project2 proj) throws WTException
WTException
private void saveContainerMap(WfContainer source, WfContainer target) throws WTException
WTException
private WfConnector getConnector(WfContainer container, WfConnectorType type) throws WTException
WTException
private WfConnectorTemplate getEndConnectorTemplate(WfContainerTemplate container_template) throws WTException
WTException
private void saveNodeMap(ProjectNode source, ProjectNode target) throws WTException
WTException
private void saveOidMap(Persistable source, Persistable target) throws WTException
WTException
public void copyResources() throws WTException
WTException
public void copyProjectNodes() throws WTException
WTException
public void copyDeliverables() throws WTException
WTException
public void copyPrecedenceLinks(WfContainerTemplate source_container, WfContainerTemplate target_container) throws WTException
WTException
public void copyPrecedenceLinks() throws WTException
WTException
public void copyResourceAssignmentLinks() throws WTException
WTException
public ObjectToObjectLink copyLink(ObjectToObjectLink link) throws WTException
WTException
public QueryResult getPrecedenceLinks(WfContainerTemplate container_template) throws WTException
WTException
public void copyDeliverableLinks() throws WTException
WTException
public void copyContainmentLinks() throws WTException
WTException
public ObjectIdentifier getTargetOid(Persistable source) throws WTException
WTException
public Persistable getTargetObject(Persistable source) throws WTException
WTException
public void copyContainmentLinks(WfContainer source_container, WfContainer target_container) throws WTException
WTException
public QueryResult getWfNodes(WfContainer container) throws WTException
WTException
public void copyPlan() throws WTException
WTException
private String showAttributes(ProjectPlan plan) throws WTException
WTException
private String getIdString(Object obj)
private ObjectIdentifier getOid(Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |