Package org.tmatesoft.svn.core.wc2
Class SvnRemoteDelete
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<T>
-
- org.tmatesoft.svn.core.wc2.SvnReceivingOperation<SVNCommitInfo>
-
- org.tmatesoft.svn.core.wc2.AbstractSvnCommit
-
- org.tmatesoft.svn.core.wc2.SvnRemoteDelete
-
- All Implemented Interfaces:
ISvnObjectReceiver<SVNCommitInfo>
,ISvnOperationOptionsProvider
public class SvnRemoteDelete extends AbstractSvnCommit
Represents delete operation. Deletes items from a repository. Alltargets
should be URLs, representing repository locations to be removed. URLs can be from multiple repositories.commitHandler
will be asked for a commit log message. If the caller'sevent handler
is notnull
and if the commit succeeds, the handler will be called withSVNEventAction.COMMIT_COMPLETED
event action.SvnOperation.run()
method returnsSVNCommitInfo
information on a new revision as the result of the commit.SvnOperation.run()
throwsSVNException
in the following cases:-
exception with
SVNErrorCode.RA_ILLEGAL_URL
error code - if cannot compute common root url fortargets
,targets
can can refer to different repositories exception withSVNErrorCode.CLIENT_PROPERTY_NAME
error code - if there is standard Subversion property among revision properties exception withSVNErrorCode.FS_NOT_FOUND
error code - if some of thetargets
does not exist exception withSVNErrorCode.RA_ILLEGAL_URL
error code - if some of thetargets
is not within a repository- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SvnRemoteDelete(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getMaximumTargetsCount()
boolean
isChangesWorkingCopy()
Gets whether the operation changes working copy-
Methods inherited from class org.tmatesoft.svn.core.wc2.AbstractSvnCommit
getCommitHandler, getCommitMessage, getRevisionProperties, setCommitHandler, setCommitMessage, setRevisionProperties, setRevisionProperty
-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnReceivingOperation
first, getReceiver, initDefaults, last, receive, run, setReceiver
-
Methods inherited from class org.tmatesoft.svn.core.wc2.SvnOperation
addTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalMode
-
-
-
-
Constructor Detail
-
SvnRemoteDelete
protected SvnRemoteDelete(SvnOperationFactory factory)
-
-
Method Detail
-
getMaximumTargetsCount
protected int getMaximumTargetsCount()
- Overrides:
getMaximumTargetsCount
in classSvnOperation<SVNCommitInfo>
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopy
in classSvnOperation<SVNCommitInfo>
- Returns:
true
if the operation changes the working copy, otherwisefalse
-
-