public final class SmartImportServiceImpl extends java.lang.Object implements ISmartImportService
SmartExportServiceImpl
CONTEXT_OBJECT_NAME, DATA_SERVER_OBJECT_NAME, DATASTORE_OBJECT_NAME, FOLDER_OBJECT_NAME, INTERFACE_OBJECT_NAME, LOAD_PLAN_OBJECT_NAME, LOGICAL_AGENT_OBJECT_NAME, LOGICAL_SCHEMA_OBJECT_NAME, MARKER_GROUP_OBJECT_NAME, MATCH_BY_CODE, MATCH_BY_ID, MATCH_BY_NAME, MODEL_FOLDER_OBJECT_NAME, MODEL_OBJECT_NAME, PACKAGE_OBJECT_NAME, PHYSICAL_AGENT_OBJECT_NAME, PHYSICAL_SCHEMA_OBJECT_NAME, PROJECT_OBJECT_NAME, SCENARIO_FOLDER_OBJECT_NAME, SCENARIO_OBJECT_NAME, SEQUENCE_OBJECT_NAME, SMART_IMPORT_ACTION_CREATE_COPY, SMART_IMPORT_ACTION_IGNORE, SMART_IMPORT_ACTION_MERGE, SMART_IMPORT_ACTION_OVERWRITE, SMART_IMPORT_ACTION_REUSE, SUBMODEL_OBJECT_NAME, TRT_OBJECT_NAME, USER_FUNCTION_OBJECT_NAME, VARIABLE_OBJECT_NAME
Constructor and Description |
---|
SmartImportServiceImpl(OdiInstance pOdiInstance)
Constructs an ImportServiceImpl object.
|
Modifier and Type | Method and Description |
---|---|
void |
importFromXml(java.lang.String pFileName)
Deprecated.
|
void |
importFromXml(java.lang.String pFileName,
java.lang.String pResponseFileName)
Deprecated.
|
void |
importFromXml(java.lang.String pFileName,
java.lang.String pResponseFileName,
char[] pExportKey,
boolean pImportWithoutCipherData)
This method performs a Smart Import for a Smart Export XML file.
|
void |
importObjectsFromXml(java.lang.String pFileName,
char[] pExportKey,
boolean pImportWithoutCipherData)
This method performs a Smart Import for a Smart Export XML file.
|
void |
setMatchedFCODefaultImportAction(java.lang.String pFCOObjType,
int pSmartImportAction)
This method sets the default import action for a smart import first class object (FCO).
|
void |
useIdMatching()
This Method uses ID as matchingRuleType
|
void |
useMatchRuleType(java.lang.String pMatchRuleType)
This method adds the MatchRuleType to be used to the list
|
void |
useNameMatching()
This method uses Name as matchingRuleType
|
public SmartImportServiceImpl(OdiInstance pOdiInstance)
pOdiInstance
- an OdiInstance object@Deprecated public void importFromXml(java.lang.String pFileName, java.lang.String pResponseFileName) throws OdiSmartImportException, java.io.IOException
importFromXml
in interface ISmartImportService
pFileName
- the filename of the Smart Export xml file.pResponseFileName
- Smart Import response file saved from previous Smart Import UI session.java.io.IOException
- if file does not exist.OdiSmartImportException
- if the import fails.public void importFromXml(java.lang.String pFileName, java.lang.String pResponseFileName, char[] pExportKey, boolean pImportWithoutCipherData) throws OdiSmartImportException, java.io.IOException
importFromXml
in interface ISmartImportService
pFileName
- the filename of the Smart Export xml file.pResponseFileName
- Smart Import response file saved from previous Smart Import UI session.pExportKey
- Export Key provided by user during Smart Export which will be used for password cipher text migration between repositoriespImportWithoutCipherData
- boolean If pImportWithoutCipherData=true, the pExportKey parameter will be ignored and any cipher text value present in the import file will be imported as null
value. If pContinueWithoutValidKey=false, and pExportKey is valid, the cipher text data will be imported into the repository. If pImportWithoutCipherData=false and pExportKey is not valid, then import will abort.java.io.IOException
- if file does not exist.OdiSmartImportException
- if the import fails.@Deprecated public void importFromXml(java.lang.String pFileName) throws OdiSmartImportException, java.io.IOException
importFromXml
in interface ISmartImportService
pFileName
- the filename of the Smart Export xml file.java.io.IOException
- if file does not exist.OdiSmartImportException
- if the import fails.public void importObjectsFromXml(java.lang.String pFileName, char[] pExportKey, boolean pImportWithoutCipherData) throws OdiSmartImportException, java.io.IOException
ISmartImportService
importObjectsFromXml
in interface ISmartImportService
pFileName
- the filename of the Smart Export xml file.pExportKey
- Export Key provided by user during Smart Export which will be used for password cipher text migration between repositoriespImportWithoutCipherData
- boolean If pImportWithoutCipherData=true, the pExportKey parameter will be ignored and any cipher text value present in the import file will be imported as null
value. If pContinueWithoutValidKey=false, and pExportKey is valid, the cipher text data will be imported into the repository. If pImportWithoutCipherData=false and pExportKey is not valid, then import will abort.OdiSmartImportException
- if the import fails.java.io.IOException
- if file does not exist.public void setMatchedFCODefaultImportAction(java.lang.String pFCOObjType, int pSmartImportAction) throws OdiSmartImportException
setMatchedFCODefaultImportAction
in interface ISmartImportService
pFCOObjType
- The name of the type of FCO.list of FCO's Keywords used in ISmartImportService
eg: ISmartImportService.PROJECT_OBJECT_NAME will be the format for this StringpSmartImportAction
- The default Smart Import action.Actions used in ISmartImportService
eg: ISmartImportService.SMART_IMPORT_ACTION_CREATE_COPY will be the format for this stringOdiSmartImportException.
OdiSmartImportException
public void useMatchRuleType(java.lang.String pMatchRuleType)
ISmartImportService
useMatchRuleType
in interface ISmartImportService
public void useIdMatching()
ISmartImportService
useIdMatching
in interface ISmartImportService
public void useNameMatching()
ISmartImportService
useNameMatching
in interface ISmartImportService