Package org.tmatesoft.svn.core.wc2
Class SvnScheduleForRemoval
- java.lang.Object
-
- org.tmatesoft.svn.core.wc2.SvnOperation<java.lang.Void>
-
- org.tmatesoft.svn.core.wc2.SvnScheduleForRemoval
-
- All Implemented Interfaces:
ISvnOperationOptionsProvider
public class SvnScheduleForRemoval extends SvnOperation<java.lang.Void>
Represents remove operation. Schedules the working copytargetsfor deletion. This operation allows to choose whether file item(s) are to be deleted from the filesystem or not, it is controlled bydeleteFiles. This method deletes only local working copy paths without connecting to the repository.Targetsthat are, or contain, unversioned or modified items will not be removed unless theforceanddeleteFilesistrue.- Version:
- 1.7
- Author:
- TMate Software Ltd.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSvnScheduleForRemoval(SvnOperationFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intgetMaximumTargetsCount()protected voidinitDefaults()booleanisChangesWorkingCopy()Gets whether the operation changes working copybooleanisDeleteFiles()Returns whether files should be scheduled for deletion as well as deleted from the filesystem, or files should be only scheduled for addition and still be present in the filesystem.booleanisDryRun()Returns whether to check the possibility of delete operation without actual deletingbooleanisForce()Returns whether to force operation on unversioned or modified items.voidsetDeleteFiles(boolean deleteFiles)Sets whether files should be scheduled for deletion as well as deleted from the filesystem, or files should be only scheduled for addition and still be present in the filesystem.voidsetDryRun(boolean dryRun)Sets whether to check the possibility of delete operation without actual deletingvoidsetForce(boolean force)Sets whether to force operation on unversioned or modified items.-
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
-
SvnScheduleForRemoval
protected SvnScheduleForRemoval(SvnOperationFactory factory)
-
-
Method Detail
-
isForce
public boolean isForce()
Returns whether to force operation on unversioned or modified items.- Returns:
trueif the operation should be forced on unversioned or modified items
-
setForce
public void setForce(boolean force)
Sets whether to force operation on unversioned or modified items.- Parameters:
force-trueif the operation should be forced on unversioned or modified items
-
isDryRun
public boolean isDryRun()
Returns whether to check the possibility of delete operation without actual deleting- Returns:
truethe possibility of delete operation should be checked without actual deleting, otherwise false
-
setDryRun
public void setDryRun(boolean dryRun)
Sets whether to check the possibility of delete operation without actual deleting- Parameters:
dryRun-truethe possibility of delete operation should be checked without actual deleting, otherwise false
-
setDeleteFiles
public void setDeleteFiles(boolean deleteFiles)
Sets whether files should be scheduled for deletion as well as deleted from the filesystem, or files should be only scheduled for addition and still be present in the filesystem.- Parameters:
deleteFiles-trueif files should be deleted on filesystem, otherwisefalse.
-
isDeleteFiles
public boolean isDeleteFiles()
Returns whether files should be scheduled for deletion as well as deleted from the filesystem, or files should be only scheduled for addition and still be present in the filesystem.- Returns:
trueif files should be deleted on filesystem, otherwisefalse.
-
initDefaults
protected void initDefaults()
- Overrides:
initDefaultsin classSvnOperation<java.lang.Void>
-
getMaximumTargetsCount
protected int getMaximumTargetsCount()
- Overrides:
getMaximumTargetsCountin classSvnOperation<java.lang.Void>
-
isChangesWorkingCopy
public boolean isChangesWorkingCopy()
Gets whether the operation changes working copy- Overrides:
isChangesWorkingCopyin classSvnOperation<java.lang.Void>- Returns:
trueif the operation changes the working copy, otherwisefalse
-
-