public abstract class VcsAbstractHistorySession extends java.lang.Object implements VcsHistorySession
Modifier | Constructor and Description |
---|---|
|
VcsAbstractHistorySession(java.util.List<? extends VcsFileRevision> revisions) |
protected |
VcsAbstractHistorySession(java.util.List<? extends VcsFileRevision> revisions,
VcsRevisionNumber currentRevisionNumber) |
Modifier and Type | Method and Description |
---|---|
void |
appendRevision(VcsFileRevision revision) |
protected abstract VcsRevisionNumber |
calcCurrentRevisionNumber()
This method should return actual value for current revision (it can be changed after submit for example)
|
abstract VcsHistorySession |
copy() |
VcsHistorySession |
copyWithCachedRevision() |
protected VcsRevisionNumber |
getCachedRevision() |
VcsRevisionNumber |
getCurrentRevisionNumber() |
java.util.Map<VcsRevisionNumber,VcsFileRevision> |
getHistoryAsMap() |
java.util.List<VcsFileRevision> |
getRevisionList() |
boolean |
hasLocalSource() |
boolean |
isContentAvailable(VcsFileRevision revision) |
boolean |
isCurrentRevision(VcsRevisionNumber rev) |
protected void |
setCachedRevision(VcsRevisionNumber number) |
boolean |
shouldBeRefreshed() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHistoryAsTreeProvider
public VcsAbstractHistorySession(java.util.List<? extends VcsFileRevision> revisions)
protected VcsAbstractHistorySession(java.util.List<? extends VcsFileRevision> revisions, VcsRevisionNumber currentRevisionNumber)
protected VcsRevisionNumber getCachedRevision()
protected void setCachedRevision(VcsRevisionNumber number)
public java.util.List<VcsFileRevision> getRevisionList()
getRevisionList
in interface VcsHistorySession
public void appendRevision(VcsFileRevision revision)
protected abstract VcsRevisionNumber calcCurrentRevisionNumber()
public final VcsRevisionNumber getCurrentRevisionNumber()
getCurrentRevisionNumber
in interface VcsHistorySession
public boolean isCurrentRevision(VcsRevisionNumber rev)
isCurrentRevision
in interface VcsHistorySession
public boolean shouldBeRefreshed()
shouldBeRefreshed
in interface VcsHistorySession
public boolean isContentAvailable(VcsFileRevision revision)
isContentAvailable
in interface VcsHistorySession
public abstract VcsHistorySession copy()
public VcsHistorySession copyWithCachedRevision()
public java.util.Map<VcsRevisionNumber,VcsFileRevision> getHistoryAsMap()
public boolean hasLocalSource()
hasLocalSource
in interface VcsHistorySession