public class Trace extends ViewMember
Modifier and Type | Class and Description |
---|---|
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
|
ViewMember.LockType, ViewMember.MyLock, ViewMember.ShareState, ViewMember.WebCacheViewMember
VersionedObject.WebCacheVersionedObject
TrackedObject.WebCacheTrackedObject
LiveObject.WebCacheLiveObject
TypedResource.BranchState
Constructor and Description |
---|
Trace(View view)
Creates a new trace in the specified view.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Gets the description of this trace.
|
double |
getOrder()
Returns the order in which the trace should be executed.
|
Trace.Type.PropertyCollection |
getProperties()
Gets all the properties of the Trace Type
|
LinkValue |
getSource()
Gets the source endpoint of this trace.
|
java.lang.String |
getSourceVersions(Trace.Status statusValue)
Returns the suspect transition versions of the source endpoint
If a statusValue is not specified, the 'raw' value is returned.
|
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.
|
void |
remove()
Removes this trace from the view.
|
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 |
setOrder(double traceOrder)
Sets the order in which the trace should be executed.
|
void |
setSource(LinkValue source)
Sets the source endpoint of this trace.
|
void |
setSource(LiveObject source)
Sets the source endpoint of this trace.
|
void |
setSourceVersions(Trace.Status statusValue,
java.lang.String version)
Set a source version override for specific status value
|
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(LiveObject 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.
|
copy, equals, findLinks, getAllLabels, getAllShares, getAttachedLabels, getAttachments, getBehavior, getCache, getComment, getDeletedBy, getDeletedShares, getDeletedTime, getDisplayValue, getDotNotation, getExclusiveLocker, getExternalID, getExternalURL, getFromHistory, getFromHistory, getFromHistory, getFromHistory, getHistory, getID, getIntegerArrayValue, getLocker, getMyLockType, getParentContainer, getParentRevision, getPresentationID, getRights, getRootObjectID, getShare, getShare, getTraces, getValue, getViewMemberRevisions, getViewVersion, getVMID, hashCode, hasPermissions, isBookmarked, isBranchable, isDeleted, isDiscarded, isDisembodied, isEqualTo, isFloating, isPinned, isReadOnly, isRootShare, isUnread, lockExclusive, lockExclusive, lockNonExclusive, modifyBookmark, modifyReadStatus, putLock, remove, setAttachments, setBehavior, setBranchOnChange, setComment, setExternalID, setExternalURL, setFixedConfiguration, setFloatingConfiguration, setRights, setValue, toRESTUrl, unlock, update, updateRevisionComment
getBranchRevision, getRevisionNumber, getShortComment, getViewVersion, isFromHistory, setShortComment
getModifiedBy, getModifiedTime
getCreatedBy, getCreatedTime, toStarTeamURL
addToIntegerArray, getBooleanValue, getByteArrayValue, getCachedProperties, getContentValue, getDateTimeValue, getDateValue, getDisplayName, getDoubleValue, getEnumDisplayName, getEnumeratedValues, getIntegerValue, getLinkValue, getLongValue, getObjectID, getPossibleValues, getServer, getStringValue, getTimeSpanValue, getType, hasCachedProperties, hasValue, isDirty, isDirty, isNew, removeFromIntegerArray, setBooleanValue, setByteArrayValue, setContentValue, setDateTimeValue, setDateValue, setDoubleValue, setEnumeratedValue, setEnumeratedValues, setIntegerArrayValue, setIntegerValue, setLinkValue, setLongValue, setStringValue, setTimeSpanValue
getServer, getType
public Trace(View view)
view
- The view to which this new trace will be added.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 double getOrder()
Trace.Type.PropertyCollection.ORDER
public void setOrder(double traceOrder)
traceOrder
- the order in which the trace should be executed.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(LiveObject source)
source
- The source liveobject 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.public 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(LiveObject target)
target
- The target liveobject 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.public java.lang.String getDescription()
public boolean isSuspect()
public void setSuspect(boolean isSuspect)
isSuspect
- the suspect flagpublic java.lang.String getSourceVersions(Trace.Status statusValue)
statusValue
- a specific Trace Status to look forpublic void setSourceVersions(Trace.Status statusValue, java.lang.String version)
statusValue
- the status value to overrideversion
- the new dot notationpublic void setDescription(java.lang.String description)
description
- The description of this trace.public View getView()
getView
in class ViewMember
ViewMember.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 ViewMember
public void remove()
remove
in class ViewMember
public java.lang.String toString()
toString
in class TypedResource
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.