wt.projmgmt.ix
Class MilestoneIxHandler

java.lang.Object
  extended bywt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
      extended bywt.ixb.publicforhandlers.ClassExporterImporterTemplate
          extended bywt.projmgmt.ix.ExecObjIxHandler
              extended bywt.projmgmt.ix.MilestoneIxHandler
All Implemented Interfaces:
ClassExporter, ClassExporterImporter, ElementImporter

public class MilestoneIxHandler
extends ExecObjIxHandler


Nested Class Summary
 
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
ClassExporterImporterTemplate.ContentHolderCommitListener
 
Field Summary
private static String RESOURCE
           
private static boolean VERBOSE
           
 
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
 
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
CONFLICT_RESOURCE
 
Constructor Summary
MilestoneIxHandler()
           
 
Method Summary
 Object createObject(IxbElement elem, Importer imp)
          Creates (non-persistent) milestone and imports owner and attributes.
 void exportMilestone(Milestone mile, IxbElement mile_elem, Exporter exporter, int node_id)
          Exports milestone.
 void exportObject(Object obj, Exporter exporter)
          Exports the specified object in context given by parameter exporter.
 Object storeObject(Object obj, IxbElement elem, Importer imp)
          Stores milestone.
 
Methods inherited from class wt.projmgmt.ix.ExecObjIxHandler
findAmongExistingObjects, getImportPriority, getOid, importObjectAttributesAfterStore
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
createFileXMLOnExport, exportAttributes, finalizeImportObject, getRootTag, importElement, importObjectAttributes, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
checkConflicts, finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport, previewElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

VERBOSE

private static final boolean VERBOSE
Constructor Detail

MilestoneIxHandler

public MilestoneIxHandler()
Method Detail

exportObject

public void exportObject(Object obj,
                         Exporter exporter)
                  throws WTException
Description copied from class: ClassExporterImporterTemplate
Exports the specified object in context given by parameter exporter.
The implementation of this method is partitioned into several protected methods. Individual class handlers can override the following protected methods: Also, export actions from either client or system registry will be performed. Specifically, the two methods wt.ixb.tuner.ExportActionHelper.performPreExportAction () and wt.ixb.tuner.ExportActionHelper.performPostExportAction () will be called before and after th above three protected methods, respectively.

Supported API: true

Specified by:
exportObject in interface ClassExporter
Overrides:
exportObject in class ClassExporterImporterTemplate
Parameters:
obj -
exporter - The Exporter instance that represents the context of the export operation.
Throws:
WTException

exportMilestone

public void exportMilestone(Milestone mile,
                            IxbElement mile_elem,
                            Exporter exporter,
                            int node_id)
                     throws WTException
Exports milestone. The dtd is as follows.
 
 

Throws:
WTException

createObject

public Object createObject(IxbElement elem,
                           Importer imp)
                    throws WTException
Creates (non-persistent) milestone and imports owner and attributes. The dtd elements used are the following. projectPlanId is used to retrieve the project plan.
 

Specified by:
createObject in class ClassExporterImporterTemplate
Parameters:
elem -
imp -
Returns:
Object
Throws:
WTException

storeObject

public Object storeObject(Object obj,
                          IxbElement elem,
                          Importer imp)
                   throws WTException
Stores milestone. Also updates project variables.
 
 

Overrides:
storeObject in class ClassExporterImporterTemplate
Parameters:
obj -
elem -
imp -
Returns:
Object
Throws:
WTException