|
|||||||||
| 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.Change
public final class Change
A Change is essentially a unit of a ChangePackage. Each Change object describes one item modified during the commit.
| Nested Class Summary | |
|---|---|
static class |
Change.ChangeType
The value of the Change Type Property |
static class |
Change.CommitAction
The action that was used to commit a change. |
static class |
Change.Type
The Type for Change |
static class |
Change.WebCacheChange
Change accessor for cached SDK Changes contained objects are obtained from the artifact cache |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
static ChangeCollection |
find(Item source,
Item target)
Finds all Change objects for which the given items are the source and/or target. |
static ChangeCollection |
findSource(Item source)
Finds all Change objects for which the given item is the source. |
static ChangeCollection |
findTarget(Item target)
Finds all Change objects for which the given item is the target. |
ChangePackage |
getChangePackage()
Gets the ChangePackage that contains this Change object. |
Change.ChangeType |
getChangeType()
Gets a value representing the type of change. |
Change.CommitAction |
getCommitAction()
Gets a value representing the action that was performed to commit this change. |
java.lang.String |
getDescription()
Gets a user-friendly description of this Change object. |
Item.Type |
getItemType()
Gets the type of the source and/or target item. |
Change.Type.PropertyCollection |
getProperties()
Returns the properties of the Change object Type |
Item |
getSourceItem()
Gets this Change object's source item, or null if there is no source item. |
LinkValue |
getSourceLink()
Gets this Change object's source, as a LinkValue. |
DotNotation |
getSourceVersion()
Gets the version number of the source item. |
Item |
getTargetItem()
Gets this Change object's target item, or null if there is no target item. |
LinkValue |
getTargetLink()
Gets this Change object's target, as a LinkValue. |
DotNotation |
getTargetVersion()
Gets the version number of the target item. |
View |
getView()
Gets the view that contains this Change object and the associated ChangePackage. |
static boolean[] |
hasChanges(Item[] sources,
Item[] targets)
Check for changes between the specified sources and targets. |
boolean |
isEnabled()
Returns true if this change is enabled |
void |
setEnabled(boolean enabled)
mark this change as enabled or disabled Disabled Changes will not report their attached links as resolveable members of the ChangePackage or associated Process Item. |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedBy, getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public Change.Type.PropertyCollection getProperties()
public View getView()
public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - true to enable the change, false otherwisepublic ChangePackage getChangePackage()
public java.lang.String getDescription()
public Change.ChangeType getChangeType()
public Item.Type getItemType()
public Item getSourceItem()
public LinkValue getSourceLink()
public Item getTargetItem()
public LinkValue getTargetLink()
public DotNotation getSourceVersion()
public DotNotation getTargetVersion()
public Change.CommitAction getCommitAction()
public static ChangeCollection findSource(Item source)
The resulting Change objects may reside in any view on this server. They are always sorted by CreatedTime, with the most recent first.
source - Item
public static ChangeCollection findTarget(Item target)
The resulting Change objects may reside in any view on this server. They are always sorted by CreatedTime, with the most recent first.
target - Item
public static boolean[] hasChanges(Item[] sources,
Item[] targets)
sources - the set of sources to comparetargets - the set of targets to compare against
public static ChangeCollection find(Item source,
Item target)
The source item may be null, in which case any source item will do; or, the target item may be null, in which case any target item will do. If both source and target are specified, then they must belong to the same server instance.
The resulting Change objects may reside in any view on this server. They are always sorted by CreatedTime, with the most recent first.
source - Itemtarget - Item
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||