|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.Server.WebCacheServer
public static final class Server.WebCacheServer
Base accessor for cached SDK objects encapsulating the statefulness of objects obtained from the artifact cache.
| Method Summary | |
|---|---|
void |
addGroupListener(WebCacheGroupListener listener)
Add a listener for WebCacheGroup events Listeners are supported on the tip cache only, since rolled back caches do not change over time |
void |
addProjectListener(WebCacheProjectListener listener)
Add a listener for WebCacheProject events Listeners are supported on the tip cache only, since rolled back caches do not change over time |
void |
addTypeListener(WebCacheTypeListener listener)
Add a listener for WebCacheType events Listeners are supported on the tip cache only, since rolled back caches do not change over time |
void |
addUserListener(WebCacheUserListener listener)
Add a listener for WebCacheUser events Listeners are supported on the tip cache only, since rolled back caches do not change over time |
User.WebCacheUser |
changePassword(java.lang.String logonName,
java.lang.String oldPassword,
java.lang.String newPassword)
Change the user's password |
Item.Type.WebCacheItemType |
createType(java.lang.String xmlDefinition,
boolean toCreate)
create a custom component (a new type) on the server. |
static void |
declareWebCacheDefinitions(java.lang.String typeName,
java.lang.String propertyName,
java.lang.Class[] clazz)
Registers this type to a set of user defined custom component class definitions. |
Group.WebCacheGroup |
findGroup(int groupID)
return an accessible group on this server or NULL |
Principal.WebCachePrincipal |
findPrincipal(int principalID)
return an accessible principal (user or group) on this server or NULL |
Project.WebCacheProject |
findProject(int projectID)
return an accessible Project on this server or NULL Note that accessible projects need not yet have been cached in the artifact cache However, if it has been cached ,and is accessible, the cached project will be returned |
Project.WebCacheProject |
findProject(java.lang.String projectName)
return an accessible Project on this server or NULL Note that accessible projects need not yet have been cached in the artifact cache However, if it has been cached ,and is accessible, the cached project will be returned |
Type.WebCacheType |
findType(int typeID)
return an accessible type on this server or NULL |
Type.WebCacheType |
findType(java.lang.String typeName)
return an accessible type on this server or NULL |
User.WebCacheUser |
findUser(int userID)
return an accessible user on this server or NULL |
java.lang.String |
getAddress()
Network address of this server. |
User.WebCacheUser[] |
getAllLoggedOnUsers()
returns all the users currently logged into this cache manager |
ArtifactCacheManager.Context |
getContext()
Returns the context of this object. |
DateTime |
getCurrentTime()
Gets the current time on the server. |
Group.WebCacheGroup[] |
getGroups()
Return the set of all groups cached by this ArtifactCacheManager The returned instances are type safe read only Group Instances that reflect the current & consistent state of each group w.r.t their user members until the next refresh |
User.WebCacheUser |
getLoggedInUser()
Gets the user object of the logged in user. |
int |
getPort()
TCP/IP port on which to connect to the remote server. |
Project.WebCacheProject[] |
getProjects()
Returns the set of projects accessible by this User on this server The returned project context is that of the managed server connection of the tip cache However, the returned projects may or may not be cached in the tip cache. |
GUID |
getRepositoryID()
Uniquely identifies the repository served by this server amongst all StarTeam repositories in the universe. |
ServerInfo |
getServerInfo()
Return the serverInfo object used to construct this server session |
Type.WebCacheType[] |
getTypes()
Returns collection of Type objects supported by this server. |
User.WebCacheUser[] |
getUsers()
Return the set of all users cached by this ArtifactCacheManager The returned instances are type safe read only User Instances that reflect the current & consistent state of each user w.r.t their Group membership until the next refresh |
boolean |
isCached(int projectID)
Returns true if the project has been cached in the ArtifactCache and is visible in this user context. |
boolean |
isLoggedOn(User.WebCacheUser u)
Returns true if this user is logged on Note that the Administrator in whose context the artifact cache is created is always logged on. |
void |
logoff(User.WebCacheUser u)
Logoff a User who was earlier logged on, release the license consumed by the user The logoff operation is executed on the specified server instance |
User.WebCacheUser |
logon(java.lang.String logonUserName,
java.lang.String password)
Logon a User with a specified user name and password, return the User Object or throw a logon exception If the logon is successful, consume a license for this user |
void |
synchronize(java.lang.String[] keys,
boolean acquire)
Add or release a set of keys, i.e. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void declareWebCacheDefinitions(java.lang.String typeName,
java.lang.String propertyName,
java.lang.Class[] clazz)
typeName - String The name of the Type to be registeredpropertyName - String The name of the property whose value matches one of the
class names in the arrayclazz - a set of classes which provide alternate definitions for an
artifact instance
java.lang.IllegalArgumentExceptionClass.getName(),
Server.declareComponentDefinitions(String, String, Class[])public ArtifactCacheManager.Context getContext()
public DateTime getCurrentTime()
public java.lang.String getAddress()
public int getPort()
public ServerInfo getServerInfo()
public Project.WebCacheProject[] getProjects()
public Project.WebCacheProject findProject(int projectID)
projectID - the id of the project
public Project.WebCacheProject findProject(java.lang.String projectName)
projectName - the name of the project
public boolean isCached(int projectID)
projectID - the project to check for
public Type.WebCacheType[] getTypes()
Type objects supported by this server.
Types instancespublic Type.WebCacheType findType(int typeID)
typeID - the id of the type
public Type.WebCacheType findType(java.lang.String typeName)
typeName - the name of the type
public Principal.WebCachePrincipal findPrincipal(int principalID)
principalID - the id of the principal
public User.WebCacheUser[] getUsers()
public User.WebCacheUser findUser(int userID)
userID - the id of the user
public Group.WebCacheGroup findGroup(int groupID)
groupID - the id of the group
public Group.WebCacheGroup[] getGroups()
public User.WebCacheUser logon(java.lang.String logonUserName,
java.lang.String password)
logonUserName - The logon user namepassword - the password to use for logging on
public User.WebCacheUser changePassword(java.lang.String logonName,
java.lang.String oldPassword,
java.lang.String newPassword)
logonName - the user whose password is being changedoldPassword - the old passwordnewPassword - the new password
Server.changePassword(String, String, String)public User.WebCacheUser getLoggedInUser()
public GUID getRepositoryID()
com.starteam.util.GUIDpublic void logoff(User.WebCacheUser u)
u - the user being logged offpublic boolean isLoggedOn(User.WebCacheUser u)
u - the specified user
public User.WebCacheUser[] getAllLoggedOnUsers()
public void synchronize(java.lang.String[] keys,
boolean acquire)
keys - the keys to be acquired or releasedacquire - true to acquire the keys, false to release thempublic void addProjectListener(WebCacheProjectListener listener)
listener - a listener for WebCacheProject eventspublic void addUserListener(WebCacheUserListener listener)
listener - a listener for WebCacheUser eventspublic void addGroupListener(WebCacheGroupListener listener)
listener - a listener for WebCacheGroup eventspublic void addTypeListener(WebCacheTypeListener listener)
listener - a listener for WebCacheType events
public Item.Type.WebCacheItemType createType(java.lang.String xmlDefinition,
boolean toCreate)
xmlDefinition - the xml definition describing the schema of the new TypetoCreate - true to create the Component, false to verify the schema
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||