public final class Share extends TrackedObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Share.Type
Type for share
|
static class |
Share.WebCacheShare
Base accessor for cached SDK Shares
|
TrackedObject.WebCacheTrackedObjectLiveObject.WebCacheLiveObjectTypedResource.BranchState| Modifier and Type | Method and Description |
|---|---|
Label[] |
getAttachedLabels(ViewMember.Type typ)
Return the labels attached to this share, if any
|
Share[] |
getChildShares()
Returns an array of Shares that are direct children of this Share, or an
empty array if there are none.
|
User |
getCreatedBy()
Returns the User who created this item, only available on server versions
5.2 and higher.
|
DateTime |
getCreatedTime()
Returns the CreatedTime for this item, only available on server versions
5.2 and higher.
|
User |
getDeletedBy()
Returns the User who deleted this item, only available on server versions
5.2 and higher.
|
DateTime |
getDeletedTime()
Returns the DeletedTime of this item, only available on server versions
5.2 and higher.
|
int |
getDerivedCount()
Returns the number of shares directly derived from this item.
|
DotNotation |
getDotNotation()
Returns the revision number in dot notation form.
|
DateTime |
getEndModifiedTime()
Returns the EndModifiedTime of this item, only available on server
versions 5.2 and higher.
|
int |
getFolderItemID()
Returns the Item ID of the referenced Item's parent Folder.
|
java.lang.String |
getFolderPath()
Returns the folder path of the referenced Item's parent Folder.
|
ViewMemberCollection |
getHistory(ViewMember.Type typ) |
int |
getID()
throws UnsupportedOperationException()
|
User |
getModifiedBy()
Returns the User who last modified this item, only available on server
versions 5.2 and higher.
|
DateTime |
getModifiedTime()
Returns the ModifiedTime of this item, only available on server versions
5.2 and higher.
|
int |
getObjectID()
Returns the item's object ID.
|
Share |
getParentShare()
Returns the parent of this Share, or null if this is the root of the
share tree.
|
Project |
getProject()
Returns the project that contains this reference.
|
java.lang.String |
getProjectName()
Returns the containing Project's name.
|
Share.Type.PropertyCollection |
getProperties()
Get all the properties of the share
|
View |
getView()
Returns the View for this share.
|
java.lang.String |
getViewPath()
Returns the View path (in this format: "parent\child\grandchild...").
|
int |
getVMID()
Returns the shared ViewMember's VMID.
|
boolean |
isDeleted()
Returns true if the Item has been deleted.
|
boolean |
isFirstOfItsBranch()
Determines whether or not this share is the first share of its branch.
|
boolean |
isRelated()
Returns true if this item contains the revision queried by
Item.getReferences() in its history.
|
boolean |
isViewDeleted()
Returns true if the item's View has been deleted.
|
java.lang.String |
toString()
Returns the ID of this Share.
|
toStarTeamURLaddToIntegerArray, getBooleanValue, getByteArrayValue, getCachedProperties, getContentValue, getDateTimeValue, getDateValue, getDisplayName, getDoubleValue, getEnumDisplayName, getEnumeratedValues, getIntegerArrayValue, getIntegerValue, getLinkValue, getLongValue, getPossibleValues, getServer, getStringValue, getTimeSpanValue, getType, getValue, hasCachedProperties, hasValue, isDirty, isDirty, isNew, removeFromIntegerArray, setBooleanValue, setByteArrayValue, setContentValue, setDateTimeValue, setDateValue, setDoubleValue, setEnumeratedValue, setEnumeratedValues, setIntegerArrayValue, setIntegerValue, setLinkValue, setLongValue, setStringValue, setTimeSpanValue, setValuepublic Share.Type.PropertyCollection getProperties()
public int getID()
getID in class TypedResourcepublic int getFolderItemID()
public java.lang.String getFolderPath()
public boolean isViewDeleted()
public boolean isDeleted()
public boolean isRelated()
public java.lang.String getViewPath()
public Project getProject()
public int getDerivedCount()
public int getObjectID()
getObjectID in class TypedResourcepublic java.lang.String getProjectName()
public DotNotation getDotNotation()
public int getVMID()
public View getView()
public java.lang.String toString()
toString in class TypedResourcepublic DateTime getCreatedTime()
getCreatedTime in class LiveObjectpublic User getCreatedBy()
getCreatedBy in class LiveObjectpublic DateTime getModifiedTime()
getModifiedTime in class TrackedObjectpublic DateTime getEndModifiedTime()
public User getModifiedBy()
getModifiedBy in class TrackedObjectpublic DateTime getDeletedTime()
public User getDeletedBy()
public Share getParentShare()
public Share[] getChildShares()
public boolean isFirstOfItsBranch()
public Label[] getAttachedLabels(ViewMember.Type typ)
typ - the type of the item referenced by the sharepublic ViewMemberCollection getHistory(ViewMember.Type typ)
StarTeam SDK 17.0, Build 34
Copyright © 2019 Micro Focus or one of its affiliates. All rights reserved.