|
|||||||||
| 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.PromotionModel
public final class PromotionModel
This class represents the Promotion model for a view. Each view has a single promotion model. The PromotionModel class primarily acts as the owner of an ordered list of PromotionStates.
PromotionState| Nested Class Summary | |
|---|---|
static class |
PromotionModel.Type
The Type of Promotion Model |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Method Summary | |
|---|---|
PromotionState |
findPromotionState(int ID)
Find a Promotion State with this ID |
PromotionState |
findPromotionState(java.lang.String name)
find a Promotion State by Name. |
User |
getCreatedBy()
Returns the User who created this PromotionModel. |
DateTime |
getCreatedOn()
Returns the time at which the PromotionModel was created. |
java.lang.String |
getDebugString()
Return a debug string for this model. |
java.lang.String |
getDescription()
Returns the description of the PromotionModel. |
int |
getID()
Return the object ID for the PromotionModel. |
java.lang.String |
getName()
Returns the name of the PromotionModel. |
int |
getObjectID()
Return the object ID for the PromotionModel. |
PromotionState[] |
getPromotionStates()
Returns an array of PromotionStates for this model. |
PromotionModel.Type.PropertyCollection |
getProperties()
Gets the PropertyCollection for this Promotion Model. |
View |
getView()
Returns the View that owns this PromotionModel. |
void |
setDescription(java.lang.String description)
Sets the description of the PromotionModel. |
void |
setName(java.lang.String name)
Sets the name of the PromotionModel. |
void |
setPromotionStates(PromotionState[] states)
Changes the list of PromotionStates for this model. |
java.lang.String |
toString()
Returns the name of this promotion model. |
void |
update()
Stores the modified PromotionModel in the repository. |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public PromotionModel.Type.PropertyCollection getProperties()
public View getView()
public int getObjectID()
getObjectID in class TypedResourcepublic int getID()
getID in class TypedResourcegetObjectID.public java.lang.String getName()
public void setName(java.lang.String name)
name - the new name for this promotion modelpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new description for this modelpublic DateTime getCreatedOn()
public User getCreatedBy()
User who created this PromotionModel.
getCreatedBy in class LiveObjectUser who created this Promotion modelpublic PromotionState[] getPromotionStates()
PromotionModel.setPromotionStates(com.starteam.PromotionState[])public PromotionState findPromotionState(int ID)
ID - the ID of the Promotion State
public PromotionState findPromotionState(java.lang.String name)
name - the name of the promotion state
public void setPromotionStates(PromotionState[] states)
states - the new array of promotion statesPromotionModel.getPromotionStates()public void update()
public java.lang.String getDebugString()
public java.lang.String toString()
toString in class TypedResource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||