|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.LiveObject.WebCacheLiveObject
public static class LiveObject.WebCacheLiveObject
Base accessor for cached SDK objects encapsulating the statefulness of objects obtained from the artifact cache.
| Method Summary | |
|---|---|
void |
addTo(ObjectArrayProperty.WebCacheObjectArrayProperty property,
LiveObject.WebCacheLiveObject object)
Add the live object specified to the array of object values |
boolean |
equals(java.lang.Object o)
Test this object for equality wiith another |
ArtifactCacheManager.Context |
getContext()
Returns the context of this object. |
User.WebCacheUser |
getCreatedBy()
Get the user who created this object. |
DateTime |
getCreatedTime()
Gets the date and time at which this object was created. |
java.lang.String |
getDisplayName()
Gets a short string that can be used to refer to this item in an application's user interface. |
int |
getID()
Returns the ID of its underlying object. |
int |
getObjectID()
Gets the unique identifier for the underlying object. |
Server.WebCacheServer |
getServer()
return the Server for this cached object |
Type.WebCacheType |
getType()
Returns the type of this resource. |
java.lang.Object |
getValue(Property.WebCacheProperty p)
Returns the value of the property |
java.lang.Object |
getValue(java.lang.String propertyName)
get the value of the property as specified by name |
int |
hashCode()
Return a hash code for this object |
boolean |
hasValue(ObjectArrayProperty.WebCacheObjectArrayProperty property,
LiveObject.WebCacheLiveObject object)
Return true if the live object argument is a member of the object array for the specified object array property |
boolean |
isDirty()
Return true if this object is dirty |
boolean |
isNew()
Returns true if this resource has not yet been stored in the server. |
void |
refresh()
replace the (possibly out-dated) instance of the contained live object with an appropriate read only instance from the ArtifactCache |
void |
remove()
Remove this LiveObject from the repository This is an atomic operation, not executed in a transaction |
void |
removeFrom(ObjectArrayProperty.WebCacheObjectArrayProperty property,
LiveObject.WebCacheLiveObject object)
Remove the live object specified from the array of object values |
void |
setValue(Property.WebCacheProperty p,
java.lang.Object value)
Sets the value of the property |
void |
setValue(java.lang.String propertyName,
java.lang.Object value)
set the value of the property as specified by name |
java.lang.String |
toStarTeamURL()
Resolves this StarTeam resource to a corresponding URL using an ID based scheme |
void |
update()
Save this LiveObject to the Repository If the underlying SDK object is new, create it Otherwise, if it has changed, update it This is an atomic operation, not executed in a transaction |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Server.WebCacheServer getServer()
public ArtifactCacheManager.Context getContext()
public boolean isNew()
public int getObjectID()
public int getID()
public void refresh()
public void setValue(java.lang.String propertyName,
java.lang.Object value)
propertyName - the name of the propertyvalue - the value to setpublic java.lang.Object getValue(java.lang.String propertyName)
propertyName - the name of the property
public boolean hasValue(ObjectArrayProperty.WebCacheObjectArrayProperty property,
LiveObject.WebCacheLiveObject object)
property - the object array propertyobject - the candidate member to look for
public void addTo(ObjectArrayProperty.WebCacheObjectArrayProperty property,
LiveObject.WebCacheLiveObject object)
property - the object array propertyobject - the live object to add
public void removeFrom(ObjectArrayProperty.WebCacheObjectArrayProperty property,
LiveObject.WebCacheLiveObject object)
property - the object array propertyobject - the live object to removepublic java.lang.Object getValue(Property.WebCacheProperty p)
p - get the value of the property
public void setValue(Property.WebCacheProperty p,
java.lang.Object value)
p - the propertyvalue - its new valuepublic java.lang.String getDisplayName()
public boolean isDirty()
public void update()
for transacted operationspublic Type.WebCacheType getType()
public void remove()
for transacted operationspublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to test againstpublic int hashCode()
hashCode in class java.lang.Objectpublic DateTime getCreatedTime()
public User.WebCacheUser getCreatedBy()
public java.lang.String toStarTeamURL()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||