Class SVNAdminAreaFactory
java.lang.Object
org.tmatesoft.svn.core.internal.wc.admin.SVNAdminAreaFactory
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
SVNAdminArea14Factory,SVNXMLAdminAreaFactory
- Version:
- 1.3
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static ISVNAdminAreaFactorySelectorprivate static final 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(File dir, String url, long revision) static intstatic intintstatic voidcreateVersionedDirectory(File path, String url, String rootURL, String uuid, long revNumber, SVNDepth depth) static voidcreateVersionedDirectory(File path, SVNURL url, SVNURL rootURL, String uuid, long revNumber, SVNDepth depth) protected abstract SVNAdminAreadoChangeWCFormat(SVNAdminArea area) protected abstract intprotected abstract voiddoCreateVersionedDirectory(File path, String url, String rootURL, String uuid, long revNumber, SVNDepth depth) protected abstract SVNAdminAreaprivate static SVNAdminAreaFactorygetAdminAreaFactory(int wcFormat) static ISVNAdminAreaFactorySelectorabstract intprotected abstract intgetVersion(File path) static booleanstatic SVNAdminAreaprivate static intreadFormatVersion(File adminDir) private static voidprotected static voidregisterFactory(SVNAdminAreaFactory factory) static voidsetSelector(ISVNAdminAreaFactorySelector selector) static voidsetUpgradeEnabled(boolean enabled) static SVNAdminAreaupgrade(SVNAdminArea area)
-
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
- Throws:
SVNException
-
open
- Throws:
SVNException
-
upgrade
- Throws:
SVNException
-
changeWCFormat
- Throws:
SVNException
-
getAdminAreaFactory
- Throws:
SVNException
-
readFormatVersion
- Throws:
SVNException
-
createVersionedDirectory
public static void createVersionedDirectory(File path, String url, String rootURL, String uuid, long revNumber, SVNDepth depth) throws SVNException - Throws:
SVNException
-
createVersionedDirectory
public static void createVersionedDirectory(File path, SVNURL url, SVNURL rootURL, String uuid, long revNumber, SVNDepth depth) throws SVNException - Throws:
SVNException
-
checkAdminAreaExists
private static boolean checkAdminAreaExists(File dir, 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(File path, String url, String rootURL, String uuid, long revNumber, SVNDepth depth) throws SVNException - Throws:
SVNException
-
doCheckWC
- Throws:
SVNException
-
registerFactory
-
compareTo
- Specified by:
compareToin interfaceComparable
-
registerFactories
private static void registerFactories()
-