public class SVNCommitPacket
extends java.lang.Object
Used by SVNCommitClient
to collect and hold information on paths that are to be committed.
Each SVNCommitPacket
is committed in a single transaction.
SVNCommitItem
Modifier and Type | Field and Description |
---|---|
static SVNCommitPacket |
EMPTY
This constant denotes an empty commit items storage (contains no
SVNCommitItem objects). |
private SVNCommitItem[] |
myCommitItems |
private boolean |
myIsDisposed |
private boolean[] |
myIsSkipped |
private java.util.Map |
myLockTokens |
Constructor and Description |
---|
SVNCommitPacket(SVNWCAccess wcAccess,
SVNCommitItem[] items,
java.util.Map lockTokens) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes the current object.
|
protected SVNCommitItem[] |
filterSkippedItemsAndLockTokens(java.util.Collection<SVNCommitItem> items,
java.util.Map<java.lang.String,?> lockTokens) |
SVNCommitItem[] |
getCommitItems()
Gets an array of SVNCommitItem objects stored in this
object.
|
private int |
getItemIndex(SVNCommitItem item) |
java.util.Map |
getLockTokens() |
boolean |
isCommitItemSkipped(SVNCommitItem item)
Determines if an item intended for a commit is set to
be skipped - that is not to be committed.
|
boolean |
isDisposed()
Determines if this object is disposed.
|
SVNCommitPacket |
removeSkippedItems() |
void |
setCommitItemSkipped(SVNCommitItem item,
boolean skipped)
Sets or unsets a versioned item to be skipped -
whether or not it should be committed.
|
java.lang.String |
toString()
Gives a string representation of this object.
|
public static final SVNCommitPacket EMPTY
SVNCommitItem
objects).private SVNCommitItem[] myCommitItems
private java.util.Map myLockTokens
private boolean[] myIsSkipped
private boolean myIsDisposed
public SVNCommitPacket(SVNWCAccess wcAccess, SVNCommitItem[] items, java.util.Map lockTokens)
public SVNCommitItem[] getCommitItems()
public void setCommitItemSkipped(SVNCommitItem item, boolean skipped)
item
- an item that should be marked skippedskipped
- if true the item is
set to be skipped (a commit operation should skip
the item), otherwise - unskipped if it was
previously marked skippedisCommitItemSkipped(SVNCommitItem)
public boolean isCommitItemSkipped(SVNCommitItem item)
item
- an item to checksetCommitItemSkipped(SVNCommitItem, boolean)
public boolean isDisposed()
public void dispose() throws SVNException
SVNException
private int getItemIndex(SVNCommitItem item)
public java.util.Map getLockTokens()
public SVNCommitPacket removeSkippedItems()
public java.lang.String toString()
toString
in class java.lang.Object
protected SVNCommitItem[] filterSkippedItemsAndLockTokens(java.util.Collection<SVNCommitItem> items, java.util.Map<java.lang.String,?> lockTokens)