|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.step.processor.ImportFromP21Processor
Process a Part21 file in order to import its content into Windchill. The import process is controlled by specifying one of the import tokens.
ImportScheme
Constructor Summary | |
ImportFromP21Processor(ExpressSchema wtSchema)
Constructs the import engine ready for performing STEP imports |
Method Summary | |
protected void |
applyContentsUpload(ContentHandler contentHandler,
FormatContentHolder contentHolder,
String documentNumber,
Vector contents)
|
private RevisionControlled |
checkForAlreadyImported(Class masterClass,
String masterNumber,
String versionId,
String iterationId)
|
private void |
freeResourcesForGarbageCollection()
|
private Vector |
getEntityContentItems(StepEntity stepIteration)
For an Entity that has associated content items, this will return a Vector of their unique filenames (it is possible that the mapping process may lead to repeats being present). |
private String |
getEntityIterationId(StepEntity stepIteration)
For an Entity that represents an iteration, this will return the iteration identifier. |
private String |
getEntityVersionId(StepEntity stepIteration)
For an Entity that represents an iteration, this will return the version identifier. |
Vector |
getImportedInstances()
|
private RevisionControlled |
importIteration(StepEntity stepIteration)
Extracts the required information from the Step Data to enable a new iteration to be created, or an existing instance to be updated. |
private void |
importIterations(StepData p21data)
Looks through the objects in the StepData for PartVersion subclasses which will be instantiated. |
private ObjectToObjectLink |
importLink(StepEntity stepLink,
StepData sd)
Extracts the required information from the Step Data to enable a new link to be created, or an existing instance to be updated. |
private void |
importLinks(StepData p21data)
|
void |
importStepData(StepData p21data,
ImportScheme importSchemeForVersions,
String importFolder,
String[] importFilesList,
ManagedBaseline baseline)
Import Windchill Schema data from a Part21 data set |
void |
importStepFile(String p21Filename,
ImportScheme importSchemeForVersions,
String importFolder,
String[] importFilesList,
ManagedBaseline baseline)
Import Windchill Schema data from a Part21 STEP file |
private boolean |
isFilteredIn(String filename)
Checks wether a given filename has been selected for upload as content. |
private Persistable |
mapEntityToWTInstance(StepEntity entity)
|
private void |
recordEntityToInstanceMap(StepEntity entity,
Object instance)
Record a map of entity to instance so that further STEP references can be matched and repeated inports can be avoided. |
private void |
recordImportedIteration(StepEntity entity,
RevisionControlled instance)
Record an imported iteration in String form so that it can be matched against repetitions in the STEP file. |
private void |
recordInBaseline(Object item)
|
protected void |
uploadAnyContentFiles(RevisionControlled iteration,
StepEntity entity)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ExpressSchema _wtSchema
private Hashtable _entityToInstanceMap
private Hashtable _importedInstancesRecord
private Vector mkrObjectList
private Vector mkrWarnings
private boolean needCheckin
private Workable roleA
private static StringBuffer _sharedInstanceIdBuffer
private static final String ITERATION_MASTER
private static final String MASTER_NAME
private static final String MASTER_NUMBER
private static final String ITERATION_INFO
private static final String ITERATION_IDENTIFIER
private static final String IDENTIFIER_SERIES
private static final String SERIES_VALUE
private static final String VERSION_INFO
private static final String VERSION_IDENTIFIER
private static final String CONTENT_ITEMS
private static final String CONTENT_ITEM_FILENAME
private static final String LINK_ROLE_A_OBJECT
private static final String LINK_ROLE_B_OBJECT
private EntityTraverser _entityTraverser
private ImportScheme _importSchemeForVersions
private String _importFolder
private ManagedBaseline _baselineForImports
private boolean _logImportReasoning
private String _importStepFilename
private String[] _uploadFilesFilter
Constructor Detail |
public ImportFromP21Processor(ExpressSchema wtSchema) throws WTException, TransferException
Method Detail |
public void importStepFile(String p21Filename, ImportScheme importSchemeForVersions, String importFolder, String[] importFilesList, ManagedBaseline baseline) throws WTException, TransferException
WTException
TransferException
public void importStepData(StepData p21data, ImportScheme importSchemeForVersions, String importFolder, String[] importFilesList, ManagedBaseline baseline) throws WTException, TransferException
WTException
TransferException
private void freeResourcesForGarbageCollection()
private void importIterations(StepData p21data) throws WTException, TransferException
WTException
TransferException
protected void uploadAnyContentFiles(RevisionControlled iteration, StepEntity entity) throws TransferException
TransferException
protected void applyContentsUpload(ContentHandler contentHandler, FormatContentHolder contentHolder, String documentNumber, Vector contents) throws TransferException
TransferException
private void recordEntityToInstanceMap(StepEntity entity, Object instance)
private void recordImportedIteration(StepEntity entity, RevisionControlled instance) throws TransferException
TransferException
private void recordInBaseline(Object item) throws TransferException
TransferException
private RevisionControlled checkForAlreadyImported(Class masterClass, String masterNumber, String versionId, String iterationId)
private String getEntityVersionId(StepEntity stepIteration) throws TransferException
TransferException
private String getEntityIterationId(StepEntity stepIteration) throws TransferException
TransferException
private Vector getEntityContentItems(StepEntity stepIteration) throws TransferException
stepIteration
- The Step representation of the contentHolder
TransferException
private boolean isFilteredIn(String filename)
private RevisionControlled importIteration(StepEntity stepIteration) throws TransferException
TransferException
private void importLinks(StepData p21data) throws WTException, TransferException
WTException
TransferException
private Persistable mapEntityToWTInstance(StepEntity entity) throws TransferException
TransferException
private ObjectToObjectLink importLink(StepEntity stepLink, StepData sd) throws TransferException
TransferException
public Vector getImportedInstances()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |