|
|||||||||
| 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.Trace
public class Trace
A typed relationship between two artifacts.
| Nested Class Summary | |
|---|---|
static class |
Trace.Status
The Status of a Trace |
static class |
Trace.TraceType
Trace Type |
static class |
Trace.Type
The type of the Trace |
static class |
Trace.WebCacheTrace
Trace accessor for cached SDK Traces 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 |
| Constructor Summary | |
|---|---|
Trace(View view)
Creates a new trace in the specified view. |
|
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
Gets the description of this trace. |
Trace.Type.PropertyCollection |
getProperties()
Gets all the properties of the Trace Type |
LinkValue |
getSource()
Gets the source endpoint of this trace. |
Trace.Status |
getStatus()
Gets the Status of this Trace. |
LinkValue |
getTarget()
Gets the target endpoint of this trace. |
Trace.TraceType |
getTraceType()
Gets the TraceType of this Trace. |
View |
getView()
Gets the view that contains this Trace |
boolean |
isReverseShareRecommended(View target)
Determines whether share or reverse-share is the more appropriate operation when sharing this trace to the given target view. |
boolean |
isSuspect()
Determines whether the trace is suspect |
void |
pinSource()
Set the source end-point of this trace to pinned. |
void |
pinTarget()
Set the target end-point of this trace to pinned. |
Trace |
reverseShareTo(View target)
Transfers ownership of the root share of a trace to a new view, sharing a copy back to the original location. |
void |
setDescription(java.lang.String description)
Sets the description of this trace. |
void |
setSource(LinkValue source)
Sets the source endpoint of this trace. |
void |
setSource(ViewMember source)
Sets the source endpoint of this trace. |
void |
setStatus(Trace.Status status)
Set the status of the trace |
void |
setSuspect(boolean isSuspect)
Mark the trace as suspect |
void |
setTarget(LinkValue target)
Sets the target endpoint of this trace. |
void |
setTarget(ViewMember target)
Sets the target endpoint of this trace. |
void |
setTraceType(Trace.TraceType type)
Set the trace type of the trace |
Trace |
shareTo(View target)
Shares this trace to a new view. |
Trace |
smartShareTo(View target)
Shares or reverse-shares this trace to the given target view, as appropriate. |
java.lang.String |
toString()
Returns the description of this trace. |
void |
unpinSource()
Set the source end-point of this trace to float. |
void |
unpinTarget()
Set the target end-point of this trace to float. |
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 |
| Constructor Detail |
|---|
public Trace(View view)
view - The view to which this new trace will be added.| Method Detail |
|---|
public Trace.Type.PropertyCollection getProperties()
public Trace.TraceType getTraceType()
public void setTraceType(Trace.TraceType type)
type - the trace type to setpublic Trace.Status getStatus()
public void setStatus(Trace.Status status)
status - the status to setpublic LinkValue getSource()
public void setSource(LinkValue source)
source - The source endpoint of this trace.public void setSource(ViewMember source)
source - The source view member of this trace. May be from this server
or any other; the resulting source LinkValue will be an
internal link or an external link as appropriate.
java.lang.IllegalArgumentException - () if the source ViewMember is itself a Tracepublic void unpinSource()
public void pinSource()
public void unpinTarget()
public void pinTarget()
public LinkValue getTarget()
public void setTarget(LinkValue target)
target - The target endpoint of this trace.public void setTarget(ViewMember target)
target - The target view member of this trace. May be from this server
or any other; the resulting source LinkValue will be an
internal link or an external link as appropriate.
java.lang.IllegalArgumentException - () if the target ViewMember is itself a Tracepublic java.lang.String getDescription()
public boolean isSuspect()
public void setSuspect(boolean isSuspect)
isSuspect - the suspect flagpublic void setDescription(java.lang.String description)
description - The description of this trace.public View getView()
getView in class ViewMemberViewMember.isDisembodied()public boolean isReverseShareRecommended(View target)
target - The target view.
Trace.smartShareTo(com.starteam.View)public Trace smartShareTo(View target)
target - The target view.
Trace.isReverseShareRecommended(com.starteam.View)public Trace shareTo(View target)
target - The new view.
Trace.reverseShareTo(com.starteam.View)public Trace reverseShareTo(View target)
In its basic form, this is simply a move followed by a share. However, reverse share is permitted from a rolled-back view. This is supported by finding the corresponding trace in the tip view configuration, and reverse sharing that one.
When reverse sharing from a rolled back view, it is possible that the desired trace revision in the target is not the tip revision of the trace being shared. The reverse share operation compensates for this by moving the trace to the target, sharing it back to the source, and then rolling back the target by creating a new revision whose user-modifiable properties (and content, if applicable) match the desired revision.
Sharing replaces the original trace in the source view with a new share of the same underlying object. Since this is a new trace with a new VMID, it initially has no attached labels. The reverse share operation will attempt to apply the same labels to the corresponding revisions of the new trace. However, the label operations may be unsuccessful (for example, because of access rights, or because a label may be frozen). Any server exceptions that occur while re-applying labels to the new share are silently ignored, and will not cause the reverse share operation to fail.
target - The new view.
Trace.shareTo(com.starteam.View)public void update()
update in class ViewMemberpublic java.lang.String toString()
toString in class TypedResource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||