|
JavaSVN Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tmatesoft.svn.core.wc.SVNWCUtil
The SVNWCUtil is a utility class providing some common methods used by Working Copy API classes for such purposes as creating default run-time configuration and authentication drivers and some others.
ISVNOptions
,
ExamplesConstructor Summary | |
SVNWCUtil()
|
Method Summary | |
static ISVNAuthenticationManager |
createDefaultAuthenticationManager()
Creates a default authentication manager that uses the default SVN's servers configuration and authentication storage. |
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(File configDir)
Creates a default authentication manager that uses the servers configuration and authentication storage located in the provided directory. |
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(File configDir,
String userName,
String password)
Creates a default authentication manager that uses the provided configuration directory and user's credentials. |
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(File configDir,
String userName,
String password,
boolean storeAuth)
Creates a default authentication manager that uses the provided configuration directory and user's credentials. |
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(File configDir,
String userName,
String password,
File privateKey,
String passphrase,
boolean storeAuth)
Creates a default authentication manager that uses the provided configuration directory and user's credentials. |
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(String userName,
String password)
Creates a default authentication manager that uses the default SVN's servers configuration and provided user's credentials. |
static ISVNOptions |
createDefaultOptions(boolean readonly)
Creates a default run-time configuration options driver that uses the default SVN's run-time configuration area. |
static ISVNOptions |
createDefaultOptions(File dir,
boolean readonly)
Creates a default run-time configuration options driver that uses the provided configuration directory. |
static File |
getDefaultConfigurationDirectory()
Gets the location of the default SVN's run-time configuration area on the current machine. |
static File |
getWorkingCopyRoot(File versionedDir,
boolean stopOnExtenrals)
Returns the Working Copy root directory given a versioned directory that belongs to the Working Copy. |
static boolean |
isVersionedDirectory(File dir)
Determines if a directory is under version control. |
static boolean |
isWorkingCopyRoot(File versionedDir,
boolean considerExternalAsRoot)
Determines if a directory is the root of the Working Copy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SVNWCUtil()
Method Detail |
public static File getDefaultConfigurationDirectory()
File
representation of the default
SVN's run-time configuration area locationpublic static ISVNAuthenticationManager createDefaultAuthenticationManager()
getDefaultConfigurationDirectory()
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir)
configDir
- a new location of the run-time configuration
area
public static ISVNAuthenticationManager createDefaultAuthenticationManager(String userName, String password)
userName
- a user's namepassword
- a user's password
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password)
configDir
- a new location of the run-time configuration
areauserName
- a user's namepassword
- a user's password
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password, boolean storeAuth)
storeAuth
parameter affects on using the auth storage.
configDir
- a new location of the run-time configuration
areauserName
- a user's namepassword
- a user's passwordstoreAuth
- if true then
the auth storage is enabled, otherwise disabled
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password, File privateKey, String passphrase, boolean storeAuth)
storeAuth
parameter affects on using the auth storage.
configDir
- a new location of the run-time configuration
areauserName
- a user's namepassword
- a user's passwordstoreAuth
- if true then
the auth storage is enabled, otherwise disabled
public static ISVNOptions createDefaultOptions(File dir, boolean readonly)
If dir
is not null
then all necessary config files (in particular config and
servers) will be created in this directory if they still
don't exist. Those files are the same as those ones you can find in
the default SVN's run-time configuration area.
dir
- a new location of the run-time configuration
areareadonly
- if true then
run-time configuration options are available only
for reading, if false
then those options are available for both reading
and writing
public static ISVNOptions createDefaultOptions(boolean readonly)
readonly
- if true then
run-time configuration options are available only
for reading, if false
then those options are available for both reading
and writing
getDefaultConfigurationDirectory()
public static boolean isVersionedDirectory(File dir)
dir
- a directory to check
public static boolean isWorkingCopyRoot(File versionedDir, boolean considerExternalAsRoot) throws SVNException
versionedDir
- a versioned directory to checkconsiderExternalAsRoot
- if true
and versionedDir
is really
versioned and the root of externals definitions
then this method will return true
versionedDir
is versioned and the WC root
(or the root of externals if considerExternalAsRoot
is true), otherwise false
SVNException
public static File getWorkingCopyRoot(File versionedDir, boolean stopOnExtenrals) throws SVNException
If both versionedDir and its parent directory are not versioned this method returns null.
versionedDir
- a directory belonging to the WC which
root is to be searched forstopOnExtenrals
- if true then
this method will stop at the directory on
which any externals definitions are set
SVNException
|
JavaSVN Home | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |