public static class Trace.WebCacheTrace extends ViewMember.WebCacheViewMember
Modifier and Type | Method and Description |
---|---|
static Trace.WebCacheTrace |
create(ArtifactCacheManager.Context cntxt,
View.WebCacheView parent)
Creates a
Trace on the server. |
java.lang.String |
getDescription()
Gets the description of this trace.
|
double |
getOrder()
Returns the order in which the trace should be executed.
|
ViewMember.WebCacheViewMember |
getSource()
Gets the source endpoint of this trace or NULL if the endpoint
viewmember is not cached in this ArtifactCache
|
Change.WebCacheChange |
getSourceChange()
Gets the source endpoint of this trace or NULL *
|
LinkValue.WebCacheLinkValue |
getSourceLink()
Gets the source endpoint of this trace.
|
ViewMember.WebCacheViewMember |
getSourceTip()
Gets the tip revision of the source endpoint of this trace
or NULL if the endpoint viewmember is not cached in this ArtifactCache
|
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.
|
ViewMember.WebCacheViewMember |
getTarget()
Gets the target endpoint of this trace or NULL if the endpoint
viewmember is not cached in this ArtifactCache
|
Change.WebCacheChange |
getTargetChange()
Gets the target endpoint of this trace or NULL *
|
LinkValue.WebCacheLinkValue |
getTargetLink()
Gets the target endpoint of this trace.
|
ViewMember.WebCacheViewMember |
getTargetTip()
Gets the tip revision of the target endpoint of this trace
or NULL if the endpoint viewmember is not cached in this ArtifactCache
|
Trace.TraceType |
getTraceType()
Gets the TraceType of this Trace.
|
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 |
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.WebCacheLinkValue source)
Sets the source endpoint of this trace.
|
void |
setSource(LiveObject.WebCacheLiveObject 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.WebCacheLinkValue target)
Sets the target endpoint of this trace.
|
void |
setTarget(LiveObject.WebCacheLiveObject target)
Sets the target endpoint of this trace.
|
void |
setTraceType(Trace.TraceType type)
Set the trace type of the 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.
|
getAttachments, getComment, getDeletedBy, getDeletedTime, getDisplayValue, getDotNotation, getExternalID, getExternalURL, getHistory, getLabels, getLinks, getLocker, getPresentationID, getRights, getShareTree, getTracedResources, getTraces, getView, getViewMemberRevisions, isBookmarked, isDeleted, isFloating, isPinned, isUnread, lock, lock, modifyBookmark, modifyReadStatus, pinTo, setAttachments, setComment, setExternalID, setExternalURL, setRights, toRESTUrl, unlock, unpin, updateRevisionComment
getRevisionNumber, getRootObjectID, getShortComment, getViewVersion, isFromHistory, setShortComment
getModifiedBy, getModifiedTime
addTo, equals, getContext, getCreatedBy, getCreatedTime, getDisplayName, getID, getName, getNameProperty, getObjectID, getServer, getType, getValue, getValue, hashCode, hasValue, isDirty, isNew, refresh, remove, removeFrom, setValue, setValue, toStarTeamURL, update
public static Trace.WebCacheTrace create(ArtifactCacheManager.Context cntxt, View.WebCacheView parent)
Trace
on the server. This trace may be
saved by assigning the various properties and then calling update()
on the WebCacheTrace object, or it may be added to a
WebCacheViewMemberCollection, which is then saved in a transacted
context.cntxt
- the ArtifactCacheManager User Session Contextparent
- the parent view in which this new trace will be created.
The parent view should be from the artifact cacheTrace.WebCacheTrace
, wrapping a new
Trace
public ViewMember.WebCacheViewMember getSourceTip()
public ViewMember.WebCacheViewMember getSource()
public Change.WebCacheChange getSourceChange()
public LinkValue.WebCacheLinkValue getSourceLink()
public void setSource(LiveObject.WebCacheLiveObject 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.java.lang.IllegalArgumentException
- () if the source ViewMember is itself a Tracepublic void setSource(LinkValue.WebCacheLinkValue source)
source
- The source linkvalue of this trace. May be from this
server or any other; or may be a URL. the resulting source
LinkValue will be an internal or external link as
appropriate.java.lang.IllegalArgumentException
- () if the source is nullpublic ViewMember.WebCacheViewMember getTargetTip()
public ViewMember.WebCacheViewMember getTarget()
public Change.WebCacheChange getTargetChange()
public LinkValue.WebCacheLinkValue getTargetLink()
public void setTarget(LiveObject.WebCacheLiveObject 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.java.lang.IllegalArgumentException
- () if the target ViewMember is itself a Tracepublic void setTarget(LinkValue.WebCacheLinkValue target)
target
- The target linkvalue of this trace. May be from this
server or any other; or may be a URL. the resulting source
LinkValue will be an internal or external link as
appropriate.java.lang.IllegalArgumentException
- () if the source is nullpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description of this trace.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 Trace.TraceType getTraceType()
public void setTraceType(Trace.TraceType type)
type
- the trace type to setpublic double getOrder()
Trace.Type.PropertyCollection.ORDER
public void setOrder(double traceOrder)
traceOrder
- the order in which the trace should be executed.public Trace.Status getStatus()
public void setStatus(Trace.Status status)
status
- the status to setpublic void unpinSource()
public void pinSource()
public void unpinTarget()
public void pinTarget()
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.