Class SVNAdminAreaFactory
java.lang.Object
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory
- All Implemented Interfaces:
java.lang.Comparable
- Direct Known Subclasses:
SVNAdminArea14Factory,SVNXMLAdminAreaFactory
public abstract class SVNAdminAreaFactory
extends java.lang.Object
implements java.lang.Comparable
- Version:
- 1.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ISVNAdminAreaFactorySelectorprivate static final java.util.Collection<SVNAdminAreaFactory>private static booleanprivate static ISVNAdminAreaFactorySelectorstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SVNAdminAreachangeWCFormat(SVNAdminArea adminArea, int format) private static booleancheckAdminAreaExists(java.io.File dir, java.lang.String url, long revision) static intcheckWC(java.io.File path, boolean useSelector) static intcheckWC(java.io.File path, boolean useSelector, java.util.logging.Level logLevel) intcompareTo(java.lang.Object o) static voidcreateVersionedDirectory(java.io.File path, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, SVNDepth depth) static voidcreateVersionedDirectory(java.io.File path, SVNURL url, SVNURL rootURL, java.lang.String uuid, long revNumber, SVNDepth depth) protected abstract SVNAdminAreadoChangeWCFormat(SVNAdminArea area) protected abstract intdoCheckWC(java.io.File path, java.util.logging.Level logLevel) protected abstract voiddoCreateVersionedDirectory(java.io.File path, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, SVNDepth depth) protected abstract SVNAdminAreadoOpen(java.io.File path, int version) private static SVNAdminAreaFactorygetAdminAreaFactory(int wcFormat) static ISVNAdminAreaFactorySelectorabstract intprotected abstract intgetVersion(java.io.File path) static booleanstatic SVNAdminAreaopen(java.io.File path, java.util.logging.Level logLevel) private static intreadFormatVersion(java.io.File adminDir) private static voidprotected static voidregisterFactory(SVNAdminAreaFactory factory) static voidsetSelector(ISVNAdminAreaFactorySelector selector) static voidsetUpgradeEnabled(boolean enabled) static SVNAdminAreaupgrade(SVNAdminArea area) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
WC_FORMAT_13
public static final int WC_FORMAT_13- See Also:
-
WC_FORMAT_14
public static final int WC_FORMAT_14- See Also:
-
WC_FORMAT_15
public static final int WC_FORMAT_15- See Also:
-
WC_FORMAT_16
public static final int WC_FORMAT_16- See Also:
-
ourFactories
-
ourIsUpgradeEnabled
private static boolean ourIsUpgradeEnabled -
ourSelector
-
ourDefaultSelector
-
-
Constructor Details
-
SVNAdminAreaFactory
public SVNAdminAreaFactory()
-
-
Method Details
-
setUpgradeEnabled
public static void setUpgradeEnabled(boolean enabled) -
isUpgradeEnabled
public static boolean isUpgradeEnabled() -
setSelector
-
getSelector
-
checkWC
- Throws:
SVNException
-
checkWC
public static int checkWC(java.io.File path, boolean useSelector, java.util.logging.Level logLevel) throws SVNException - Throws:
SVNException
-
open
public static SVNAdminArea open(java.io.File path, java.util.logging.Level logLevel) throws SVNException - Throws:
SVNException
-
upgrade
- Throws:
SVNException
-
changeWCFormat
- Throws:
SVNException
-
getAdminAreaFactory
- Throws:
SVNException
-
readFormatVersion
- Throws:
SVNException
-
createVersionedDirectory
public static void createVersionedDirectory(java.io.File path, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, SVNDepth depth) throws SVNException - Throws:
SVNException
-
createVersionedDirectory
public static void createVersionedDirectory(java.io.File path, SVNURL url, SVNURL rootURL, java.lang.String uuid, long revNumber, SVNDepth depth) throws SVNException - Throws:
SVNException
-
checkAdminAreaExists
private static boolean checkAdminAreaExists(java.io.File dir, java.lang.String url, long revision) throws SVNException - Throws:
SVNException
-
getSupportedVersion
public abstract int getSupportedVersion() -
getVersion
- Throws:
SVNException
-
doOpen
- Throws:
SVNException
-
doChangeWCFormat
- Throws:
SVNException
-
doCreateVersionedDirectory
protected abstract void doCreateVersionedDirectory(java.io.File path, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, SVNDepth depth) throws SVNException - Throws:
SVNException
-
doCheckWC
protected abstract int doCheckWC(java.io.File path, java.util.logging.Level logLevel) throws SVNException - Throws:
SVNException
-
registerFactory
-
compareTo
public int compareTo(java.lang.Object o) - Specified by:
compareToin interfacejava.lang.Comparable
-
registerFactories
private static void registerFactories()
-