|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.7.0) E10686-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.adf.share.customizationset.util.CSMigratorUtil
public class CSMigratorUtil
Public utility class for FMW Customization Set Migration
Constructor Summary | |
---|---|
CSMigratorUtil()
|
Method Summary | |
---|---|
static void |
addDirectory(java.lang.String dir2zip,
java.util.zip.ZipOutputStream zos,
java.lang.String sourcePath)
|
static void |
createZip(java.lang.String zipFilePath,
java.lang.String sourcePath)
This is a utilty API that will create a zip file |
static void |
extractZip(java.lang.String zipAbsoluteFilePath,
java.lang.String destinationFolder)
This is a utility API which will extract a given zip in the destination folder specified. |
static ADFLogger |
getADFLogger()
|
static java.lang.Number |
getCustomizationSetId(java.lang.Number mdsFileId)
|
static java.util.Map<java.lang.String,java.lang.String> |
getCustomizationSetStatus(java.lang.Number customizationSetID)
|
static org.w3c.dom.Document |
getMDSDocument(java.lang.String mdsFileName,
oracle.mds.core.MDSSession mMDSSession)
|
static java.lang.Number |
getMDSFileId(java.lang.Number csSetId)
|
static org.w3c.dom.Document |
getMDSFileIdCsSetIdDoc(boolean forUpdating)
|
static oracle.mds.core.MDSSession |
getMDSSession()
Get the MDS Session |
static void |
logInfo(java.lang.String className,
java.lang.String apiName,
java.lang.String msg)
|
static void |
updateCustomizationSetStatus(java.lang.Number customizationSetID,
java.lang.String type,
java.lang.String status,
java.lang.String detailMessage,
java.lang.String shortMessage,
java.lang.String mode,
boolean isDownloadable,
long startTime,
long endTime)
Update the Customization Set Migration status. |
static void |
updateMdsFileIdCsSetIdMap(java.lang.Number mdsFileId,
java.lang.Number csSetId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CSMigratorUtil()
Method Detail |
---|
public static ADFLogger getADFLogger()
public static void logInfo(java.lang.String className, java.lang.String apiName, java.lang.String msg)
public static oracle.mds.core.MDSSession getMDSSession() throws oracle.mds.exception.MDSException
oracle.mds.exception.MDSException
public static void updateCustomizationSetStatus(java.lang.Number customizationSetID, java.lang.String type, java.lang.String status, java.lang.String detailMessage, java.lang.String shortMessage, java.lang.String mode, boolean isDownloadable, long startTime, long endTime) throws oracle.mds.naming.InvalidReferenceException, oracle.mds.naming.InvalidReferenceTypeException, oracle.mds.core.MetadataNotFoundException, oracle.mds.exception.UnsupportedUpdateException, oracle.mds.core.ConcurrentMOChangeException, oracle.mds.core.ValidationException, oracle.mds.exception.MDSException
customizationSetID
- : identifier for Customization Set.type
- : component type (eg: ADF , BIP , SOA etc) , if 'ALL' is passed ,
overall status will be updatedstatus
- : status of the migrationdetailMessage
- : detail message (eg: 25 documents imported for JEDI.
140 documents imported for MDS.)shortMessage
- : short message (eg: ADF, ODI Export was successful.)mode
- : mode of migration (export/import)isDownloadable
- : Valid for Export. Should be marked true after export is over. Pass null for import.startTime
- : give start time when export/import startsendTime
- : give end time when export/import ends
oracle.mds.naming.InvalidReferenceException
oracle.mds.naming.InvalidReferenceTypeException
oracle.mds.core.MetadataNotFoundException
oracle.mds.exception.UnsupportedUpdateException
oracle.mds.core.ConcurrentMOChangeException
oracle.mds.core.ValidationException
oracle.mds.exception.MDSException
public static org.w3c.dom.Document getMDSDocument(java.lang.String mdsFileName, oracle.mds.core.MDSSession mMDSSession) throws oracle.mds.naming.InvalidReferenceException, oracle.mds.naming.InvalidReferenceTypeException, oracle.mds.core.MetadataNotFoundException, oracle.mds.exception.UnsupportedUpdateException
mdsFileName
-
oracle.mds.naming.InvalidReferenceException
oracle.mds.naming.InvalidReferenceTypeException
oracle.mds.core.MetadataNotFoundException
oracle.mds.exception.UnsupportedUpdateException
public static java.util.Map<java.lang.String,java.lang.String> getCustomizationSetStatus(java.lang.Number customizationSetID) throws oracle.mds.naming.InvalidReferenceException, oracle.mds.naming.InvalidReferenceTypeException, oracle.mds.core.MetadataNotFoundException, oracle.mds.exception.UnsupportedUpdateException, oracle.mds.exception.MDSException
customizationSetID
-
oracle.mds.naming.InvalidReferenceException
oracle.mds.naming.InvalidReferenceTypeException
oracle.mds.core.MetadataNotFoundException
oracle.mds.exception.UnsupportedUpdateException
oracle.mds.exception.MDSException
public static void extractZip(java.lang.String zipAbsoluteFilePath, java.lang.String destinationFolder) throws java.io.IOException
zipAbsoluteFilePath
- eg: /home/mcooper/ABC.jardestinationFolder
- eg: /home/mcooper/zipArchive
java.io.IOException
public static void createZip(java.lang.String zipFilePath, java.lang.String sourcePath) throws java.io.IOException
zipFilePath
- eg: /home/mcooper/ABC.jarsourcePath
- eg: /home/mcooper/zipArchive
java.io.IOException
public static void addDirectory(java.lang.String dir2zip, java.util.zip.ZipOutputStream zos, java.lang.String sourcePath) throws java.io.IOException
dir2zip
- zos
- sourcePath
-
java.io.IOException
public static java.lang.Number getMDSFileId(java.lang.Number csSetId)
public static org.w3c.dom.Document getMDSFileIdCsSetIdDoc(boolean forUpdating)
public static java.lang.Number getCustomizationSetId(java.lang.Number mdsFileId)
public static void updateMdsFileIdCsSetIdMap(java.lang.Number mdsFileId, java.lang.Number csSetId)
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Share 11g Release 1 (11.1.1.7.0) E10686-08 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |