|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.Link
public final class Link
Represents an association between two view members. From StarTeam Server 11.0 onwards, application should use Traces to create associations between view members.
Trace| Nested Class Summary | |
|---|---|
static class |
Link.Endpoint
Represents a link reference to a viewMember. |
| Constructor Summary | |
|---|---|
Link(ViewMember parent,
int parentRevision,
ViewMember child,
int childRevision)
Creates a new link object. |
|
Link(ViewMember parent,
ViewMember child)
Creates a new link object. |
|
| Method Summary | |
|---|---|
Link |
copy()
Copies this link, creating a new one with the same content. |
void |
delete()
Terminates the association of the linked items. |
Link.Endpoint |
getChildEndpoint()
Returns a reference to the "child" viewMember in this link. |
java.lang.String |
getComment()
Returns the comment associated with this link. |
User |
getCreatedBy()
Returns the User object who created this link. |
DateTime |
getCreatedTime()
Returns the time at which this link was created. |
java.lang.String |
getDebugString()
Returns the debug string associated this link |
ViewMember |
getDisembodiedChild()
Resolves the child endpoint of this link. |
ViewMember |
getDisembodiedParent()
Resolves the parent endpoint of this link. |
int |
getID()
Returns an integer that identifies this link. |
Link.Endpoint |
getParentEndpoint()
Returns a reference to the "parent" viewMember in this link. |
int |
getParentFolderItemID()
Returns the ItemID of the linked item's parent folder if the item is in the current view, otherwise -1. |
Server |
getServer()
Returns the server object to which the parent endpoint of this link belongs. |
View |
getView()
Returns the view to which the parent endpoint of this link belongs. |
boolean |
isEqualTo(Link other)
Determines whether or not the contents of two links are the same. |
void |
pinChild(ViewMember newChild)
Pin the child endpoint of the link. |
void |
pinParent(ViewMember newParent)
Pin the parent endpoint of the link. |
ViewMember |
resolveChild()
Gets a fully resolved version of the child viewMember. |
ViewMember |
resolveParent()
Gets a fully resolved version of the parent viewMember. |
void |
setComment(java.lang.String comment)
Sets the comment associated with this link |
void |
unpinChild()
Unpin the child endpoint of the link. |
void |
unpinParent()
Unpin the parent endpoint of the link. |
void |
update()
Persists the link. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Link(ViewMember parent,
int parentRevision,
ViewMember child,
int childRevision)
parent - The parent end of the link.parentRevision - The revision number of the first revision in the parent item's
history for which this link is visible. If the value is -1,
defaults to the first revision in the parent item's branch.child - The child end of the link.childRevision - The revision number of the first revision in the child item's
history for which this link is visible. If the value is -1,
defaults to the first revision in the child item's branch.
public Link(ViewMember parent,
ViewMember child)
parent - The parent end of the link. The link becomes visible at the first revision of this item's branch.child - The child end of the link. The link becomes visible at the first revision of this item's branch.| Method Detail |
|---|
public Link.Endpoint getParentEndpoint()
public Link.Endpoint getChildEndpoint()
public int getID()
public int getParentFolderItemID()
public DateTime getCreatedTime()
public User getCreatedBy()
User object who created this link.
User object who who created this link.public View getView()
public Server getServer()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - the comment associated with this linkpublic ViewMember getDisembodiedParent()
Link.getChildEndpoint(),
View.getDisembodiedViewMember(com.starteam.ViewMember.Type, int),
ViewMember.isDisembodied()public ViewMember getDisembodiedChild()
Link.getParentEndpoint(),
View.getDisembodiedViewMember(com.starteam.ViewMember.Type, int),
ViewMember.isDisembodied()public ViewMember resolveParent()
public ViewMember resolveChild()
public boolean isEqualTo(Link other)
other - The link to be compared to this one.
public void pinParent(ViewMember newParent)
newParent - the ViewMember to which this endpoint should be pinned. Note
that this item must lie in the history path of the original
item for the endpoint, and cannot be an earlier revision than
the earliest revision for the endpoint.public void unpinParent()
public void pinChild(ViewMember newChild)
newChild - the ViewMember to which this endpoint should be pinned. Note
that this item must lie in the history path of the original
item for the endpoint, and cannot be an earlier revision than
the earliest revision for the endpoint.public void unpinChild()
public void delete()
public Link copy()
public void update()
public java.lang.String getDebugString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||