|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.ArtifactCacheManager.Context
public static final class ArtifactCacheManager.Context
Establish the context in which a web application will execute some session specific requirement. The context may be as coarse or fine grained as desired. A context may be resolved to one and only one StarTeam object. The rules will be applied deterministically, to guard against the possibility of conflict The user is responsible for the integrity of the various id's stored in the object
| Constructor Summary | |
|---|---|
ArtifactCacheManager.Context(java.lang.String guid,
int userid)
Create a Tip Context for a user session. |
|
| Method Summary | |
|---|---|
ArtifactCacheManager.Context |
copy()
returns a copy of this Context |
static ArtifactCacheManager.Context |
createFrom(java.lang.String guid,
int userid,
int viewID,
double dateTime)
Create a rolled back Context for a user session. |
boolean |
equals(java.lang.Object o)
Indicates whether this Context equals the other |
ArtifactCache |
getArtifactCache()
Returns the ArtifactCache whose context is described by this object |
ArtifactCacheManager |
getArtifactCacheManager()
Returns the ArtifactCacheManager whose context is described by this object |
double |
getDateTime()
return the datetime for this context |
java.lang.String |
getGUID()
return the GUID for this context |
Server.WebCacheServer |
getServer()
return the Server for this context |
User.WebCacheUser |
getUser()
Returns the user whose context is described by this object |
int |
getUserID()
return the userid for this context |
View.WebCacheView |
getView()
return the View for this context |
int |
getViewID()
return the viewID for this context |
int |
hashCode()
returns a hash code for this context |
boolean |
isTip()
Returns True if this context represents a Tip Configuration notionally, this simply means that the date time has not been set - this does NOT make the Context object equivalent to a ViewConfiguration. |
ViewMember.WebCacheViewMember |
resolve(java.lang.String url)
Resolve a given {hostname, port, ID} based StarTeam URL to an object in the Artifact Cache represented by this context. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArtifactCacheManager.Context(java.lang.String guid,
int userid)
guid - the server GUIDuserid - the user| Method Detail |
|---|
public static ArtifactCacheManager.Context createFrom(java.lang.String guid,
int userid,
int viewID,
double dateTime)
guid - the server GUIDuserid - the userviewID - the rolled back viewdateTime - the rolled back (historical) time
public java.lang.String getGUID()
public int getUserID()
public int getViewID()
public double getDateTime()
public boolean isTip()
public ArtifactCacheManager getArtifactCacheManager()
public ArtifactCache getArtifactCache()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the context to test for equalitypublic int hashCode()
hashCode in class java.lang.Objectpublic ArtifactCacheManager.Context copy()
public Server.WebCacheServer getServer()
public View.WebCacheView getView()
public User.WebCacheUser getUser()
public ViewMember.WebCacheViewMember resolve(java.lang.String url)
url - the URL to resolve
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||