public class TreeItem extends Item
| Modifier and Type | Class and Description |
|---|---|
static class |
TreeItem.MoSCoW
The MoSCoW value for a compliant TreeItem Type
|
static class |
TreeItem.Type
The type of the
TreeItem |
static class |
TreeItem.WebCacheTreeItem
TreeItem accessor for cached SDK Items contained objects are obtained
from the artifact cache
|
Item.WebCacheItemViewMember.LockType, ViewMember.MyLock, ViewMember.ShareState, ViewMember.WebCacheViewMemberVersionedObject.WebCacheVersionedObjectTrackedObject.WebCacheTrackedObjectLiveObject.WebCacheLiveObjectTypedResource.BranchState| Modifier and Type | Method and Description |
|---|---|
TreeItem |
createChild()
Creates a new child item.
|
TreeItem[] |
getChildren()
Returns the tree items that are children of this one.
|
DoubleProperty |
getOrderProperty()
Returns a DoubleProperty used for ordering tree item instances Any
TreeItem Type that intends to have the children of a particular parent
ordered using a default numeric scheme must provide a double property to
store the implicit order.
|
TreeItem |
getParent()
Returns the TreeItem which is the Parent of this instance, or NULL if
this is a root
|
int |
getParentID()
Gets the ObjectID of this item's parent.
|
boolean |
hasChildren()
Returns true if the TreeItem has at least one child.
|
boolean |
isEqualTo(TreeItem item)
Compares two Items.
|
boolean |
isLeaf()
Returns true if this tree item is a leaf
By definition, a tree item is a leaf if it has no children
|
void |
moveTo(Folder toFolder)
Moves this item to the specified folder.
|
void |
moveTo(TreeItem parent)
Moves this item to the specified parent.
|
void |
moveTo(TreeItem parent,
ConnectionPool cp,
User u)
Move this Item to the target parent.
|
void |
remove()
Removes this item from its current folder.
|
void |
setAfter(TreeItem prev)
place this tree item after prev this and prev must both be children of a
common parent
|
void |
setBefore(TreeItem next)
place this tree item before next this and next must both be children of a
common parent
|
void |
setBetween(TreeItem prev,
TreeItem next)
place this tree item in between prev and next.
|
void |
setFirst()
place this tree item at the head of the set of all children of its parent
|
void |
setLast()
place this tree item at the end of the set of all children of its parent
|
Item |
shareTo(Folder toFolder)
Shares this item to a new folder.
|
Item |
smartShareTo(Folder target)
Shares or reverse-shares this tree item to the given target folder, as
appropriate.
|
void |
update()
Stores the underlying entity in the server.
|
addNotifiedUser, copy, deleteMergePoint, getCommonAncestor, getDebugString, getDisplayableProperties, getItemID, getMergeHistory, getNewRevisionComment, getNotifiedUsers, getParentContainer, getParentFolder, getParentFolderHierarchy, getParentFolderName, getParentFolderPath, getParentFolderQualifiedName, getSharedChangePackages, getSharedTraces, isEqualTo, isReverseShareRecommended, moveTo, recordMergePoint, removeNotifiedUser, resolve, resolveMergePoint, resolveMergePointEx, reverseShareTo, reverseShareTo, toStringequals, 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, getParentRevision, getPresentationID, getRights, getRootObjectID, getShare, getShare, getTraces, getValue, getView, 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, updateRevisionCommentgetBranchRevision, getRevisionNumber, getShortComment, getViewVersion, isFromHistory, setShortCommentgetModifiedBy, getModifiedTimegetCreatedBy, getCreatedTime, toStarTeamURLaddToIntegerArray, 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, setTimeSpanValuegetServer, getTypepublic TreeItem createChild()
DisembodiedException - If this is a disembodied item.public boolean isEqualTo(TreeItem item)
item - The Item to be compared to this one.Item.copy()public int getParentID()
public TreeItem getParent()
public void update()
update in class ViewMemberpublic void moveTo(Folder toFolder)
moveTo in class ItemtoFolder - The new folder to which this item is to be moved.DisembodiedException - if the Item is disembodiedViewMember.isDisembodied()public void moveTo(TreeItem parent, ConnectionPool cp, User u)
parent - the parent treeitem to move tocp - the connection poolu - the user in whose context the move occurs#ConnectionPoolpublic void moveTo(TreeItem parent)
parent - The new parent to which this item is to be moved.DisembodiedException - if the Item is disembodiedViewMember.isDisembodied()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.
shareTo in class ItemtoFolder - 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 smartShareTo(Folder target)
smartShareTo in class Itemtarget - The target folder.Item.isReverseShareRecommended(com.starteam.Folder)public void remove()
public boolean isLeaf()
public TreeItem[] getChildren()
DisembodiedException - if the Tree Item is disembodiedViewMember.isDisembodied()public boolean hasChildren()
DisembodiedException - if the Tree Item is disembodiedViewMember.isDisembodied()public DoubleProperty getOrderProperty()
public void setBetween(TreeItem prev, TreeItem next)
prev - the tree item to precede this onenext - the tree item to succeed this onepublic void setAfter(TreeItem prev)
prev - the tree item to precede this onepublic void setBefore(TreeItem next)
next - the tree item to succeed this onepublic void setLast()
public void setFirst()
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.