Java Doc for SVNWCUtil.java in  » Source-Control » tmatesoft-SVN » org » tmatesoft » svn » core » wc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Source Control » tmatesoft SVN » org.tmatesoft.svn.core.wc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.tmatesoft.svn.core.wc.SVNWCUtil

SVNWCUtil
public class SVNWCUtil (Code)
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.
version:
   1.1.1
author:
   TMate Software Ltd., Peter Skoog
See Also:   ISVNOptions
See Also:    Examples




Method Summary
public static  ISVNAuthenticationManagercreateDefaultAuthenticationManager()
     Creates a default authentication manager that uses the default SVN's servers configuration and authentication storage.
public static  ISVNAuthenticationManagercreateDefaultAuthenticationManager(File configDir)
     Creates a default authentication manager that uses the servers configuration and authentication storage located in the provided directory.
public static  ISVNAuthenticationManagercreateDefaultAuthenticationManager(String userName, String password)
     Creates a default authentication manager that uses the default SVN's servers configuration and provided user's credentials.
public static  ISVNAuthenticationManagercreateDefaultAuthenticationManager(File configDir, String userName, String password)
     Creates a default authentication manager that uses the provided configuration directory and user's credentials.
public static  ISVNAuthenticationManagercreateDefaultAuthenticationManager(File configDir, String userName, String password, boolean storeAuth)
     Creates a default authentication manager that uses the provided configuration directory and user's credentials.
public static  ISVNAuthenticationManagercreateDefaultAuthenticationManager(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.
public static  ISVNOptionscreateDefaultOptions(File dir, boolean readonly)
     Creates a default run-time configuration options driver that uses the provided configuration directory.

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.

public static  ISVNOptionscreateDefaultOptions(boolean readonly)
     Creates a default run-time configuration options driver that uses the default SVN's run-time configuration area.
public static  FilegetDefaultConfigurationDirectory()
     Gets the location of the default SVN's run-time configuration area on the current machine.
public static  FilegetWorkingCopyRoot(File versionedDir, boolean stopOnExtenrals)
     Returns the Working Copy root directory given a versioned directory that belongs to the Working Copy.
public static  booleanisVersionedDirectory(File dir)
     Determines if a directory is under version control.
public static  booleanisWorkingCopyRoot(File versionedDir)
     Determines if a directory is the root of the Working Copy.
public static  booleanisWorkingCopyRoot(File versionedDir, boolean externalIsRoot)
    



Method Detail
createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager()(Code)
Creates a default authentication manager that uses the default SVN's servers configuration and authentication storage. Whether the default auth storage is used or not depends on the 'store-auth-creds' option that can be found in the SVN's config file under the [auth] section. a default implementation of the credentials and serversconfiguration driver interface
See Also:   SVNWCUtil.getDefaultConfigurationDirectory()



createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir)(Code)
Creates a default authentication manager that uses the servers configuration and authentication storage located in the provided directory. The authentication storage is enabled.
Parameters:
  configDir - a new location of the run-time configuration area a default implementation of the credentials and serversconfiguration driver interface



createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager(String userName, String password)(Code)
Creates a default authentication manager that uses the default SVN's servers configuration and provided user's credentials. Whether the default auth storage is used or not depends on the 'store-auth-creds' option that can be found in the SVN's config file under the [auth] section.
Parameters:
  userName - a user's name
Parameters:
  password - a user's password a default implementation of the credentials and serversconfiguration driver interface



createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password)(Code)
Creates a default authentication manager that uses the provided configuration directory and user's credentials. Whether the default auth storage is used or not depends on the 'store-auth-creds' option that is looked up in the config file under the [auth] section. Files config and servers will be created (if they still don't exist) in the specified directory (they are the same as those ones you can find in the default SVN's run-time configuration area).
Parameters:
  configDir - a new location of the run-time configuration area
Parameters:
  userName - a user's name
Parameters:
  password - a user's password a default implementation of the credentials and serversconfiguration driver interface



createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password, boolean storeAuth)(Code)
Creates a default authentication manager that uses the provided configuration directory and user's credentials. The storeAuth parameter affects on using the auth storage.
Parameters:
  configDir - a new location of the run-time configuration area
Parameters:
  userName - a user's name
Parameters:
  password - a user's password
Parameters:
  storeAuth - if true then the authstorage is enabled, otherwise disabled a default implementation of the credentials and serversconfiguration driver interface



createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password, File privateKey, String passphrase, boolean storeAuth)(Code)
Creates a default authentication manager that uses the provided configuration directory and user's credentials. The storeAuth parameter affects on using the auth storage.
Parameters:
  configDir - a new location of the run-time configuration area
Parameters:
  userName - a user's name
Parameters:
  password - a user's password
Parameters:
  privateKey - a private key file for SSH session
Parameters:
  passphrase - a passphrase that goes with the key file
Parameters:
  storeAuth - if true then the authstorage is enabled, otherwise disabled a default implementation of the credentials and serversconfiguration driver interface



createDefaultOptions
public static ISVNOptions createDefaultOptions(File dir, boolean readonly)(Code)
Creates a default run-time configuration options driver that uses the provided configuration directory.

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.
Parameters:
  dir - a new location of the run-time configuration area
Parameters:
  readonly - if true then run-timeconfiguration options are available only for reading, if false then those options areavailable for both reading and writing a default implementation of the run-time configuration optionsdriver interface




createDefaultOptions
public static ISVNOptions createDefaultOptions(boolean readonly)(Code)
Creates a default run-time configuration options driver that uses the default SVN's run-time configuration area.
Parameters:
  readonly - if true then run-timeconfiguration options are available only for reading, if false then those options areavailable for both reading and writing a default implementation of the run-time configuration optionsdriver interface
See Also:   SVNWCUtil.getDefaultConfigurationDirectory()



getDefaultConfigurationDirectory
public static File getDefaultConfigurationDirectory()(Code)
Gets the location of the default SVN's run-time configuration area on the current machine. The result path depends on the platform on which SVNKit is running:
  • on Windows this path usually looks like 'Documents and Settings\UserName\Subversion' or simply '%APPDATA%\Subversion'.
  • on a Unix-like platform - '~/.subversion'.
a java.io.File representation of the default SVN'srun-time configuration area location



getWorkingCopyRoot
public static File getWorkingCopyRoot(File versionedDir, boolean stopOnExtenrals) throws SVNException(Code)
Returns the Working Copy root directory given a versioned directory that belongs to the Working Copy.

If both versionedDir and its parent directory are not versioned this method returns null.
Parameters:
  versionedDir - a directory belonging to the WC which root is to be searchedfor
Parameters:
  stopOnExtenrals - if true then this methodwill stop at the directory on which any externals definitionsare set the WC root directory (if it is found) or null.
throws:
  SVNException -




isVersionedDirectory
public static boolean isVersionedDirectory(File dir)(Code)
Determines if a directory is under version control.
Parameters:
  dir - a directory to check true if versioned, otherwisefalse



isWorkingCopyRoot
public static boolean isWorkingCopyRoot(File versionedDir) throws SVNException(Code)
Determines if a directory is the root of the Working Copy.
Parameters:
  versionedDir - a versioned directory to check true ifversionedDir is versioned and the WC root (or theroot of externals if considerExternalAsRoot istrue), otherwise false
throws:
  SVNException -
since:
   1.1



isWorkingCopyRoot
public static boolean isWorkingCopyRoot(File versionedDir, boolean externalIsRoot) throws SVNException(Code)

Parameters:
  versionedDir - a versioned directory to check
Parameters:
  externalIsRoot - true ifversionedDir is versioned and the WC root (or theroot of externals if considerExternalAsRoot istrue), otherwise false
throws:
  SVNException - SVNWCUtil.isWorkingCopyRoot(File)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.