|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.ChangeSession
public abstract class ChangeSession
A change session, possibly associated with a change package.
| Method Summary | |
|---|---|
void |
close()
Closes this change session, and releases the exclusive lock on the corresponding change package, if necessary. |
void |
close(boolean unlock)
Closes this change session, optionally releasing the exclusive lock on the corresponding change package. |
abstract void |
connect(Server server)
Connects a restored session to a server instance. |
ChangePackage |
getChangePackage()
Returns the change package associated with this session, or null if the session has not yet been committed or saved in an active state. |
abstract java.lang.String |
getDefaultName()
Gets a default name for this session. |
java.lang.String |
getDescription()
Returns the description of the ChangePackage for this session. |
abstract int |
getLockCount()
Gets the number of source or target items that are currently locked on behalf of this session. |
java.lang.String |
getName()
Returns the name of the ChangePackage for this session. |
abstract View |
getSourceView()
Gets the source view associated with this session. |
abstract View |
getTargetView()
Gets the target view associated with this session. |
abstract boolean |
hasLocks()
Determines whether any source or target items are currently locked on behalf of this session. |
abstract boolean |
isActive()
Returns true if this session is in an active state. |
abstract boolean |
isCommitted()
Returns true if this session is in a committed state. |
boolean |
isReadOnly()
Returns true if this session is read-only; false otherwise. |
abstract void |
removeLocks()
Unlocks any source or target items that were locked on behalf of this session. |
abstract void |
restart(Server server)
Restart this session The session is opened for writing, and is ready to re-run a compare in the current context of the source and target views |
ChangePackage |
save()
Saves the current state of this session. |
void |
setDescription(java.lang.String description)
Sets the description of the ChangePackage for this session. |
void |
setName(java.lang.String name)
Sets the name of the ChangePackage for this session. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract void restart(Server server)
server - the server instance on which this session will runChangeSession.connect(Server)public abstract void connect(Server server)
When a session is first restored, it is in a disconnected state. It is
not fully functional until it is connected to a server instance that
references the correct repository. To determine which server is required,
use getServerInfo.
For example:
Session session = Session.restoreFrom("MySession.vcmx");
Server server = new Server(session.getServerInfo());
server.logOn(user, password);
session.connect(server);
. . .
server - The server instance to be connected. The server must refer to
the same StarTeam repository with which the session was
created.public boolean isReadOnly()
public ChangePackage getChangePackage()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the ChangePackage for this sessionpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the description of this ChangePackage for this session.public ChangePackage save()
public abstract java.lang.String getDefaultName()
public abstract boolean isActive()
public abstract boolean isCommitted()
public abstract View getTargetView()
ChangeSession.getSourceView()public abstract View getSourceView()
ChangeSession.getTargetView()public abstract boolean hasLocks()
ChangeSession.getLockCount(),
ChangeSession.removeLocks()public abstract int getLockCount()
ChangeSession.hasLocks(),
ChangeSession.removeLocks()public abstract void removeLocks()
ChangeSession.hasLocks(),
ChangeSession.getLockCount(),
ChangeSession.getSourceView(),
ChangeSession.getTargetView()public void close()
public void close(boolean unlock)
unlock - true to unlock the corresponding change package.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||