Package org.tmatesoft.svn.core.wc2
Class SvnOperationFactory
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperationFactory
-
- All Implemented Interfaces:
ISvnOperationOptionsProvider
public class SvnOperationFactory extends java.lang.Object implements ISvnOperationOptionsProvider
Represents factory for the Svn* operations. Contains corresponding create*() methods for all supported operations. Provides operation options by implementingISvnOperationOptionsProviderinterface. Handles working copy access and provides access to itgetWcContext(),isAutoCloseContext(). Has set of working copy utility methods:getWorkingCopyRoot(File, boolean),isWorkingCopyRoot(File),isVersionedDirectory(File),detectWcGeneration(File, boolean),setPrimaryWcGeneration(SvnWcGeneration),isPrimaryWcGenerationOnly()- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Constructor Description SvnOperationFactory()Creates operation factory and initializes it with emptycontext.SvnOperationFactory(org.tmatesoft.svn.core.internal.wc17.SVNWCContext context)Creates operation factory and initializes it withcontext.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SvnAnnotatecreateAnnotate()Creates annotate operation.SvnCanonicalizeUrlscreateCanonicalizeUrls()Creates canonicalize URLs operation.SvnCatcreateCat()Creates cat operation.SvnCheckoutcreateCheckout()Creates checkout operation.SvnCleanupcreateCleanup()Creates cleanup operation.SvnCommitcreateCommit()Creates commit operation.SvnCopycreateCopy()Creates copy operation.SvnDiffcreateDiff()Creates diff operation.SvnDiffSummarizecreateDiffSummarize()Creates diff summarize operation.SvnExportcreateExport()Creates export operation.SvnGetChangelistPathscreateGetChangelistPaths()Creates get changelist paths operation.SvnGetInfocreateGetInfo()Creates get info operation.SvnGetMergeInfocreateGetMergeInfo()Creates get merge info operation.SvnGetPropertiescreateGetProperties()Creates get properties operation.SvnRepositoryGetFileSizecreateGetRepositoryFileSize()Creates operation for retrieving file size from the repositorySvnGetStatuscreateGetStatus()Creates get status operation.SvnGetStatusSummarycreateGetStatusSummary()Creates get status summary operation.SvnImportcreateImport()Creates import operation.SvnListcreateList()Creates list operation.SvnLogcreateLog()Creates log operation.SvnLogMergeInfocreateLogMergeInfo()Creates log merge info operation.SvnMarkReplacedcreateMarkReplaced()Creates mark replaced operation.SvnMergecreateMerge()Creates merge operation.SvnRemoteMkDircreateMkDir()Creates remote make directory operation.SvnPatchcreatePatch()Creates patch operation.SvnRelocatecreateRelocate()Creates relocate operation.SvnRemoteCopycreateRemoteCopy()Creates remote copy operation.SvnRemoteDeletecreateRemoteDelete()Creates remote delete operation.SvnRemoteMkDircreateRemoteMkDir()Creates remote make directory operation.SvnRemoteSetPropertycreateRemoteSetProperty()Creates remote set property operation.SvnRepositoryCopyRevisionPropertiescreateRepositoryCopyRevisionProperties()Creates copy revision properties synchronization operation.SvnRepositoryCreatecreateRepositoryCreate()Creates repository create administrative operation.SvnRepositoryDumpcreateRepositoryDump()Creates repository dump administrative operation.SvnRepositoryFiltercreateRepositoryFilter()Creates dumpfilter operation.SvnRepositoryGetAuthorcreateRepositoryGetAuthor()Creates operation for retrieving author from the repository.SvnRepositoryCatcreateRepositoryGetCat()Creates operation for retrieving file contents from the repository.SvnRepositoryGetChangedcreateRepositoryGetChanged()Creates operation for retrieving changed paths from the repository.SvnRepositoryGetChangedDirectoriescreateRepositoryGetChangedDirectories()Creates operation for retrieving changed directories from the repository.SvnRepositoryGetDatecreateRepositoryGetDate()Creates operation for retrieving date from the repository.SvnRepositoryGetDiffcreateRepositoryGetDiff()Creates repository diff operation.SvnRepositoryGetHistorycreateRepositoryGetHistory()Creates operation for retrieving the history from the repository.SvnRepositoryGetInfocreateRepositoryGetInfo()Creates operation for retrieving info from the repository.SvnRepositoryGetLockcreateRepositoryGetLock()Creates operation for retrieving the lock from the repository.SvnRepositoryGetLogcreateRepositoryGetLog()Creates operation for retrieving repository log.SvnRepositoryGetPropertiescreateRepositoryGetProperties()Creates operation for retrieving properties from the repository.SvnRepositoryGetPropertycreateRepositoryGetProperty()Creates operation for retrieving property from the repository.SvnRepositoryGetRevisionPropertiescreateRepositoryGetRevisionProperties()Creates operation for retrieving revision properties from the repository.SvnRepositoryGetRevisionPropertycreateRepositoryGetRevisionProperty()Creates operation for retrieving revision property from the repository.SvnRepositoryGetTreecreateRepositoryGetTree()Creates operation for retrieving items tree from the repository.SvnRepositoryGetUUIDcreateRepositoryGetUUID()Creates operation for retrieving repository UUID.SvnRepositoryGetYoungestcreateRepositoryGetYoungest()Creates operation for retrieving the latest revision from the repository.SvnRepositoryHotCopycreateRepositoryHotCopy()Creates repository hot copy administrative operation.SvnRepositoryInitializecreateRepositoryInitialize()Creates initialize synchronization operation.SvnRepositoryListLockscreateRepositoryListLocks()Creates administrative operation for retrieving list of locks from the repository.SvnRepositoryListTransactionscreateRepositoryListTransactions()Creates administrative operation for retrieving list of transactions from the repository.SvnRepositoryLoadcreateRepositoryLoad()Creates repository load administrative operation.SvnRepositoryPackcreateRepositoryPack()Creates repository pack administrative operation.SvnRepositoryRecovercreateRepositoryRecover()Creates repository recover administrative operation.SvnRepositoryRemoveLockscreateRepositoryRemoveLocks()Creates repository remove locks administrative operation.SvnRepositoryRemoveTransactionscreateRepositoryRemoveTransactions()Creates repository remove transactions administrative operation.SvnRepositorySetUUIDcreateRepositorySetUUID()Creates repository set UUID administrative operation.SvnRepositorySynchronizecreateRepositorySynchronize()Creates repository synchronize operation.SvnRepositorySyncInfocreateRepositorySyncInfo()Creates operation for retrieving repository synchronization info.SvnRepositoryUpgradecreateRepositoryUpgrade()Creates repository upgrade administrative operation.SvnRepositoryVerifycreateRepositoryVerify()Creates repository verify administrative operation.SvnResolvecreateResolve()Creates resolve operation.SvnRevertcreateRevert()Creates revert operation.SvnScheduleForAdditioncreateScheduleForAddition()Creates add operation.SvnScheduleForRemovalcreateScheduleForRemoval()Creates delete operation.SvnSetChangelistcreateSetChangelist()Creates set changelist operation.SvnSetLockcreateSetLock()Creates set lock operation.SvnSetPropertycreateSetProperty()Creates set property operation.SvnSetWCDbVersioncreateSetWCDbVersion()SvnSuggestMergeSourcescreateSuggestMergeSources()Creates suggest merge sources operation.SvnSwitchcreateSwitch()Creates switch operation.SvnUnlockcreateUnlock()Creates unlock operation.SvnUpdatecreateUpdate()Creates update operation.SvnUpgradecreateUpgrade()Creates upgrade operation.static org.tmatesoft.svn.core.internal.wc2.SvnWcGenerationdetectWcGeneration(java.io.File path, boolean climbUp)Detects working copy generation (1.6 or 1.7 format) by the working copy path.static org.tmatesoft.svn.core.internal.wc2.SvnWcGenerationdetectWcGeneration(java.io.File path, boolean climbUp, boolean isAdditionMode)Detects working copy generation (1.6 or 1.7 format) by the working copy path in (not in) the addition mode.voiddispose()Disposes context and repository pool if needed.ISVNAuthenticationManagergetAuthenticationManager()Gets operation's authentication manager.ISVNCancellergetCanceller()Gets the cancel handler of the operation.ISVNEventHandlergetEventHandler()Gets the event handler for the operation.protected ISvnOperationRunner<?,SvnOperation<?>>getImplementation(SvnOperation<?> operation)ISvnOperationHandlergetOperationHandler()Get a callback that is called before and after each operationISVNOptionsgetOptions()Gets operation's options.org.tmatesoft.svn.core.internal.wc2.SvnWcGenerationgetPrimaryWcGeneration()Returns primary (default) working copy generation.ISVNRepositoryPoolgetRepositoryPool()Gets the pool of repositories.org.tmatesoft.svn.core.internal.wc2.SvnWcGenerationgetSecondaryWcGeneration()Returns secondary working copy generation.org.tmatesoft.svn.core.internal.wc17.SVNWCContextgetWcContext()Returns working copy context.static java.io.FilegetWorkingCopyRoot(java.io.File versionedDir, boolean stopOnExternals)Searches working copy root path by the versioned directory.booleanisAssertRefCount()booleanisAutoCloseContext()Returns whether to dispose context when operation finishes.booleanisPrimaryWcGenerationOnly()Returns whether the operations should work only on primary working copy generation (for example only on SVN 1.7 working copy) or on both primary and secondary generations.static booleanisVersionedDirectory(java.io.File directory)Detects whether the directory is versioned directory.static booleanisVersionedDirectory(java.io.File directory, boolean isAdditionMode)Detects whether the directory is versioned directory in or (not in) the addition mode.booleanisWcGenerationSticky()static booleanisWorkingCopyRoot(java.io.File versionedDir)Detects whether the versioned directory is working copy root.protected voidregisterOperationRunner(java.lang.Class<?> operationClass, ISvnOperationRunner<?,? extends SvnOperation<?>> runner)protected java.lang.Objectrun(SvnOperation<?> operation)voidsetAuthenticationManager(ISVNAuthenticationManager authenticationManager)Sets operation's authentication manager.voidsetAutoCloseContext(boolean autoCloseContext)Sets whether to dispose context when operation finishes.voidsetAutoDisposeRepositoryPool(boolean dispose)Sets whether to dispose repository pool ondispose()call.voidsetCanceller(ISVNCanceller canceller)Sets the cancel handler of the operation.voidsetEventHandler(ISVNEventHandler eventHandler)Sets the event handler for the operation.voidsetOperationHandler(ISvnOperationHandler operationHandler)Sets a callback that is called before and after each operationvoidsetOptions(ISVNOptions options)Sets operation's options and disposes working copy context.voidsetPrimaryWcGeneration(org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration primaryWcGeneration)(Re)sets primary (default) working copy generation.voidsetRepositoryPool(ISVNRepositoryPool repositoryPool)Sets pool of repositories.voidsetWcGenerationSticky(boolean isWcGenerationSticky)When set to true, first encountered working copy generation becomes 'sticky' for this instance ofSvnOperationFactoryand no working copy format detection will be performed for subsequent operation.
-
-
-
Constructor Detail
-
SvnOperationFactory
public SvnOperationFactory()
Creates operation factory and initializes it with emptycontext.
-
SvnOperationFactory
public SvnOperationFactory(org.tmatesoft.svn.core.internal.wc17.SVNWCContext context)
Creates operation factory and initializes it withcontext. Ifcontextis set, retrieves itsoptionsandeventHandlerand setsautoCloseContexttofalse, otherwise setsautoCloseContexttotrue.- Parameters:
context- operation's context
-
-
Method Detail
-
isAutoCloseContext
public boolean isAutoCloseContext()
Returns whether to dispose context when operation finishes.- Returns:
trueif the context should be disposed, otherwisefalse
-
setAutoCloseContext
public void setAutoCloseContext(boolean autoCloseContext)
Sets whether to dispose context when operation finishes.- Parameters:
autoCloseContext-trueif the context should be disposed, otherwisefalse
-
getAuthenticationManager
public ISVNAuthenticationManager getAuthenticationManager()
Gets operation's authentication manager. If not set, creates default authentication manager.- Specified by:
getAuthenticationManagerin interfaceISvnOperationOptionsProvider- Returns:
- authentication manager
-
getCanceller
public ISVNCanceller getCanceller()
Gets the cancel handler of the operation. If client'scanceleris not set, returnseventHandleras a canceler.- Specified by:
getCancellerin interfaceISvnOperationOptionsProvider- Returns:
- cancel handler
-
getEventHandler
public ISVNEventHandler getEventHandler()
Gets the event handler for the operation. This event handler will be dispatchedSVNEventobjects to provide detailed information about actions and progress state of version control operations. IfwcContextis set, returnsSVNWCContext.getEventHandler()- Specified by:
getEventHandlerin interfaceISvnOperationOptionsProvider- Returns:
- handler for events
- See Also:
ISVNEventHandler
-
getOperationHandler
public ISvnOperationHandler getOperationHandler()
Get a callback that is called before and after each operation- Returns:
- a callback that is called before and after each operation
-
getRepositoryPool
public ISVNRepositoryPool getRepositoryPool()
Gets the pool of repositories. If pool is not created, createsDefaultSVNRepositoryPoolwith the authentication manager, options, andautoDisposeRepositoryPool=true.- Specified by:
getRepositoryPoolin interfaceISvnOperationOptionsProvider- Returns:
- pool of repositories
-
getOptions
public ISVNOptions getOptions()
Gets operation's options. If options are not set, creates default readonly options.- Specified by:
getOptionsin interfaceISvnOperationOptionsProvider- Returns:
- options of the operation
-
setAuthenticationManager
public void setAuthenticationManager(ISVNAuthenticationManager authenticationManager)
Sets operation's authentication manager. IfrepositoryPoolis set, set its authentication manager to this value.- Parameters:
authenticationManager- authentication manager
-
setCanceller
public void setCanceller(ISVNCanceller canceller)
Sets the cancel handler of the operation.- Parameters:
canceller- cancel handler
-
setEventHandler
public void setEventHandler(ISVNEventHandler eventHandler)
Sets the event handler for the operation. This event handler will be dispatchedSVNEventobjects to provide detailed information about actions and progress state of version control operations. IfwcContextis set, sets its event handler to this one. IfwcContextis not set, disposes it.- Parameters:
eventHandler- handler for events- See Also:
ISVNEventHandler
-
setOptions
public void setOptions(ISVNOptions options)
Sets operation's options and disposes working copy context.- Parameters:
options- options of the operation
-
setRepositoryPool
public void setRepositoryPool(ISVNRepositoryPool repositoryPool)
Sets pool of repositories. IfrepositoryPoolis notnullsetsautoDisposeRepositoryPooltofalse, otherwise totrue- Parameters:
repositoryPool- pool of repositories
-
setOperationHandler
public void setOperationHandler(ISvnOperationHandler operationHandler)
Sets a callback that is called before and after each operation- Parameters:
operationHandler- callback to call before and after operation
-
dispose
public void dispose()
Disposes context and repository pool if needed.
-
createAnnotate
public SvnAnnotate createAnnotate()
Creates annotate operation.- Returns:
- new
SvnAnnotateobject
-
createCat
public SvnCat createCat()
Creates cat operation.- Returns:
- new
SvnCatobject
-
createImport
public SvnImport createImport()
Creates import operation.- Returns:
- new
SvnImportobject
-
createCopy
public SvnCopy createCopy()
Creates copy operation.- Returns:
- new
SvnCatobject
-
createRemoteCopy
public SvnRemoteCopy createRemoteCopy()
Creates remote copy operation.- Returns:
- new
SvnRemoteCopyobject
-
createRemoteMkDir
public SvnRemoteMkDir createRemoteMkDir()
Creates remote make directory operation.- Returns:
- new
SvnRemoteMkDirobject
-
createRemoteSetProperty
public SvnRemoteSetProperty createRemoteSetProperty()
Creates remote set property operation.- Returns:
- new
SvnRemoteSetPropertyobject
-
createSetChangelist
public SvnSetChangelist createSetChangelist()
Creates set changelist operation.- Returns:
- new
SvnSetChangelistobject
-
createGetChangelistPaths
public SvnGetChangelistPaths createGetChangelistPaths()
Creates get changelist paths operation.- Returns:
- new
SvnGetChangelistPathsobject
-
createSetLock
public SvnSetLock createSetLock()
Creates set lock operation.- Returns:
- new
SvnSetLockobject
-
createUnlock
public SvnUnlock createUnlock()
Creates unlock operation.- Returns:
- new
SvnUnlockobject
-
createUpgrade
public SvnUpgrade createUpgrade()
Creates upgrade operation.- Returns:
- new
SvnUpgradeobject
-
createGetInfo
public SvnGetInfo createGetInfo()
Creates get info operation.- Returns:
- new
SvnGetInfoobject
-
createGetProperties
public SvnGetProperties createGetProperties()
Creates get properties operation.- Returns:
- new
SvnGetPropertiesobject
-
createGetStatus
public SvnGetStatus createGetStatus()
Creates get status operation.- Returns:
- new
SvnGetStatusobject
-
createUpdate
public SvnUpdate createUpdate()
Creates update operation.- Returns:
- new
SvnUpdateobject
-
createSwitch
public SvnSwitch createSwitch()
Creates switch operation.- Returns:
- new
SvnSwitchobject
-
createCheckout
public SvnCheckout createCheckout()
Creates checkout operation.- Returns:
- new
SvnCheckoutobject
-
createRelocate
public SvnRelocate createRelocate()
Creates relocate operation.- Returns:
- new
SvnRelocateobject
-
createExport
public SvnExport createExport()
Creates export operation.- Returns:
- new
SvnExportobject
-
createScheduleForAddition
public SvnScheduleForAddition createScheduleForAddition()
Creates add operation.- Returns:
- new
SvnScheduleForAdditionobject
-
createCommit
public SvnCommit createCommit()
Creates commit operation.- Returns:
- new
SvnCommitobject
-
createScheduleForRemoval
public SvnScheduleForRemoval createScheduleForRemoval()
Creates delete operation.- Returns:
- new
SvnScheduleForRemovalobject
-
createMarkReplaced
public SvnMarkReplaced createMarkReplaced()
Creates mark replaced operation.- Returns:
- new
SvnMarkReplacedobject
-
createRevert
public SvnRevert createRevert()
Creates revert operation.- Returns:
- new
SvnRevertobject
-
createSetProperty
public SvnSetProperty createSetProperty()
Creates set property operation.- Returns:
- new
SvnSetPropertyobject
-
createLog
public SvnLog createLog()
Creates log operation.- Returns:
- new
SvnLogobject
-
createMkDir
public SvnRemoteMkDir createMkDir()
Creates remote make directory operation.- Returns:
- new
SvnRemoteMkDirobject
-
createRemoteDelete
public SvnRemoteDelete createRemoteDelete()
Creates remote delete operation.- Returns:
- new
SvnRemoteDeleteobject
-
createMerge
public SvnMerge createMerge()
Creates merge operation.- Returns:
- new
SvnMergeobject
-
createDiff
public SvnDiff createDiff()
Creates diff operation.- Returns:
- new
SvnDiffobject
-
createPatch
public SvnPatch createPatch()
Creates patch operation.- Returns:
- new
SvnPatchobject
-
createDiffSummarize
public SvnDiffSummarize createDiffSummarize()
Creates diff summarize operation.- Returns:
- new
SvnDiffSummarizeobject
-
createSuggestMergeSources
public SvnSuggestMergeSources createSuggestMergeSources()
Creates suggest merge sources operation.- Returns:
- new
SvnSuggestMergeSourcesobject
-
createGetMergeInfo
public SvnGetMergeInfo createGetMergeInfo()
Creates get merge info operation.- Returns:
- new
SvnGetMergeInfoobject
-
createLogMergeInfo
public SvnLogMergeInfo createLogMergeInfo()
Creates log merge info operation.- Returns:
- new
SvnLogMergeInfoobject
-
createResolve
public SvnResolve createResolve()
Creates resolve operation.- Returns:
- new
SvnResolveobject
-
createCleanup
public SvnCleanup createCleanup()
Creates cleanup operation.- Returns:
- new
SvnCleanupobject
-
createList
public SvnList createList()
Creates list operation.- Returns:
- new
SvnListobject
-
createCanonicalizeUrls
public SvnCanonicalizeUrls createCanonicalizeUrls()
Creates canonicalize URLs operation.- Returns:
- new
SvnCanonicalizeUrlsobject
-
createRepositoryDump
public SvnRepositoryDump createRepositoryDump()
Creates repository dump administrative operation.- Returns:
- new
SvnRepositoryDumpobject
-
createRepositoryCreate
public SvnRepositoryCreate createRepositoryCreate()
Creates repository create administrative operation.- Returns:
- new
SvnRepositoryCreateobject
-
createRepositoryHotCopy
public SvnRepositoryHotCopy createRepositoryHotCopy()
Creates repository hot copy administrative operation.- Returns:
- new
SvnRepositoryHotCopyobject
-
createRepositoryLoad
public SvnRepositoryLoad createRepositoryLoad()
Creates repository load administrative operation.- Returns:
- new
SvnRepositoryLoadobject
-
createRepositoryListLocks
public SvnRepositoryListLocks createRepositoryListLocks()
Creates administrative operation for retrieving list of locks from the repository.- Returns:
- new
SvnRepositoryListLocksobject
-
createRepositoryListTransactions
public SvnRepositoryListTransactions createRepositoryListTransactions()
Creates administrative operation for retrieving list of transactions from the repository.- Returns:
- new
SvnRepositoryListTransactionsobject
-
createRepositoryPack
public SvnRepositoryPack createRepositoryPack()
Creates repository pack administrative operation.- Returns:
- new
SvnRepositoryPackobject
-
createRepositoryRecover
public SvnRepositoryRecover createRepositoryRecover()
Creates repository recover administrative operation.- Returns:
- new
SvnRepositoryRecoverobject
-
createRepositoryRemoveLocks
public SvnRepositoryRemoveLocks createRepositoryRemoveLocks()
Creates repository remove locks administrative operation.- Returns:
- new
SvnRepositoryRemoveLocksobject
-
createRepositoryRemoveTransactions
public SvnRepositoryRemoveTransactions createRepositoryRemoveTransactions()
Creates repository remove transactions administrative operation.- Returns:
- new
SvnRepositoryRemoveTransactionsobject
-
createRepositorySetUUID
public SvnRepositorySetUUID createRepositorySetUUID()
Creates repository set UUID administrative operation.- Returns:
- new
SvnRepositorySetUUIDobject
-
createRepositoryUpgrade
public SvnRepositoryUpgrade createRepositoryUpgrade()
Creates repository upgrade administrative operation.- Returns:
- new
SvnRepositoryUpgradeobject
-
createRepositoryVerify
public SvnRepositoryVerify createRepositoryVerify()
Creates repository verify administrative operation.- Returns:
- new
SvnRepositoryVerifyobject
-
createRepositoryInitialize
public SvnRepositoryInitialize createRepositoryInitialize()
Creates initialize synchronization operation.- Returns:
- new
SvnRepositoryInitializeobject
-
createRepositorySyncInfo
public SvnRepositorySyncInfo createRepositorySyncInfo()
Creates operation for retrieving repository synchronization info.- Returns:
- new
SvnRepositorySyncInfoobject
-
createRepositoryCopyRevisionProperties
public SvnRepositoryCopyRevisionProperties createRepositoryCopyRevisionProperties()
Creates copy revision properties synchronization operation.- Returns:
- new
SvnRepositoryCopyRevisionPropertiesobject
-
createRepositorySynchronize
public SvnRepositorySynchronize createRepositorySynchronize()
Creates repository synchronize operation.- Returns:
- new
SvnRepositorySynchronizeobject
-
createRepositoryFilter
public SvnRepositoryFilter createRepositoryFilter()
Creates dumpfilter operation.- Returns:
- new
SvnRepositoryFilterobject
-
createRepositoryGetAuthor
public SvnRepositoryGetAuthor createRepositoryGetAuthor()
Creates operation for retrieving author from the repository.- Returns:
- new
SvnRepositoryGetAuthorobject
-
createRepositoryGetDate
public SvnRepositoryGetDate createRepositoryGetDate()
Creates operation for retrieving date from the repository.- Returns:
- new
SvnRepositoryGetDateobject
-
createRepositoryGetInfo
public SvnRepositoryGetInfo createRepositoryGetInfo()
Creates operation for retrieving info from the repository.- Returns:
- new
SvnRepositoryGetInfoobject
-
createRepositoryGetLock
public SvnRepositoryGetLock createRepositoryGetLock()
Creates operation for retrieving the lock from the repository.- Returns:
- new
SvnRepositoryGetLockobject
-
createRepositoryGetLog
public SvnRepositoryGetLog createRepositoryGetLog()
Creates operation for retrieving repository log.- Returns:
- new
SvnRepositoryGetLogobject
-
createRepositoryGetUUID
public SvnRepositoryGetUUID createRepositoryGetUUID()
Creates operation for retrieving repository UUID.- Returns:
- new
SvnRepositoryGetUUIDobject
-
createRepositoryGetYoungest
public SvnRepositoryGetYoungest createRepositoryGetYoungest()
Creates operation for retrieving the latest revision from the repository.- Returns:
- new
SvnRepositoryGetYoungestobject
-
createRepositoryGetProperty
public SvnRepositoryGetProperty createRepositoryGetProperty()
Creates operation for retrieving property from the repository.- Returns:
- new
SvnRepositoryGetPropertyobject
-
createRepositoryGetRevisionProperty
public SvnRepositoryGetRevisionProperty createRepositoryGetRevisionProperty()
Creates operation for retrieving revision property from the repository.- Returns:
- new
SvnRepositoryGetRevisionPropertyobject
-
createRepositoryGetProperties
public SvnRepositoryGetProperties createRepositoryGetProperties()
Creates operation for retrieving properties from the repository.- Returns:
- new
SvnRepositoryGetPropertiesobject
-
createRepositoryGetCat
public SvnRepositoryCat createRepositoryGetCat()
Creates operation for retrieving file contents from the repository.- Returns:
- new
SvnRepositoryCatobject
-
createRepositoryGetChanged
public SvnRepositoryGetChanged createRepositoryGetChanged()
Creates operation for retrieving changed paths from the repository.- Returns:
- new
SvnRepositoryGetChangedobject
-
createRepositoryGetChangedDirectories
public SvnRepositoryGetChangedDirectories createRepositoryGetChangedDirectories()
Creates operation for retrieving changed directories from the repository.- Returns:
- new
SvnRepositoryGetChangedDirectoriesobject
-
createRepositoryGetDiff
public SvnRepositoryGetDiff createRepositoryGetDiff()
Creates repository diff operation.- Returns:
- new
SvnRepositoryGetDiffobject
-
createRepositoryGetHistory
public SvnRepositoryGetHistory createRepositoryGetHistory()
Creates operation for retrieving the history from the repository.- Returns:
- new
SvnRepositoryGetHistoryobject
-
createRepositoryGetTree
public SvnRepositoryGetTree createRepositoryGetTree()
Creates operation for retrieving items tree from the repository.- Returns:
- new
SvnRepositoryGetTreeobject
-
createRepositoryGetRevisionProperties
public SvnRepositoryGetRevisionProperties createRepositoryGetRevisionProperties()
Creates operation for retrieving revision properties from the repository.- Returns:
- new
SvnRepositoryGetRevisionPropertiesobject
-
createGetRepositoryFileSize
public SvnRepositoryGetFileSize createGetRepositoryFileSize()
Creates operation for retrieving file size from the repository- Returns:
- new
SvnRepositoryGetFileSizeobject
-
createGetStatusSummary
public SvnGetStatusSummary createGetStatusSummary()
Creates get status summary operation.- Returns:
- new
SvnStatusSummaryobject
-
createSetWCDbVersion
public SvnSetWCDbVersion createSetWCDbVersion()
-
setAutoDisposeRepositoryPool
public void setAutoDisposeRepositoryPool(boolean dispose)
Sets whether to dispose repository pool ondispose()call. This flag has sense only ifrepositoryPoolfield is notnull. Otherwise the flag value can be overwritten bysetRepositoryPool(ISVNRepositoryPool)orgetRepositoryPool()calls.- Parameters:
dispose- whether to dispose repository pool ondispose()call
-
run
protected java.lang.Object run(SvnOperation<?> operation) throws SVNException
- Throws:
SVNException
-
getImplementation
protected ISvnOperationRunner<?,SvnOperation<?>> getImplementation(SvnOperation<?> operation) throws SVNException
- Throws:
SVNException
-
isPrimaryWcGenerationOnly
public boolean isPrimaryWcGenerationOnly()
Returns whether the operations should work only on primary working copy generation (for example only on SVN 1.7 working copy) or on both primary and secondary generations.- Returns:
trueoperations should work only on primary working copy generation, iffalseboth primary and secondary generations are supported
-
isAssertRefCount
public boolean isAssertRefCount()
-
registerOperationRunner
protected void registerOperationRunner(java.lang.Class<?> operationClass, ISvnOperationRunner<?,? extends SvnOperation<?>> runner)
-
isWorkingCopyRoot
public static boolean isWorkingCopyRoot(java.io.File versionedDir)
Detects whether the versioned directory is working copy root.- Parameters:
versionedDir- directory to check- Returns:
trueif the directory is working copy root, otherwisefalse
-
isVersionedDirectory
public static boolean isVersionedDirectory(java.io.File directory)
Detects whether the directory is versioned directory.- Parameters:
directory- directory to check- Returns:
trueif the directory is versioned directory, otherwisefalse
-
isVersionedDirectory
public static boolean isVersionedDirectory(java.io.File directory, boolean isAdditionMode)Detects whether the directory is versioned directory in or (not in) the addition mode.- Parameters:
directory- directory to checkisAdditionMode-trueif it is addition mode, otherwisefalse- Returns:
trueif the directory is versioned directory, otherwisefalse
-
getWorkingCopyRoot
public static java.io.File getWorkingCopyRoot(java.io.File versionedDir, boolean stopOnExternals) throws SVNExceptionSearches working copy root path by the versioned directory.- Parameters:
versionedDir- versioned directorystopOnExternals-trueif externals should not be searched, otherwisefalse- Returns:
- working copy root
- Throws:
SVNException
-
detectWcGeneration
public static org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration detectWcGeneration(java.io.File path, boolean climbUp) throws SVNExceptionDetects working copy generation (1.6 or 1.7 format) by the working copy path. Recursively searches the by path's parents up to the root ifclimbUpistrue.- Parameters:
path- working copy pathclimbUp-trueif search recursively in path's parents, otherwisefalse- Returns:
- working copy generation
- Throws:
SVNException
-
detectWcGeneration
public static org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration detectWcGeneration(java.io.File path, boolean climbUp, boolean isAdditionMode) throws SVNExceptionDetects working copy generation (1.6 or 1.7 format) by the working copy path in (not in) the addition mode. Recursively searches the by path's parents up to the root ifclimbUpistrue.- Parameters:
path- working copy pathclimbUp-trueif search recursively in path's parents, otherwisefalseisAdditionMode-trueif it is addition mode, otherwisefalse- Returns:
- working copy generation
- Throws:
SVNException
-
getWcContext
public org.tmatesoft.svn.core.internal.wc17.SVNWCContext getWcContext()
Returns working copy context.- Returns:
- working copy context
-
getPrimaryWcGeneration
public org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration getPrimaryWcGeneration()
Returns primary (default) working copy generation.- Returns:
- working copy generation
-
getSecondaryWcGeneration
public org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration getSecondaryWcGeneration()
Returns secondary working copy generation.- Returns:
- working copy generation
-
setPrimaryWcGeneration
public void setPrimaryWcGeneration(org.tmatesoft.svn.core.internal.wc2.SvnWcGeneration primaryWcGeneration)
(Re)sets primary (default) working copy generation. IfprimaryWcGenerationis notnull, registers operations' runners.- Parameters:
primaryWcGeneration-
-
setWcGenerationSticky
public void setWcGenerationSticky(boolean isWcGenerationSticky)
When set to true, first encountered working copy generation becomes 'sticky' for this instance ofSvnOperationFactoryand no working copy format detection will be performed for subsequent operation.- Parameters:
isWcGenerationSticky-
-
isWcGenerationSticky
public boolean isWcGenerationSticky()
- Returns:
- true when this instance of
SvnOperationFactory - See Also:
setWcGenerationSticky(boolean)
-
-