Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

oracle.apps.fnd.applseed.rt.extract.util
Class SDExtractVcs

java.lang.Object
  extended by oracle.apps.fnd.applseed.rt.extract.util.SDExtractVcs

public final class SDExtractVcs
extends java.lang.Object

This class performs the Version Control System functions for Extract.


Field Summary
static java.lang.String CHECKIN_FILE_LIST
          Check In File List extract map key.
 
Method Summary
static boolean addFiles(ExtractFile[] extractFiles)
          Add new files to VCS repository.
static boolean addFiles(ExtractFile[] extractFiles, java.lang.String comments)
          Add new files to VCS repository.
static boolean checkinFiles(ExtractFileList extractFiles)
          Check in the passed list of extract files, auto gen checkin comments.
static boolean checkinFiles(ExtractFileList extractFiles, java.lang.String comments)
          Check in the passed ExtractFileList.
static boolean checkinFiles(java.util.Map seedArgs)
          Interface exposed to SeedDataDelegate class.
static java.lang.String[] checkinFiles(java.lang.String[] filenames, java.lang.String comments)
          Check in the passed array of filenames.
static boolean checkoutFiles(ExtractFile[] extractFiles)
          Check out the passed array of extract files.
static boolean checkoutFiles(ExtractFile[] extractFiles, java.lang.String comments)
          Check out the passed array of extract files.
static boolean getTipVersions(ExtractFile[] extractFiles)
          Get the latest tip version from vcs for each of the passed extract files to the local file system.
static java.lang.String getVCSId()
          Get the VCS system ID value.
static boolean ping()
          Ping the vcs server.
static void setFileVersions(ExtractFile[] extractFiles)
          Set file version info for the passed extract file array.
static void terminate()
          Terminate the vcs server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHECKIN_FILE_LIST

public static final java.lang.String CHECKIN_FILE_LIST
Check In File List extract map key.

See Also:
Constant Field Values
Method Detail

ping

public static boolean ping()
Ping the vcs server.

Returns:
true on sucess, false on failure to ping server

getVCSId

public static java.lang.String getVCSId()
Get the VCS system ID value.

Returns:
String vcs id, currently ADE or CVS

setFileVersions

public static void setFileVersions(ExtractFile[] extractFiles)
Set file version info for the passed extract file array. Sets the version number for each extract file to the vcs tip version. Sets the vcs branch name for each extract file.

Parameters:
extractFiles - array of ExtractFiles to set versions

getTipVersions

public static boolean getTipVersions(ExtractFile[] extractFiles)
Get the latest tip version from vcs for each of the passed extract files to the local file system. The file system location of each the vcs tip files is saved back to the ExtractFile array.

Parameters:
extractFiles - array of ExtractFiles to get from vcs.
Returns:
true on success for all files, false otherwise.

checkinFiles

public static boolean checkinFiles(java.util.Map seedArgs)
Interface exposed to SeedDataDelegate class.

Parameters:
seedArgs - Map containing seed arguments key "CheckinFileList" -> ExtractFileList object of files to check in
Returns:
true all files checked in, false otherwise

checkinFiles

public static boolean checkinFiles(ExtractFileList extractFiles)
Check in the passed list of extract files, auto gen checkin comments.

Parameters:
extractFiles - ExtractFileList to checkin
Returns:
true if all files checked in successfully, false otherwise

checkinFiles

public static boolean checkinFiles(ExtractFileList extractFiles,
                                   java.lang.String comments)
Check in the passed ExtractFileList.

Parameters:
extractFiles - array of ExtractFiles to checkin
comments - String comments to add to checkin, if null, auto gen checkin comments
Returns:
true if all files checked in successfully, false otherwise

checkinFiles

public static java.lang.String[] checkinFiles(java.lang.String[] filenames,
                                              java.lang.String comments)
Check in the passed array of filenames. Filenames must be in format "name@@branch/version"

Parameters:
filenames - String[] of filenames in branch/version format
comments - any checkin comments to add, if null auto gen comments
Returns:
String[] of files that were successfully checked in

checkoutFiles

public static boolean checkoutFiles(ExtractFile[] extractFiles)
Check out the passed array of extract files.

Parameters:
extractFiles - array of ExtractFiles to checkout
Returns:
true if all files checked in successfully, false otherwise

checkoutFiles

public static boolean checkoutFiles(ExtractFile[] extractFiles,
                                    java.lang.String comments)
Check out the passed array of extract files.

Parameters:
extractFiles - array of ExtractFiles to checkout
comments - String coments to add to check out, if null, comments are generated
Returns:
true if all files checked in successfully, false otherwise

addFiles

public static boolean addFiles(ExtractFile[] extractFiles)
Add new files to VCS repository. Auto gen comments.

Parameters:
extractFiles - extract file array to add.
Returns:
true on success for all files, false if could not add all files.

addFiles

public static boolean addFiles(ExtractFile[] extractFiles,
                               java.lang.String comments)
Add new files to VCS repository.

Parameters:
extractFiles - extract file array to add.
comments - any comments to add to new file, if null, auto gen comments.
Returns:
true on success for all files, false if could not add all files.

terminate

public static void terminate()
Terminate the vcs server. No other operations allowed.


Oracle Fusion Middleware extensions for Seed Data Framework
11g Release 1 (11.1.2)

E22564-02

Copyright © 2011 Oracle. All Rights Reserved.