|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.TypedResource
com.starteam.LiveObject
com.starteam.TrackedObject
com.starteam.VersionedObject
com.starteam.ViewMember
com.starteam.ChangePackage
public final class ChangePackage
A ChangePackage represents a set of changes to a StarTeam view that together form a single logical change. A logical change might be a bug fix, enhancement, etc. The updates made by a ChangePackage are committed in a single, atomic transaction.
| Nested Class Summary | |
|---|---|
static class |
ChangePackage.SessionType
The type of VCM or Checkin Session in whose context this Change Package was committed |
static class |
ChangePackage.State
The current state of the change package. |
static class |
ChangePackage.Type
The Type of the ChangePackage component. |
static class |
ChangePackage.WebCacheChangePackage
ChangePackage accessor for cached SDK ChangePackages contained objects are obtained from the artifact cache |
| Nested classes/interfaces inherited from class com.starteam.ViewMember |
|---|
ViewMember.LockType, ViewMember.MyLock, ViewMember.ShareState, ViewMember.WebCacheViewMember |
| Nested classes/interfaces inherited from class com.starteam.VersionedObject |
|---|
VersionedObject.WebCacheVersionedObject |
| Nested classes/interfaces inherited from class com.starteam.TrackedObject |
|---|
TrackedObject.WebCacheTrackedObject |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
ChangeCollection |
getChanges()
Gets the Change objects associated with this change package. |
Transaction |
getCommitTransaction()
The transaction in which this change package was committed, or null if it hasn't been committed yet. |
java.lang.String |
getDescription()
Provides a full description of the change package. |
java.lang.String |
getName()
Each change package has a name that serves as a textual identification of the change package. |
Label |
getPostCommitRevisionLabel()
The post-commit revision label, or null. |
Label |
getPostCommitViewLabel()
The post-commit view label. |
Label |
getPreCommitRevisionLabel()
The pre-commit revision label. |
Label |
getPreCommitViewLabel()
The pre-commit view label. |
Item |
getProcessItem()
returns the process item (if any) linked to this ChangePackage via a Trace |
ChangePackage.Type.PropertyCollection |
getProperties()
Returns the property collection for the ChangePackage Type |
ChangePackageCollection |
getReplaySources()
Gets the set of change packages from which the given one was derived. |
ChangePackageCollection |
getReplayTargets()
Gets the set of change packages representing replayed instances of the given one. |
User |
getResponsibility()
Gets the user who is currently responsible for this change package. |
ChangePackage.SessionType |
getSessionType()
Defines the session type for the change package. |
View |
getSourceView()
The source view for this change package. |
ChangePackage.State |
getState()
Gets the current workflow state of the change package. |
View |
getTargetView()
The target view for this change package. |
java.lang.Object |
getValue(Property property)
Returns the value of the property. |
boolean |
isActive()
Returns true if this is an active ChangePackage |
boolean |
isCommitted()
Returns true if this is a committed ChangePackage |
boolean |
isDirty()
Returns true if this change package has been modified, and requires an update() to save changes on the server. |
boolean |
isMyResponsibility()
Returns true if the logged in user is responsible for this ChangePackage |
ChangeSession |
open()
Opens the session associated with this change package. |
ChangeSession |
open(boolean isReadOnly)
Opens the session associated with this change package. |
ViewMemberCollection |
resolve()
Gets the item revisions from the target view in the state they were in at the time the change package was committed. |
ChangeSession |
restart()
Open the session associated with this change package The session is opened for writing, and is ready to re-run a compare in the current context of the source and target views |
ChangeSession |
restore()
Opens and restores an uncommitted session associated with this change package. |
RollbackSession |
rollback()
rollback the contents of this change package on disk. |
RollbackSession |
rollback(Encoding enc)
rollback the contents of this change package on disk. |
void |
setDescription(java.lang.String description)
Provide a description for the change package |
void |
setResponsibility(User user)
Set the user responsible for this change package |
java.lang.String |
toString()
Returns the ChangePackage name. |
void |
update()
Stores the underlying entity in the server. |
| Methods inherited from class com.starteam.VersionedObject |
|---|
getBranchRevision, getRevisionNumber, getViewVersion, isFromHistory |
| Methods inherited from class com.starteam.TrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.starteam.ISecurable |
|---|
getServer, getType |
| Method Detail |
|---|
public ChangePackage.Type.PropertyCollection getProperties()
public void update()
update in class ViewMemberChange.setEnabled(boolean)public boolean isDirty()
isDirty in class TypedResourceChangePackage.update()public java.lang.String getName()
public java.lang.Object getValue(Property property)
throws NoSuchPropertyException
getValue in class ViewMemberproperty - the desired property
java.lang.Object
com.starteam.NoSuchPropertyException - if the specified property is not valid for this item
NoSuchPropertyExceptionpublic Item getProcessItem()
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - a description for the change packagepublic ChangePackage.SessionType getSessionType()
public View getSourceView()
public View getTargetView()
public ChangePackage.State getState()
public User getResponsibility()
public void setResponsibility(User user)
user - the user responsible for this change packagepublic boolean isMyResponsibility()
public Transaction getCommitTransaction()
public boolean isActive()
public boolean isCommitted()
public Label getPreCommitViewLabel()
Session.isPreCommitViewLabelEnabledpublic Label getPostCommitViewLabel()
The label is created at the start of the commit, and is updated as each change is merged to the target view. The difference between the pre- and post-commit view labels shows exactly which items were changed in the target view.
Session.isPostCommitViewLabelEnabledpublic Label getPreCommitRevisionLabel()
This label is attached only to items that are changed or removed during the commit. It is attached to the item revision that is current prior to making the change.
The label will be created during the commit transaction, if the option is enabled.
Session.isPreCommitRevisionLabelEnabledpublic Label getPostCommitRevisionLabel()
This label is attached only to items that are changed during the commit. It is attached to the item revision that is current just after making the change.
The label will be created during the commit transaction, if the option is enabled.
Session.isPostCommitRevisionLabelEnabledpublic java.lang.String toString()
toString in class TypedResourcepublic ChangeCollection getChanges()
The returned collection is read-only. If the change package has not yet
been committed, then you may add Change objects to the collection
indirectly, using add. You may also explicitly
populate, refresh or discard the Change objects through the cache
service.
public ChangeSession open()
If the session is committed, it is opened in read-only mode. Otherwise, an attempt is made to open the session for writing.
When opening a session for writing, an exclusive lock is obtained. The lock is optionally released when the session is closed.
ChangePackage.open(boolean),
ChangeSession.close()public ChangeSession restore()
The returned session is in a disconnected state. Operations that do not require a connection to the server will succeed
ChangePackage.open(boolean),
ChangePackage.open(),
ChangePackage.restart(),
ChangeSession.close()public ChangeSession restart()
ChangePackage.open(),
ChangePackage.open(boolean)public ChangeSession open(boolean isReadOnly)
Note that a committed session can only be opened in read-only mode. When opening a session for writing, an exclusive lock is obtained. The lock is optionally released when the session is closed.
isReadOnly - true to open this session in read-only mode; false to open it
for writing.
ChangePackage.open(),
ChangeSession.close()public ViewMemberCollection resolve()
public ChangePackageCollection getReplaySources()
Note: The information about replay relationships is not cached, and is therefore fairly expensive to retrieve. The ReplayGraph class provides a way to fetch the replay information for a set of change packages in bulk, and cache it.
public ChangePackageCollection getReplayTargets()
Note: The information about replay relationships is not cached, and is therefore fairly expensive to retrieve. The ReplayGraph class provides a way to fetch the replay information for a set of change packages in bulk, and cache it.
public RollbackSession rollback()
throws java.io.IOException
java.io.IOException
public RollbackSession rollback(Encoding enc)
throws java.io.IOException
enc - The Encoding to use when merging the content. specify NULL to use the platform encoding by default
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||