|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.projmgmt.ix.ProjectResourceIxHandler
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
private static Map |
_classMap
|
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 | |
ProjectResourceIxHandler()
|
Method Summary | |
Object |
createObject(IxbElement elem,
Importer imp)
|
private ProjectResource |
createProjectResource(ProjectPlan plan,
String type)
resourceType (PERSON | ROLE | EQUIPMENT | MATERIAL | INFORMATION | FACILITY) #REQUIRED> |
private void |
exportCostPerUse(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
private void |
exportLabel(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
private void |
exportMaxPercentUtilization(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
private void |
exportMaxUnits(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
void |
exportObject(Object obj,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
private void |
exportOvertimeRate(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
void |
exportResource(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
private void |
exportResourceAttributes(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
private void |
exportResourceReference(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
private void |
exportStandardRate(ProjectResource resource,
IxbElement elem,
Exporter exporter)
|
Object |
findAmongExistingObjects(IxbElement elem,
Importer imp)
Implements typical way of finding whether object from given XML file exists already in Windchill database. |
private ProjectResource |
findResource(ProjectPlan plan,
String type,
String name)
|
int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
private static ObjectIdentifier |
getOid(Object obj)
|
private PersonResource |
getPersonResource(WTContainerRef cont_ref,
ProjectPlan plan,
IxbElement ref_elem)
|
private WTPrincipal |
getPrincipal(WTContainerRef cont_ref,
String princ_name)
|
private ResourceCategory |
getResourceCategory(IxbElement elem,
Importer imp)
|
private String |
getResourceType(ProjectResource resource)
resourceType (PERSON | ROLE | EQUIPMENT | MATERIAL | INFORMATION | FACILITY) #REQUIRED> |
private void |
importCostPerUse(ProjectResource resource,
IxbElement elem,
Importer importer)
|
private void |
importLabel(ProjectResource resource,
IxbElement elem,
Importer importer)
|
private void |
importMaxPercentUtilization(ProjectResource resource,
IxbElement elem,
Importer importer)
|
private void |
importMaxUnits(ProjectResource resource,
IxbElement elem,
Importer importer)
|
private void |
importOvertimeRate(ProjectResource resource,
IxbElement elem,
Importer importer)
|
private boolean |
importResourceReference(ProjectResource resource,
IxbElement elem,
Importer importer)
|
private void |
importStandardRate(ProjectResource resource,
IxbElement elem,
Importer importer)
|
Object |
storeObject(Object obj,
IxbElement elem,
Importer imp)
|
private boolean |
updateResourceAttributes(ProjectResource resource,
String type,
IxbElement elem,
Importer imp)
|
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, finalizeImportObject, getRootTag, importElement, importObjectAttributes, importObjectAttributesAfterStore, 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 |
private static final Map _classMap
private static final String RESOURCE
private static final boolean VERBOSE
Constructor Detail |
public ProjectResourceIxHandler()
Method Detail |
public void exportObject(Object obj, Exporter exporter) throws WTException
ClassExporterImporterTemplate
createFileXMLOnExport(Exporter exporter)
, which
create an IxbDocument
with the root tag. See getRootTag()
;
exportAttributes (Object object, IxbElement fileXML,
Exporter exporter)
which will export the attributes according
to the DTD. The parameter fileXML is the returned vlue from createFileXMLOnExport(Exporter
exporter)
.
storeElement(Object object, IxbElement fileXML, Exporter
exporter)
which will store the fileXML into an xml-file.
wt.ixb.tuner.ExportActionHelper.performPreExportAction ()
and
wt.ixb.tuner.ExportActionHelper.performPostExportAction ()
will be called before and after th above three protected methods,
respectively.
exportObject
in interface ClassExporter
exportObject
in class ClassExporterImporterTemplate
obj
- exporter
- The Exporter
instance that represents the context of the export operation.
WTException
public void exportResource(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
private void exportResourceAttributes(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
public Object createObject(IxbElement elem, Importer imp) throws WTException
createObject
in class ClassExporterImporterTemplate
elem
- imp
-
WTException
private PersonResource getPersonResource(WTContainerRef cont_ref, ProjectPlan plan, IxbElement ref_elem) throws WTException
WTException
private boolean updateResourceAttributes(ProjectResource resource, String type, IxbElement elem, Importer imp) throws WTException
WTException
private ResourceCategory getResourceCategory(IxbElement elem, Importer imp) throws WTException
WTException
public Object storeObject(Object obj, IxbElement elem, Importer imp) throws WTException
storeObject
in class ClassExporterImporterTemplate
obj
- elem
- imp
-
WTException
public Object findAmongExistingObjects(IxbElement elem, Importer imp) throws WTException
ClassExporterImporterTemplate
findAmongExistingObjects
in class ClassExporterImporterTemplate
elem
- imp
-
WTException
private String getResourceType(ProjectResource resource) throws WTException
resourceType (PERSON | ROLE | EQUIPMENT | MATERIAL | INFORMATION | FACILITY) #REQUIRED>
WTException
private void exportLabel(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
private void exportMaxUnits(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
private void exportResourceReference(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
private void exportStandardRate(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
private void exportCostPerUse(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
private void exportOvertimeRate(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
private void exportMaxPercentUtilization(ProjectResource resource, IxbElement elem, Exporter exporter) throws WTException
WTException
private ProjectResource findResource(ProjectPlan plan, String type, String name) throws WTException
WTException
private ProjectResource createProjectResource(ProjectPlan plan, String type) throws WTException
resourceType (PERSON | ROLE | EQUIPMENT | MATERIAL | INFORMATION | FACILITY) #REQUIRED>
WTException
private void importLabel(ProjectResource resource, IxbElement elem, Importer importer) throws WTException
WTException
private void importMaxUnits(ProjectResource resource, IxbElement elem, Importer importer) throws WTException
WTException
private boolean importResourceReference(ProjectResource resource, IxbElement elem, Importer importer) throws WTException
WTException
private WTPrincipal getPrincipal(WTContainerRef cont_ref, String princ_name) throws WTException
WTException
private void importStandardRate(ProjectResource resource, IxbElement elem, Importer importer) throws WTException
WTException
private void importCostPerUse(ProjectResource resource, IxbElement elem, Importer importer) throws WTException
WTException
private void importOvertimeRate(ProjectResource resource, IxbElement elem, Importer importer) throws WTException
WTException
private void importMaxPercentUtilization(ProjectResource resource, IxbElement elem, Importer importer) throws WTException
WTException
public int getImportPriority() throws WTException
ClassExporterImporterTemplateGeneral
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
private static ObjectIdentifier getOid(Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |