|
|||||||||
| 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.Item
public class Item
Contextual reference to an object in a StarTeam repository. Items provide transparent access to the underlying entity (e.g., modifying the description of an item by calling Item.put("Description", "some text") actually modifies the Description property of the underlying entity the Item references. An Item consists of the underlying entity and its context within a view. Therefore, an Item has direct knowledge of the items to which it is related. Items also maintain state information to determine if the underlying object is new or modified relative to instances of the object stored in the repository. An Item also has a temporal aspect in that it represents a single development path (linear history) of the underlying object as of a moment in time.
| Nested Class Summary | |
|---|---|
static class |
Item.Type
The Type of Items. |
static class |
Item.WebCacheItem
Item accessor for cached SDK Items 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 |
| Method Summary | |
|---|---|
ViewMember |
copy()
Creates a copy of the Item and all of its properties. |
void |
deleteMergePoint(MergePoint mergePoint)
Deletes the specified merge point for this item. |
Item |
getCommonAncestor(Item other)
Gets the most recent common ancestor between this item and the given item. |
java.lang.String |
getDebugString()
Returns a String that is potentially useful while debugging. |
PropertyCollection |
getDisplayableProperties()
return the set of properties that may be displayed in the context of an ALM editor If a layout is available, return the properties described in the layout xml, otherwise, return a default set of properties for the type The returned set may be empty, but is never null. |
int |
getItemID()
Returns an identifier representing this item, that is, the underlying entity represented by this item in this specific context. |
MergePoint[] |
getMergeHistory()
Returns the merge points for this item. |
java.lang.String |
getNewRevisionComment()
Returns the empty string. |
ISecurableContainer |
getParentContainer()
If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container. |
Folder |
getParentFolder()
Returns the folder in which this item exists. |
java.lang.String |
getParentFolderHierarchy()
Gets the fully-qualified name of this item's parent folder. |
java.lang.String |
getParentFolderName()
Returns the name of the item's parent folder. |
java.lang.String |
getParentFolderPath()
Returns the working directory path for the item's parent folder. |
java.lang.String |
getParentFolderQualifiedName()
Gets the fully-qualified name of this item's parent folder. |
ChangePackageCollection |
getSharedChangePackages(View[] targets)
Returns the set of change packages visible across the specified target views across the share tree of this item, as resolved to those target views The goal is to match old style server wide link visibility rules, constrained, however, by the fact that ChangePackages are view members. |
TraceCollection |
getSharedTraces(View[] targets)
Returns the set of traces visible across the specified target views across the share tree of this item, as resolved to those target views The goal is to match old style server wide link visibility rules, constrained, however, by the fact that Traces are view members. |
boolean |
isEqualTo(Item item)
Compares two Items. |
boolean |
isReverseShareRecommended(Folder target)
Determines whether share or reverse-share is the more appropriate operation when sharing this item to the given target folder. |
void |
moveTo(Folder toFolder)
Moves this item to the specified folder. |
MergePoint |
recordMergePoint(Item source)
Records the merge point used to create this revision of the item with respect to the specified source item. |
void |
remove()
Removes this item from its current folder. |
Item |
resolve()
Gets a full-resolved version of this item. |
MergePoint |
resolveMergePoint(Item source)
Returns the merge point used to create this revision of the item with respect to the specified source item. |
MergePoint |
resolveMergePointEx(Item source)
Returns the real or simulated (change) merge point used to create this revision of the item with respect to the specified source item. |
Item |
reverseShareTo(Folder toFolder)
Transfers ownership of the root share of an item to a new view or folder, sharing a copy back to the original location. |
Item |
reverseShareTo(Folder toFolder,
View fromView)
A variation of reverseShareTo() that is preferred in the case where many items may be shared from a rolled-back view configuration. |
Item |
shareTo(Folder toFolder)
Shares this item to a new folder. |
Item |
smartShareTo(Folder target)
Shares or reverse-shares this item to the given target folder, as appropriate. |
java.lang.String |
toString()
Returns a string representation of this object. |
| 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 |
| Method Detail |
|---|
public ViewMember copy()
copy in class ViewMemberItem.isEqualTo(com.starteam.Item)public boolean isEqualTo(Item item)
item - The Item to be compared to this one.
Item.copy()public Folder getParentFolder()
DisembodiedException - if the Item is disembodiedViewMember.isDisembodied()public void moveTo(Folder toFolder)
toFolder - the new folder to which this item is to be moved.
DisembodiedException - if the Item is disembodiedViewMember.isDisembodied()public boolean isReverseShareRecommended(Folder target)
target - The target folder.
Item.smartShareTo(com.starteam.Folder)public Item smartShareTo(Folder target)
target - The target folder.
Item.isReverseShareRecommended(com.starteam.Folder)public Item shareTo(Folder toFolder)
If this is a deleted item, shareTo() will create a new item with the same properties, but in the state it was in prior to being deleted. This provides a way to recover content from the recycle bin.
toFolder - The new parent folder.
DisembodiedException - if the Folder is disembodied.ViewMember.isDisembodied(),
Item.moveTo(com.starteam.Folder),
Item.reverseShareTo(com.starteam.Folder),
ViewMember.isDeleted(),
RecycleBinpublic Item reverseShareTo(Folder toFolder)
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 item in the tip view configuration, and reverse sharing that one.
When reverse sharing from a rolled back view, it is possible that the desired item revision in the target is not the tip revision of the item being shared. The reverse share operation compensates for this by moving the item 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 item in the source view with a new share of the same underlying object. Since this is a new item with a new item ID, it initially has no attached labels. The reverse share operation will attempt to apply the same labels to the corresponding revisions of the new item. 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.
toFolder - The new parent folder.
DisembodiedException - if either this item or the Folder is disembodied.ViewMember.isDisembodied(),
Item.moveTo(com.starteam.Folder),
Item.shareTo(com.starteam.Folder),
Item.reverseShareTo(Folder,View)
public Item reverseShareTo(Folder toFolder,
View fromView)
Such shares can be expensive, due to the cost of opening the tip configuration of the view, and resolving the shared item in the tip. This cost can be minimized over multiple reverse share operations by opening the tip configuration once in the client application, and re-using it for each share.
toFolder - The new parent folder.fromView - The tip configuration of the view in which this item resides.
DisembodiedException - if either this item or the Folder is disembodied.ViewMember.isDisembodied(),
Item.moveTo(com.starteam.Folder),
Item.shareTo(com.starteam.Folder),
Item.reverseShareTo(Folder)public void remove()
remove in class ViewMemberpublic int getItemID()
ViewMember.getVMID()public java.lang.String toString()
toString in class TypedResourcepublic PropertyCollection getDisplayableProperties()
public java.lang.String getDebugString()
String that is potentially useful while debugging.
public MergePoint resolveMergePoint(Item source)
source - the source Item that was the "merge" origin of the revision
specified by this item.
public MergePoint resolveMergePointEx(Item source)
source - the source Item that was the "merge" origin of the revision
specified by this item.
public MergePoint recordMergePoint(Item source)
source - the source Item that is to be the "merge" origin of the
revision specified by this item.
public void deleteMergePoint(MergePoint mergePoint)
mergePoint - the merge point to be deletedpublic MergePoint[] getMergeHistory()
public java.lang.String getParentFolderName()
Item.getParentFolder(),
Folder.getName()public java.lang.String getParentFolderPath()
Item.getParentFolder(),
Folder.getPath()public java.lang.String getParentFolderHierarchy()
Item.getParentFolder(),
Folder.getFolderHierarchy(),
ClientContext.getFilePathDelimiter()public java.lang.String getParentFolderQualifiedName()
Item.getParentFolder(),
Folder.getQualifiedName(),
Item.getParentFolderHierarchy()public java.lang.String getNewRevisionComment()
public Item getCommonAncestor(Item other)
other - The item to be compared with this one.
ViewMember.isBranchable()public TraceCollection getSharedTraces(View[] targets)
targets - the set of views from which traces are requested
specify project.getAccessibleViews() for all views
Project.getAccessibleViews(),
View.getTraces()public ChangePackageCollection getSharedChangePackages(View[] targets)
targets - the set of views from which ChangePackages are requested
specify project.getAccessibleViews() for all views
Project.getAccessibleViews(),
View.getTraces()public ISecurableContainer getParentContainer()
getParentContainer in interface ISecurablegetParentContainer in class ViewMemberISecurableContainerpublic Item resolve()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||