wt.pdmlink
Class ProdConfigIxHandler

java.lang.Object
  extended bywt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
      extended bywt.ixb.publicforhandlers.ClassExporterImporterTemplate
          extended bywt.pdmlink.ProdConfigIxHandler
All Implemented Interfaces:
ClassExporter, ClassExporterImporter, ElementImporter

public class ProdConfigIxHandler
extends ClassExporterImporterTemplate

This class deals with the import of the XML Element.


Nested Class Summary
 
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
ClassExporterImporterTemplate.ContentHolderCommitListener
 
Field Summary
private static String _rb
           
private static NMProjectConstants.OrgStructureInfo accessControlRulesTags
           
private static NMProjectConstants.DocTemplateInfo docTemplTags
           
private static NMProjectConstants.EngineRuleInfo engineTags
           
private static NMProjectConstants.CollabTemplateInfo forumTempls
           
private static NMProjectConstants.IndexPolicyRulesInfo indexPolicyRulesTags
           
private static NMProjectConstants.ProjectMemberInfo memberTags
           
static int OBJECT_LEVEL
           
private static NMProjectConstants.OrgConfigInfo orgTags
           
private static NMProjectConstants.ProjectEnumTypeInfo petTags
           
private static PDMProductConstants.ProductTemplateInfo prdTempl
           
private static PDMProductConstants.ProductConfigInfo productTags
           
private static NMProjectConstants.SeedObjectRuleInfo seedTags
           
private static NMProjectConstants.ForumAndNotebookSpecInfo specTags
           
private static NMProjectConstants.TypeBasedRuleInfo tbRuleTags
           
private static NMProjectConstants.TemplateDocInfo templDocTags
           
static int TYPE_LEVEL
           
 
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
 
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
CONFLICT_RESOURCE
 
Constructor Summary
ProdConfigIxHandler()
           
 
Method Summary
 Object createObject(IxbElement elem, Importer imp)
          Creates new instance of Windchill object.
 void exportObject(Object obj, Exporter exporter)
          Exports the specified object in context given by parameter exporter.
static void exportProductBaseInfo(PDMLinkProduct product, IxbElement elem, Exporter exp)
           
 void exportProductConfig(PDMLinkProduct product, IxbElement project_elem, Exporter exporter)
           ProductConfig NmLoader*, ACLRule*, TypeBasedRule*, TemplateDocument*, DocumentTemplate*
 Object findAmongExistingObjects(IxbElement parm1, Importer parm2)
          Implements typical way of finding whether object from given XML file exists already in Windchill database.
 int getImportPriority()
          Return the import priority of the object type represented by this import handler.
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
createFileXMLOnExport, exportAttributes, finalizeImportObject, getRootTag, importElement, importObjectAttributes, importObjectAttributesAfterStore, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement, storeObject
 
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

templDocTags

private static final NMProjectConstants.TemplateDocInfo templDocTags

productTags

private static final PDMProductConstants.ProductConfigInfo productTags

tbRuleTags

private static final NMProjectConstants.TypeBasedRuleInfo tbRuleTags

orgTags

private static final NMProjectConstants.OrgConfigInfo orgTags

engineTags

private static final NMProjectConstants.EngineRuleInfo engineTags

seedTags

private static final NMProjectConstants.SeedObjectRuleInfo seedTags

prdTempl

private static final PDMProductConstants.ProductTemplateInfo prdTempl

petTags

private static final NMProjectConstants.ProjectEnumTypeInfo petTags

memberTags

private static final NMProjectConstants.ProjectMemberInfo memberTags

forumTempls

private static final NMProjectConstants.CollabTemplateInfo forumTempls

specTags

private static final NMProjectConstants.ForumAndNotebookSpecInfo specTags

docTemplTags

private static final NMProjectConstants.DocTemplateInfo docTemplTags

accessControlRulesTags

private static final NMProjectConstants.OrgStructureInfo accessControlRulesTags

indexPolicyRulesTags

private static final NMProjectConstants.IndexPolicyRulesInfo indexPolicyRulesTags

_rb

private static final String _rb
See Also:
Constant Field Values

TYPE_LEVEL

public static final int TYPE_LEVEL
See Also:
Constant Field Values

OBJECT_LEVEL

public static final int OBJECT_LEVEL
See Also:
Constant Field Values
Constructor Detail

ProdConfigIxHandler

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

exportProductConfig

public void exportProductConfig(PDMLinkProduct product,
                                IxbElement project_elem,
                                Exporter exporter)
                         throws WTException
 ProductConfig
     NmLoader*,
     ACLRule*,
     TypeBasedRule*,
     TemplateDocument*,
     DocumentTemplate*
 

Throws:
WTException

createObject

public Object createObject(IxbElement elem,
                           Importer imp)
                    throws WTException
Description copied from class: ClassExporterImporterTemplate
Creates new instance of Windchill object. Every class requires its own method to create object of this class. So, this method must be overriden by any class specific import handler

Supported API: true

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

getImportPriority

public int getImportPriority()
                      throws WTException
Description copied from class: ClassExporterImporterTemplateGeneral
Return the import priority of the object type represented by this import handler.
Import priority defines the order in which objects will be imported. This method does not carry parameters in the signature. The return value can not be negative. Those XML files will have a higher import priority for smaller returned values.

Supported API: true

Specified by:
getImportPriority in interface ElementImporter
Specified by:
getImportPriority in class ClassExporterImporterTemplateGeneral
Returns:
int
Throws:
WTException

findAmongExistingObjects

public Object findAmongExistingObjects(IxbElement parm1,
                                       Importer parm2)
                                throws WTException
Description copied from class: ClassExporterImporterTemplate
Implements typical way of finding whether object from given XML file exists already in Windchill database.

Supported API: true

Overrides:
findAmongExistingObjects in class ClassExporterImporterTemplate
Parameters:
parm1 -
parm2 -
Returns:
Object
Throws:
WTException

exportProductBaseInfo

public static void exportProductBaseInfo(PDMLinkProduct product,
                                         IxbElement elem,
                                         Exporter exp)
                                  throws WTException
Throws:
WTException