|
|||||||||
| 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.Label
public final class Label
Represents a named configuration of ViewMembers. Labels may be
applied to an entire View or to individual item versions.
| Nested Class Summary | |
|---|---|
static class |
Label.Scope
When applying a label to a folder, the scope of the operation |
static class |
Label.Type
The Type for Labels |
static class |
Label.WebCacheLabel
View accessor for cached SDK views contained objects are obtained from the artifact cache |
| 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 |
| Field Summary | |
|---|---|
static Label |
NEXT_BUILD
The value of this field is the "magic" value (-2) to provide for Item properties such as a ChangeRequest's "Addressed In" whose value represents a label. |
| Method Summary | |
|---|---|
void |
attachTo(Folder folder,
Label.Scope scope)
Attaches the label to the specified folder. |
void |
attachTo(ViewMember vm)
Associate a new viewMember with this label. |
void |
attachTo(ViewMemberCollection vmc)
Associate a set of viewMembers with this label. |
void |
attachTo(ViewMemberCollection vmc,
ViewConfiguration configuration)
Attach this label to the specified items as of the specified configuration. |
Label |
copy()
Creates a copy of this Label object. |
void |
detachFrom(Folder item,
Label.Scope scope)
Removes the label from the specified folder. |
void |
detachFrom(ViewMember vm)
Removes the label from the specified viewMember. |
void |
detachFrom(ViewMemberCollection vmc)
Detaches this label from a collection of items. |
boolean |
equals(java.lang.Object another)
Returns true if the other object is a Label and has the same id (from getID()) and the same server object otherwise returns false. |
java.lang.String |
getDebugString()
Returns a string containing various properties of this label. |
User |
getDeletedBy()
Return the User who deleted this Label. |
DateTime |
getDeletedTime()
Return the deleted time for this object. |
java.lang.String |
getDescription()
Returns the label's description. |
java.lang.String |
getDisplayName()
Gets a short string that can be used to refer to this label in an application's user interface. |
int |
getID()
Returns this label's unique integer identifier. |
ViewMemberCollection |
getLabeledItems(ViewMemberCollection vmc)
Determines which items from a given list have been labeled with this label in the current view. |
java.lang.String |
getName()
Return's the label's name. |
View |
getOwningView()
Returns the view that owns this label. |
Label.Type.PropertyCollection |
getProperties()
Returns the properties of the label type |
DateTime |
getRevisionTime()
Returns the label's revision time. |
Server |
getServer()
Returns the server instance for this label |
DateTime |
getTime()
Returns the label's primary rollback time. |
java.lang.Object |
getValue(Property property)
Return the value for the specified property. |
View |
getView()
Returns this label's View context. |
int |
hashCode()
Return a hash code for this object. |
boolean |
isBuildLabel()
Returns true if the label as being a StarTeam "Build" label. |
boolean |
isDeleted()
Returns true if this label has been deleted. |
boolean |
isEqualTo(Label label)
Compares two Label objects. |
boolean |
isLocked()
Return true if the label is locked or frozen. |
boolean |
isModified()
Returns true if this label has been modified but not yet saved. |
boolean |
isNew()
Returns true if the label has not been created on the server (using update()) |
boolean |
isRevisionLabel()
Returns true if the label is a revision label. |
boolean |
isViewLabel()
Returns true if the label is a view label. |
void |
moveItem(Item item)
Associates the label with a different version of an item. |
void |
moveItem(Item item,
int objectID,
DateTime revisionTime)
Associates the label with a different version of an item. |
void |
remove()
Removes (deletes) this label from the view. |
void |
setDescription(java.lang.String description)
Sets the label's description. |
void |
setLocked(boolean isLocked)
Set the label's locked state. |
void |
setName(java.lang.String name)
Sets the label's name. |
void |
setTime(DateTime time)
Sets the label's primary rollback time. |
java.lang.Object |
setValue(Property property,
java.lang.Object value)
Sets the value of the specified property and return the old value. |
java.lang.String |
toString()
Returns the name of the label. |
void |
update()
Stores all changes to a new or modified label to the StarTeam repository. |
| 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 |
| Field Detail |
|---|
public static final Label NEXT_BUILD
Label.isBuildLabel()| Method Detail |
|---|
public Label.Type.PropertyCollection getProperties()
public Server getServer()
getServer in class TypedResourcepublic Label copy()
public boolean isEqualTo(Label label)
label - The Label to be compared with this one.
Label.copy()public View getView()
View.fetchAllLabels(View)public int getID()
getID in class TypedResourcepublic View getOwningView()
View.fetchAllLabels(View)public boolean isModified()
Label.update()public boolean isNew()
isNew in class TypedResourceLabel.update()public java.lang.String getName()
public java.lang.String getDisplayName()
getDisplayName in class TypedResourcepublic void setName(java.lang.String name)
name - the new label namepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new label description.public boolean isBuildLabel()
public DateTime getTime()
public void setTime(DateTime time)
time - the rollback timepublic DateTime getRevisionTime()
public boolean isViewLabel()
Label.isRevisionLabel()public boolean isRevisionLabel()
public boolean isDeleted()
public boolean isLocked()
public void setLocked(boolean isLocked)
isLocked - true if the label is to be locked or frozen.public void attachTo(ViewMember vm)
vm - the viewMember to which the label is to be attachedpublic void attachTo(ViewMemberCollection vmc)
vmc - a collection of viewMembers to which the label will be
attached
public void attachTo(ViewMemberCollection vmc,
ViewConfiguration configuration)
vmc - the collection of items to which the label should be attachedconfiguration - the view configuration specifying what revision to attach to
(may not be null)public void detachFrom(ViewMemberCollection vmc)
vmc - the collection of items to which the label should be detached
(may not be null)
public void attachTo(Folder folder,
Label.Scope scope)
folder - the folder item to which the label is to be attached.scope - for folder items this is the scope of the label detachmentLabel.Scope.ITEM_ONLY,
Label.Scope.ITEM_AND_CONTENTS,
Label.Scope.ITEM_TREE
public void moveItem(Item item,
int objectID,
DateTime revisionTime)
item - the item to which the label is to be attachedobjectID - the object ID of the item being labeledrevisionTime - the time specifying to which revision the label should be
attachedTypedResource.getObjectID(),
TrackedObject.getModifiedTime()public void moveItem(Item item)
item - the item to which the label is to be attachedpublic void detachFrom(ViewMember vm)
vm - the viewMember from which the label is to be removed.
public void detachFrom(Folder item,
Label.Scope scope)
item - the folder item from which the label is to be removed.scope - for folder items this is the scope of the label detachmentLabel.Scope.ITEM_ONLY,
Label.Scope.ITEM_AND_CONTENTS,
Label.Scope.ITEM_TREEpublic ViewMemberCollection getLabeledItems(ViewMemberCollection vmc)
vmc - A collection of items.
public void update()
Label.setName(java.lang.String),
Label.setDescription(java.lang.String),
Label.setLocked(boolean)public java.lang.String getDebugString()
public java.lang.String toString()
toString in class TypedResourcepublic boolean equals(java.lang.Object another)
equals in class java.lang.Objectanother - the object being compared to
public int hashCode()
hashCode in class java.lang.Objectpublic void remove()
public DateTime getDeletedTime()
public User getDeletedBy()
public java.lang.Object getValue(Property property)
throws NoSuchPropertyException
getValue in class TypedResourceproperty - the name of property to be retrieved
NoSuchPropertyException - if the named property does not exist
public java.lang.Object setValue(Property property,
java.lang.Object value)
throws NoSuchPropertyException,
java.lang.ClassCastException
setValue in class TypedResourceproperty - the property to setvalue - the new value to set for the specified property
NoSuchPropertyException - if the named property does not exist
java.lang.ClassCastException - if the value is of the wrong type for the specified property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||