|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.RollbackSession
public final class RollbackSession
A RollbackSession is created and returned as the output of a ChangePackage rollback. The session contains a set of changes, each change representing a starteam file and a set of content objects, the source (the revision whose delta is to be rolled back) the target (or tip) from which the rollback will occur the common ancestor (the file revision content preceding the revision to be rolled back) and the (rolled back) merged content - the tip after the rollback has been applied. The algorithm runs a first diff between the common ancestor and the rollback revision a second diff between the common ancestor and the tip and rolls back (reverses the changes associated with) each matching Edit between the two diffs.
| Nested Class Summary | |
|---|---|
static class |
RollbackSession.Change
|
static class |
RollbackSession.MergeAction
The action used to resolve each change |
| Method Summary | |
|---|---|
boolean |
canCommit()
returns true if this rollback session can be committed, false otherwise will return true when all contained changes indicate no conflict |
void |
checkout()
checkout (copy over) all the merged (rolled back) files to the working folders mapped via the view path. |
ChangePackage |
commit()
commit this rollback session to the repository, create a committed checkin (workspace) change package as a result (internally use a checkin manager primed with the StarTeam files and the merged files from the session) |
RollbackSession.Change[] |
getChanges()
returns the entire set of changes constituting this rollback |
java.lang.String |
getCommitReason()
Returns the reason for the commit |
Item |
getProcessItem()
return the process item to be used on commit |
void |
setCommitReason(java.lang.String reason)
Provide a reason for the commit |
void |
setProcessItem(Item pi)
set the process item to be used on commit |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public RollbackSession.Change[] getChanges()
public boolean canCommit()
public java.lang.String getCommitReason()
public void setCommitReason(java.lang.String reason)
reason - a reason for the commitpublic Item getProcessItem()
public void setProcessItem(Item pi)
pi - the process item to be used on commitpublic ChangePackage commit()
public void checkout()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||