|
|||||||||
| 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.PromotionState
public final class PromotionState
This class represents a promotion state associated with a promotion model. This class has no update() method so to save new or modified promotion states you must use PromotionModel.update()
PromotionModel| Nested Class Summary | |
|---|---|
static class |
PromotionState.Type
The Type of Promotion State |
| Nested classes/interfaces inherited from class com.starteam.LiveObject |
|---|
LiveObject.WebCacheLiveObject |
| Nested classes/interfaces inherited from class com.starteam.TypedResource |
|---|
TypedResource.BranchState |
| Constructor Summary | |
|---|---|
PromotionState(PromotionModel model)
Create a new PromotionState for the specified model. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object another)
Returns true if the specified Object identifies the same
exact Project. |
User |
getCreatedBy()
Returns the User object that created the state. |
DateTime |
getCreatedOn()
Returns the time at which the state was created. |
User |
getDeletedBy()
Returns the user who deleted the state. |
DateTime |
getDeletedOn()
Returns the time at which the state was deleted. |
java.lang.String |
getDescription()
Returns the description of the PromotionState. |
int |
getID()
Returns the object ID for the PromotionState. |
Label |
getLabel()
Returns the Label that defines this PromotionState. |
java.lang.String |
getName()
Returns the name of the PromotionState. |
int |
getObjectID()
Returns the object ID for the PromotionState. |
ISecurableContainer |
getParentContainer()
If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container. |
PromotionModel |
getPromotionModel()
Returns the "owning" PromotionModel object for this PromotionState. |
PromotionState.Type.PropertyCollection |
getProperties()
Gets the PropertyCollection for this Promotion State. |
ACE[] |
getRights()
Returns the Access Control List for this object. |
int |
hashCode()
Returns a hash code for this PromotionState. |
boolean |
hasPermissions(PermissionCollection permissions)
Returns true if desired permissions are granted |
boolean |
isDeleted()
determines whether this PromotionState instance has been deleted |
void |
setDescription(java.lang.String description)
Sets the description of the PromotionState. |
void |
setLabel(Label label)
Sets the Label that defines this PromotionState. |
void |
setName(java.lang.String name)
Sets the name of the PromotionState. |
void |
setRights(ACE[] acl)
Modify the Access Control List for this object. |
java.lang.String |
toString()
Returns the name of this promotion state. |
| Methods inherited from class com.starteam.LiveObject |
|---|
getCreatedTime, toStarTeamURL |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.starteam.ISecurable |
|---|
getServer, getType |
| Constructor Detail |
|---|
public PromotionState(PromotionModel model)
model - the owning PromotionModel| Method Detail |
|---|
public PromotionState.Type.PropertyCollection getProperties()
public PromotionModel getPromotionModel()
public int getObjectID()
getObjectID in class TypedResourcepublic int getID()
getID in interface ISecurablegetID in class TypedResourcegetObjectID.public boolean equals(java.lang.Object another)
Object identifies the same
exact Project.
equals in class java.lang.Objectanother - the object to be compared with
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the new name for this promotion state.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new description for this statepublic Label getLabel()
public void setLabel(Label label)
label - the label to associate with this statepublic DateTime getCreatedOn()
public User getCreatedBy()
User object that created the state.
getCreatedBy in class LiveObjectUser object that created the state.public DateTime getDeletedOn()
public User getDeletedBy()
public boolean isDeleted()
isDeleted in interface ISecurablepublic ACE[] getRights()
getRights in interface ISecurableACEpublic void setRights(ACE[] acl)
setRights in interface ISecurableacl - the new access control list or null if to be dropped.ACEpublic ISecurableContainer getParentContainer()
getParentContainer in interface ISecurableISecurableContainerpublic boolean hasPermissions(PermissionCollection permissions)
hasPermissions in interface ISecurablepermissions - the desired permissions
Permissionpublic java.lang.String toString()
toString in class TypedResource
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||