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 Modifier and Type Class Description private static class
SVNAdminAreaFactory.DefaultSelector
-
Field Summary
Fields Modifier and Type Field Description private static ISVNAdminAreaFactorySelector
ourDefaultSelector
private static java.util.Collection<SVNAdminAreaFactory>
ourFactories
private static boolean
ourIsUpgradeEnabled
private static ISVNAdminAreaFactorySelector
ourSelector
static int
WC_FORMAT_13
static int
WC_FORMAT_14
static int
WC_FORMAT_15
static int
WC_FORMAT_16
-
Constructor Summary
Constructors Constructor Description SVNAdminAreaFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static SVNAdminArea
changeWCFormat(SVNAdminArea adminArea, int format)
private static boolean
checkAdminAreaExists(java.io.File dir, java.lang.String url, long revision)
static int
checkWC(java.io.File path, boolean useSelector)
static int
checkWC(java.io.File path, boolean useSelector, java.util.logging.Level logLevel)
int
compareTo(java.lang.Object o)
static void
createVersionedDirectory(java.io.File path, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, SVNDepth depth)
static void
createVersionedDirectory(java.io.File path, SVNURL url, SVNURL rootURL, java.lang.String uuid, long revNumber, SVNDepth depth)
protected abstract SVNAdminArea
doChangeWCFormat(SVNAdminArea area)
protected abstract int
doCheckWC(java.io.File path, java.util.logging.Level logLevel)
protected abstract void
doCreateVersionedDirectory(java.io.File path, java.lang.String url, java.lang.String rootURL, java.lang.String uuid, long revNumber, SVNDepth depth)
protected abstract SVNAdminArea
doOpen(java.io.File path, int version)
private static SVNAdminAreaFactory
getAdminAreaFactory(int wcFormat)
static ISVNAdminAreaFactorySelector
getSelector()
abstract int
getSupportedVersion()
protected abstract int
getVersion(java.io.File path)
static boolean
isUpgradeEnabled()
static SVNAdminArea
open(java.io.File path, java.util.logging.Level logLevel)
private static int
readFormatVersion(java.io.File adminDir)
private static void
registerFactories()
protected static void
registerFactory(SVNAdminAreaFactory factory)
static void
setSelector(ISVNAdminAreaFactorySelector selector)
static void
setUpgradeEnabled(boolean enabled)
static SVNAdminArea
upgrade(SVNAdminArea area)
-
-
-
Field Detail
-
WC_FORMAT_13
public static final int WC_FORMAT_13
- See Also:
- Constant Field Values
-
WC_FORMAT_14
public static final int WC_FORMAT_14
- See Also:
- Constant Field Values
-
WC_FORMAT_15
public static final int WC_FORMAT_15
- See Also:
- Constant Field Values
-
WC_FORMAT_16
public static final int WC_FORMAT_16
- See Also:
- Constant Field Values
-
ourFactories
private static final java.util.Collection<SVNAdminAreaFactory> ourFactories
-
ourIsUpgradeEnabled
private static boolean ourIsUpgradeEnabled
-
ourSelector
private static ISVNAdminAreaFactorySelector ourSelector
-
ourDefaultSelector
private static ISVNAdminAreaFactorySelector ourDefaultSelector
-
-
Method Detail
-
setUpgradeEnabled
public static void setUpgradeEnabled(boolean enabled)
-
isUpgradeEnabled
public static boolean isUpgradeEnabled()
-
setSelector
public static void setSelector(ISVNAdminAreaFactorySelector selector)
-
getSelector
public static ISVNAdminAreaFactorySelector getSelector()
-
checkWC
public static int checkWC(java.io.File path, boolean useSelector) throws SVNException
- 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
public static SVNAdminArea upgrade(SVNAdminArea area) throws SVNException
- Throws:
SVNException
-
changeWCFormat
public static SVNAdminArea changeWCFormat(SVNAdminArea adminArea, int format) throws SVNException
- Throws:
SVNException
-
getAdminAreaFactory
private static SVNAdminAreaFactory getAdminAreaFactory(int wcFormat) throws SVNException
- Throws:
SVNException
-
readFormatVersion
private static int readFormatVersion(java.io.File adminDir) throws SVNException
- 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
protected abstract int getVersion(java.io.File path) throws SVNException
- Throws:
SVNException
-
doOpen
protected abstract SVNAdminArea doOpen(java.io.File path, int version) throws SVNException
- Throws:
SVNException
-
doChangeWCFormat
protected abstract SVNAdminArea doChangeWCFormat(SVNAdminArea area) throws SVNException
- 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
protected static void registerFactory(SVNAdminAreaFactory factory)
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareTo
in interfacejava.lang.Comparable
-
registerFactories
private static void registerFactories()
-
-