T - type of received object(s)ISvnObjectReceiver<T>, ISvnOperationOptionsProviderAbstractSvnCommit, SvnAnnotate, SvnDiffSummarize, SvnGetChangelistPaths, SvnGetInfo, SvnGetProperties, SvnGetStatus, SvnList, SvnLog, SvnLogMergeInfo, SvnRepositoryFilter, SvnRepositoryInitialize, SvnRepositoryReceivingOperation, SvnRepositorySynchronize, SvnSetLock, SvnSetProperty, SvnUnlockpublic class SvnReceivingOperation<T> extends SvnOperation<T> implements ISvnObjectReceiver<T>
ISvnObjectReceiver interface and assign it in
setReceiver(ISvnObjectReceiver).SvnOperation,
ISvnObjectReceiver,
SvnAnnotate,
SvnDiffSummarize,
SvnGetChangelistPaths,
SvnGetInfo,
SvnGetProperties,
SvnGetStatus,
SvnList,
SvnLog,
SvnLogMergeInfo,
SvnSetLock,
SvnSetProperty,
SvnUnlock| Modifier | Constructor | Description |
|---|---|---|
protected |
SvnReceivingOperation(SvnOperationFactory factory) |
| Modifier and Type | Method | Description |
|---|---|---|
T |
first() |
Returns first received object from the list.
|
ISvnObjectReceiver<T> |
getReceiver() |
Returns client's object receiver.
|
protected void |
initDefaults() |
|
T |
last() |
Returns last received object from the list.
|
void |
receive(SvnTarget target,
T object) |
Receives the object, adds it to objects list and calls
client's receiver if exists.
|
java.util.Collection<T> |
run(java.util.Collection<T> objects) |
Initializes list for received objects with
objects
or creates an empty list, calls the operation's SvnOperation.run()
method. |
void |
setReceiver(ISvnObjectReceiver<T> receiver) |
Sets client's object receiver.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTarget, cancel, ensureArgumentsAreValid, ensureEnoughTargets, ensureHomohenousTargets, getApplicableChangelists, getAuthenticationManager, getCanceller, getDepth, getEventHandler, getFirstTarget, getMaximumTargetsCount, getMinimumTargetsCount, getOperationalWorkingCopy, getOperationFactory, getOptions, getRepositoryPool, getRevision, getSqliteJournalMode, getTargets, hasFileTargets, hasLocalTargets, hasRemoteTargets, isCancelled, isChangesWorkingCopy, isSleepForTimestamp, isUseParentWcFormat, needsHomohenousTargets, run, setApplicalbeChangelists, setDepth, setRevision, setSingleTarget, setSleepForTimestamp, setSqliteJournalModeprotected SvnReceivingOperation(SvnOperationFactory factory)
public void setReceiver(ISvnObjectReceiver<T> receiver)
receiver - object receiverpublic ISvnObjectReceiver<T> getReceiver()
public void receive(SvnTarget target, T object) throws SVNException
receive in interface ISvnObjectReceiver<T>target - target of the objectobject - objectSVNExceptionpublic T first()
public T last()
public java.util.Collection<T> run(java.util.Collection<T> objects) throws SVNException
objects
or creates an empty list, calls the operation's SvnOperation.run()
method.objects - SVNExceptionprotected void initDefaults()
initDefaults in class SvnOperation<T>