|
|||||||||
| 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. |
Group.WebCacheGroup |
getAdministratorsGroup()
Return an instance of the "Administrators" Group. |
User.WebCacheUser[] |
getAllLoggedOnUsers()
returns all the users currently logged into this cache manager |
Group.WebCacheGroup |
getAllUsersGroup()
Return an instance of the "AllUsers" Group. |
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 |
Task.Status[] |
getStatus(Story.Status sts)
Return the subset of Task Status values that match the specified Story Status for this project. |
Type.WebCacheType[] |
getTypes()
Returns collection of Type objects supported by this server. |
EnumeratedValue[] |
getUDAGroupings(Requirement.RequirementType typ)
Return the subset of Requirement UDA Grouping values that match the specified Requirement Type for this project. |
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 |
Property.WebCacheProperty[] |
getVisibleProperties(EnumeratedValue value)
Return the subset of properties that are visible in the context of the specified Enumerated Value |
boolean |
hasSavedStatus(Story.Status sts)
Returns true if an explicit Story Status mapped to a Task Status (or set) has been saved for this project Note that if a status mapping is not saved to the server, the getStatus() api returns a default mapping |
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. |
boolean |
isMPXEnabled()
Determines whether or not MPX has been enabled for this server. |
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 This api may only be used for logging in users in on-premise systems or for logging in additional global administrators in the hosted system's global cache. |
User.WebCacheUser |
logon(java.lang.String globalUserName,
java.lang.String globalUserPassword,
java.lang.String tenantUserName)
Logon a Tenant User with a specified user name, return the User Object or throw a logon exception If the logon is successful, consume a license for this user |
void |
setStatus(Story.Status rfrnc,
Task.Status[] mppdSts)
Map a subset of Task Status values to specific Story States for the given project. |
void |
setUDAGroupings(Requirement.RequirementType typ,
EnumeratedValue[] udas)
Map a subset of UDA Grouping values to specific Requirement Types for the given project. |
void |
setVisibleProperties(EnumeratedValue value,
Property.WebCacheProperty[] properties)
Define a subset of properties of a given type that are marked visible |
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 isMPXEnabled()
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 Group.WebCacheGroup getAdministratorsGroup()
public Group.WebCacheGroup getAllUsersGroup()
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 logon(java.lang.String globalUserName,
java.lang.String globalUserPassword,
java.lang.String tenantUserName)
globalLogonUserName - The global logon administrator nameglobalUserPassword - The global logon administrator passwordtenantUserName - The tenant user to be logged on.
Note that in the hosted context, the tenant user has already been authenticated via the login portal
Logging in the user through the artifact cache is a separate requirement of the web application
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
public EnumeratedValue[] getUDAGroupings(Requirement.RequirementType typ)
typ - the requirement type to test
public void setUDAGroupings(Requirement.RequirementType typ,
EnumeratedValue[] udas)
typ - the requirement type to be mappedudas - the set of UDA Groupingspublic Property.WebCacheProperty[] getVisibleProperties(EnumeratedValue value)
value - an Enumerated Value for a specific Enumerated Property of a chosen type
public void setVisibleProperties(EnumeratedValue value,
Property.WebCacheProperty[] properties)
value - an Enumerated Value for a specific Enumerated Property of a chosen typeproperties - the set of properties marked visible in the context of the specified enumpublic Task.Status[] getStatus(Story.Status sts)
sts - the story status to test
public void setStatus(Story.Status rfrnc,
Task.Status[] mppdSts)
rfrnc - the reference Story Status to be mappedmppdSts - the Task States to map it to.public boolean hasSavedStatus(Story.Status sts)
sts - the status to test for in this project context
Server.WebCacheServer.getStatus(com.starteam.Story.Status)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||