|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.starteam.CacheRef
|
+--com.starbase.starteam.NamedCacheRef
|
+--com.starbase.starteam.TypedResource
|
+--com.starbase.starteam.SimpleTypedResource
|
+--com.starbase.starteam.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| Constructor Summary | |
PromotionState(PromotionModel model)
Create a new PromotionState for the specified model. |
|
| Method Summary | |
void |
acquireOwnership()
Sets ownership of this securable object to the logged in user. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
AclEntry[] |
getACL()
Returns the Access Control List for this object. |
int |
getCreatedBy()
Returns the user ID that created the state. |
OLEDate |
getCreatedOn()
Returns the time at which the state was created. |
int |
getDeletedBy()
Returns the user ID that deleted the state. |
OLEDate |
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. |
int |
getLabelID()
Returns the Label ID that defines this PromotionState. |
java.lang.String |
getName()
Returns the name of the PromotionState. |
int |
getObjectID()
Returns the object ID for the PromotionState. |
int |
getOwner()
If there are no access rights explicitly assigned to this object, then the effective access rights come from a parent container. |
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. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
hasPermission(int permissions)
Returns true if desired permissions are granted |
void |
setACL(AclEntry[] acl)
Modify the Access Control List for this object. |
void |
setDescription(java.lang.String description)
Sets the description of the PromotionState. |
void |
setLabelID(int labelID)
Sets the Label ID that defines this PromotionState. |
void |
setName(java.lang.String name)
Sets the name of the PromotionState. |
| Methods inherited from class com.starbase.starteam.SimpleTypedResource |
get, getByteArray, getDouble, getEnumDisplayName, getInt, getIntArray, getOLEDate, getPossibleValues, getPropertyNames, getString, getType, getTypeNames, put, putByPropertyID |
| Methods inherited from class com.starbase.starteam.TypedResource |
addToIntArray, removeFromIntArray, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.starbase.starteam.ISecurable |
getType |
| Constructor Detail |
public PromotionState(PromotionModel model)
model - the owning PromotionModel| Method Detail |
public PromotionModel getPromotionModel()
public int getObjectID()
public int getID()
getID in class SimpleTypedResourcegetObjectID.public 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 int getLabelID()
public void setLabelID(int labelID)
labelID - the label ID to associate with this statepublic OLEDate getCreatedOn()
public int getCreatedBy()
public OLEDate getDeletedOn()
public int getDeletedBy()
public AclEntry[] getACL()
getACL in interface ISecurableAclEntrypublic void setACL(AclEntry[] acl)
setACL in interface ISecurableacl - the new access control list or null if to be dropped.AclEntrypublic int getOwner()
getOwner in interface ISecurableObjectSupportedFeatures.hasObjectOwnership()public void acquireOwnership()
acquireOwnership in interface ISecurableObjectSupportedFeatures.hasObjectOwnership()public ISecurableContainer getParentContainer()
getParentContainer in interface ISecurableISecurableContainerpublic boolean hasPermission(int permissions)
hasPermission in interface ISecurablepermissions - the desired permissions
Permissionpublic boolean equals(java.lang.Object source)
equals in class SimpleTypedResourcesource - Object the source to comapre with
public int hashCode()
hashCode in class SimpleTypedResource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||