|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.LiveObject.WebCacheLiveObject
com.starteam.TrackedObject.WebCacheTrackedObject
com.starteam.Principal.WebCachePrincipal
com.starteam.User.WebCacheUser
public static class User.WebCacheUser
User accessor for cached SDK Users contained objects are obtained from the artifact cache
| Method Summary | |
|---|---|
void |
addTo(Group.WebCacheGroup group)
Adds this User to the specified group. |
boolean |
canCreateProject()
Returns true if this user has the right to create projects Note that the user must be logged in to ascertain this right |
static User.WebCacheUser |
create(ArtifactCacheManager.Context cntxt)
Create a new User |
void |
forceLogoff()
Forces this User account to be logged off from the server. |
void |
forcePasswordChange()
Forces a password change for this User account. |
int |
getAccessEndTime1(User.DayOfWeek dayOfWeek)
Returns the end time for the specified day for the first custom access policy. |
int |
getAccessEndTime2(User.DayOfWeek dayOfWeek)
Returns the end time for the specified day for the second custom access policy. |
User.LogOnPolicy |
getAccessPolicy()
Return's this account's access policy. |
int |
getAccessStartTime1(User.DayOfWeek dayOfWeek)
Returns the start time for the specified day for the first custom access policy. |
int |
getAccessStartTime2(User.DayOfWeek dayOfWeek)
Returns the start time for the specified day for the second custom access policy. |
User.Status |
getAccountStatus()
Returns this account's status. |
DateTime |
getCacheLastUsedAt()
Returns the time at which this user last used the cache |
Date[] |
getCapacityOverriddenOn(Project.WebCacheProject p)
Returns the set of dates for which capacities have been overridden |
double |
getDefaultCapacity(Project.WebCacheProject p)
Returns the default capacity assigned to a specific project |
java.lang.String |
getDistinguishedName()
Gets the Distinguished Name for Directory Service. |
java.lang.String |
getEmailAddress()
Returns the User's email address. |
Project.WebCacheProject[] |
getFavoriteProjects()
Returns the User's Favorite Projects. |
java.lang.String |
getFaxNumber()
Returns the User's fax number. |
boolean |
getHasFixedLicense()
Returns true if the user has a fixed license |
DateTime |
getLastWebLogoutTime()
Gets the time the user last logged out from the webserver. |
User.License |
getLicenseType()
Gets the type of license assigned to this User. |
User.LoginHistory[] |
getLogins()
Returns a history of logins for this User Login History has been introduced with the 12.0 server release |
java.lang.String |
getLogOnName()
Returns the User's name. |
java.lang.String |
getName()
Returns the User's name. |
double |
getOverriddenCapacity(Project.WebCacheProject p,
Date d)
Return the overridden capacity for the project for the specified week |
java.lang.String |
getPagerNumber()
Returns the User's pager number. |
boolean |
getPasswordChangeRequired()
Determines whether or not a password change is required during the current session. |
int |
getPasswordDaysRemaining()
Returns the number of days remaining that the user's current password will remain valid. |
java.lang.String |
getPhoneNumber()
Returns the User's phone number. |
Content.WebCacheContent |
getPicture()
Returns the Content object used to store a picture of this user |
int |
getPolicyTimeZoneShift()
Return's the timezone shift for this account's access policy. |
java.lang.String |
getPostalAddress()
Returns the User's postal address. |
int |
getPresentationID()
Returns the unique integer identifier for this user. |
User.GeographicTerritory |
getTerritory()
Returns the Territory this User belongs to |
java.lang.String |
getVoiceMailNumber()
Returns the User's voice mail number. |
boolean |
hasDefaultCapacity(Project.WebCacheProject p)
Returns true if this user has a default capacity assigned to a specific project |
boolean |
hasOverriddenCapacity(Project.WebCacheProject p,
Date d)
return true if the default capacity is overwritten for a specified week the date will typically be specified as a Monday, implying the week coverage |
boolean |
isBuiltIn()
Returns true if this is a built in user When a tenant is created, the system creates a built in user with full administrative privileges. |
boolean |
isMemberOf(Group.WebCacheGroup group)
Determines whether or not this user is a member of the given group. |
void |
reactivate()
Reactivates this User account. |
void |
removeFrom(Group.WebCacheGroup group)
Removes this User from the specified group. |
void |
setAccessPolicy(User.LogOnPolicy policy)
Changes this account's access policy. |
void |
setAccessTimes(User.DayOfWeek dayOfWeek,
int start1,
int end1,
int start2,
int end2)
Changes the custom access policy start and end times for the specified day of the week. |
void |
setDefaultCapacity(Project.WebCacheProject p,
double capacity)
Set the default capacity for a given project |
void |
setDistinguishedName(java.lang.String distinguishedName)
Sets the Distinguished Name for Directory Service. |
void |
setEmailAddress(java.lang.String emailAddress)
Changes the User's email address. |
void |
setFavoriteProjects(Project.WebCacheProject[] favoriteProjects)
Changes the User's favorite projects. |
void |
setFaxNumber(java.lang.String faxNumber)
Changes the User's fax number. |
void |
setHasFixedLicense(boolean fixed)
Set whether the user has a fixed or floating license |
void |
setLicenseType(User.License nLicenseType)
Sets the type of license assigned to this User. |
void |
setLogOnName(java.lang.String logOnName)
Changes the logon name for this account. |
void |
setName(java.lang.String name)
Changes the User's full name. |
void |
setOverriddenCapacity(Project.WebCacheProject p,
Date d,
double capacity)
Sets the overridden capacity for the project for the specified week |
void |
setPagerNumber(java.lang.String pagerNumber)
Changes the User's pager number. |
void |
setPassword(java.lang.String password)
Sets the password for this account. |
void |
setPhoneNumber(java.lang.String phoneNumber)
Changes the User's phone number. |
void |
setPicture(Content.WebCacheContent picture)
Saves a picture of this user to the server |
void |
setPolicyTimeZoneShift(int shift)
Changes timezone shift for this account's access policy. |
void |
setPostalAddress(java.lang.String postalAddress)
Changes the User's postal address. |
void |
setTerritory(User.GeographicTerritory t)
Set the territory this User belongs to |
void |
setVoiceMailNumber(java.lang.String voiceMailNumber)
Changes the User's voice mail number. |
void |
suspend()
Suspend this User account. |
void |
unlock()
Unlocks this User account. |
| Methods inherited from class com.starteam.Principal.WebCachePrincipal |
|---|
canAccessContainerForReading, canAccessForReading, canCreateArtifactType, getID, hasContainerRight, hasContainerRight, hasContainerRights, hasRight, hasRights, isDeleted |
| Methods inherited from class com.starteam.TrackedObject.WebCacheTrackedObject |
|---|
getModifiedBy, getModifiedTime |
| Methods inherited from class com.starteam.LiveObject.WebCacheLiveObject |
|---|
addTo, equals, getContext, getCreatedBy, getCreatedTime, getDisplayName, getObjectID, getServer, getType, getValue, getValue, hashCode, hasValue, isDirty, isNew, refresh, remove, removeFrom, setValue, setValue, toStarTeamURL, update |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static User.WebCacheUser create(ArtifactCacheManager.Context cntxt)
cntxt - the User Session Context
public DateTime getCacheLastUsedAt()
public boolean canCreateProject()
public void setPassword(java.lang.String password)
password - the new password for this accountpublic java.lang.String getLogOnName()
User.getName(),
User.getLogOnName()public User.LoginHistory[] getLogins()
public void setLogOnName(java.lang.String logOnName)
logOnName - the new logon name for this account
ServerException - if the logged in user does not have appropriate permissionspublic java.lang.String getName()
getName in class Principal.WebCachePrincipalUser.getName(),
User.getLogOnName()public int getPresentationID()
public void setName(java.lang.String name)
name - the new name for this Userpublic void setHasFixedLicense(boolean fixed)
fixed - true if the user has a fixed or floating licensepublic boolean getHasFixedLicense()
public java.lang.String getEmailAddress()
ServerException - if the logged in user does not have appropriate permissionspublic void setEmailAddress(java.lang.String emailAddress)
emailAddress - the new email address for this Userpublic boolean isMemberOf(Group.WebCacheGroup group)
group - The group to be tested.
public boolean isBuiltIn()
public void addTo(Group.WebCacheGroup group)
update() to save
the changes on the server.
group - the group to which this User will be added.
ServerException - if the logged in user does not have appropriate permissionspublic void removeFrom(Group.WebCacheGroup group)
update()
to save the changes on the server.
group - the group from which this User will be removed.
ServerException - if the logged in user does not have appropriate permissionspublic java.lang.String getFaxNumber()
ServerException - if the logged in user does not have appropriate permissionspublic void setFaxNumber(java.lang.String faxNumber)
faxNumber - the User's new fax number.public java.lang.String getPagerNumber()
ServerException - if the logged in user does not have appropriate permissionspublic void setPagerNumber(java.lang.String pagerNumber)
pagerNumber - the User's new pager number.public java.lang.String getPhoneNumber()
ServerException - if the logged in user does not have appropriate permissionspublic void setPhoneNumber(java.lang.String phoneNumber)
phoneNumber - the User's new phone number.public java.lang.String getPostalAddress()
ServerException - if the logged in user does not have appropriate permissionspublic void setPostalAddress(java.lang.String postalAddress)
postalAddress - the User's new postal addresspublic java.lang.String getDistinguishedName()
ServerException - if the logged in user does not have appropriate permissionspublic void setDistinguishedName(java.lang.String distinguishedName)
distinguishedName - the Distinguished Name for Directory Service.public User.GeographicTerritory getTerritory()
public void setTerritory(User.GeographicTerritory t)
t - the territory this User belongs topublic User.Status getAccountStatus()
ServerException - if the logged in user does not have appropriate permissionspublic java.lang.String getVoiceMailNumber()
ServerException - if the logged in user does not have appropriate permissionspublic void setVoiceMailNumber(java.lang.String voiceMailNumber)
voiceMailNumber - the User's new voice mail number.public User.License getLicenseType()
public void setLicenseType(User.License nLicenseType)
nLicenseType - The type of license assigned to this User.public User.LogOnPolicy getAccessPolicy()
ServerException - if the logged in user does not have appropriate permissionspublic void setAccessPolicy(User.LogOnPolicy policy)
policy - this account's new access policypublic int getPolicyTimeZoneShift()
POLICY_ALWAYS. The
value is in hours from GMT.
ServerException - if the logged in user does not have appropriate permissionsUser.WebCacheUser.setPolicyTimeZoneShift(int)public void setPolicyTimeZoneShift(int shift)
shift - the new timezone shift for this account's access policy.User.WebCacheUser.getPolicyTimeZoneShift()public int getAccessStartTime1(User.DayOfWeek dayOfWeek)
dayOfWeek - must be a valid day of the week
public int getAccessStartTime2(User.DayOfWeek dayOfWeek)
dayOfWeek - must be a valid day of the week
public int getAccessEndTime1(User.DayOfWeek dayOfWeek)
dayOfWeek - must be a valid day of the week
public int getAccessEndTime2(User.DayOfWeek dayOfWeek)
dayOfWeek - a valid day of the week, e.g. DAY_SUNDAY
public void setAccessTimes(User.DayOfWeek dayOfWeek,
int start1,
int end1,
int start2,
int end2)
dayOfWeek - a valid day of the week, e.g. SUNDAYstart1 - start time in minutes from midnightend1 - end time in minutes from midnightstart2 - start time in minutes from midnightend2 - end time in minutes from midnightpublic boolean getPasswordChangeRequired()
ServerException - if the logged in user does not have appropriate permissionsServerAdministration.getUsers()public int getPasswordDaysRemaining()
public void unlock()
java.lang.IllegalStateException - if the User has not yet been created on the serverpublic void reactivate()
java.lang.IllegalStateException - if the User has not yet been created on the serverUser.WebCacheUser.getAccountStatus()public void suspend()
java.lang.IllegalStateException - if the User has not yet been created on the serverUser.WebCacheUser.getAccountStatus()public void forcePasswordChange()
java.lang.IllegalStateException - if the User has not yet been created on the serverpublic void forceLogoff()
java.lang.IllegalStateException - if the User has not yet been created on the serverUser.WebCacheUser.getAccountStatus()public Content.WebCacheContent getPicture()
public void setPicture(Content.WebCacheContent picture)
picture - the Content object describing a picture of this userpublic Project.WebCacheProject[] getFavoriteProjects()
public void setFavoriteProjects(Project.WebCacheProject[] favoriteProjects)
favoriteProjects - the User's favorite Projects.public DateTime getLastWebLogoutTime()
public boolean hasDefaultCapacity(Project.WebCacheProject p)
p - the project to test against
public double getDefaultCapacity(Project.WebCacheProject p)
p - the project
public void setDefaultCapacity(Project.WebCacheProject p,
double capacity)
p - the projectcapacity - the default capacity to be assigned to this project
public boolean hasOverriddenCapacity(Project.WebCacheProject p,
Date d)
p - the projectd - the Monday of the week
public double getOverriddenCapacity(Project.WebCacheProject p,
Date d)
p - the projectd - the Monday of the week
public Date[] getCapacityOverriddenOn(Project.WebCacheProject p)
p - the project to test for
public void setOverriddenCapacity(Project.WebCacheProject p,
Date d,
double capacity)
p - the projectd - the Monday of the weekcapacity - the capacity for the week
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||