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