|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.starteam.CacheRef
|
+--com.starbase.starteam.UserAccount
Represents a StarTeam user account. That is, an active user
account on a StarTeam Server. This is not to be
confused with a User object which simply represents a
user that does participate or has participated in operations on the
items in the repository.
| Field Summary | |
static int |
DAY_FRIDAY
A constant value specifying the day of the week "Friday". |
static int |
DAY_MONDAY
A constant value specifying the day of the week "Monday". |
static int |
DAY_SATURDAY
A constant value specifying the day of the week "Saturday". |
static int |
DAY_SUNDAY
A constant value specifying the day of the week "Sunday". |
static int |
DAY_THURSDAY
A constant value specifying the day of the week "Thursday". |
static int |
DAY_TUESDAY
A constant value specifying the day of the week "Tuesday". |
static int |
DAY_WEDNESDAY
A constant value specifying the day of the week "Wednesday". |
static int |
LICENSE_TYPE_LICENSE_SERVER
A license managed by the Borland License Server. |
static int |
LICENSE_TYPE_STARTEAM
A license managed by the StarTeam server. |
static int |
LICENSE_TYPE_UNASSIGNED
An unassigned license. |
static int |
POLICY_ALWAYS
A constant value for specifying an account access policy where the user is always allowed to log on. |
static int |
POLICY_CUSTOM
A constant value for specifying an account access policy where the user is only allowed to log on during specified time ranges during different days of the week. |
static int |
POLICY_STANDARD
A constant value for specifying an account access policy where the user is only allowed to log on during business hours ( 8am - 5pm ). |
static int |
STATUS_LOCKED_OUT
A constant value representing a "locked out" account. |
static int |
STATUS_NORMAL
A constant value representing a "normal" account status. |
static int |
STATUS_PASSWORD_CHANGE_NOTIFIED
A constant value representing an account that has been notified of a required password change. |
static int |
STATUS_PASSWORD_CHANGE_REQUIRED
A constant value representing an account that requires a password change. |
static int |
STATUS_SUSPENDED
A constant value representing a "suspended" account. |
| Constructor Summary | |
UserAccount(Server server)
Creates a new user account to be activated on the server. |
|
| Method Summary | |
void |
addToGroupAccount(GroupAccount groupAccount)
Adds this user to the specified group account. |
UserAccount |
copy()
Creates a copy of this UserAccount object. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
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(int dayOfWeek)
Returns the end time for the specified day for the first custom access policy. |
int |
getAccessEndTime2(int dayOfWeek)
Returns the end time for the specified day for the second custom access policy. |
int |
getAccessPolicy()
Return's this account's access policy. |
int |
getAccessStartTime1(int dayOfWeek)
Returns the start time for the specified day for the first custom access policy. |
int |
getAccessStartTime2(int dayOfWeek)
Returns the start time for the specified day for the second custom access policy. |
int |
getAccountStatus()
Returns this account's status. |
int |
getBLSSlipGuid()
Gets the Slip ID assigned to this license. |
OLEDate |
getCreatedTime()
Gets the time at which this UserAccount was created. |
java.lang.String |
getDistinguishedName()
Gets the Distinguished Name for Directory Service. |
java.lang.String |
getEmailAddress()
Returns the user's email address. |
java.lang.String |
getFaxNumber()
Returns the user's fax number. |
GroupAccount[] |
getGroupAccounts()
Returns all of the group accounts to which this user belongs. |
boolean |
getHasFixedLicense()
Determines whether this user has a fixed ( named-user ) license or a floating ( concurrent ) license. |
int |
getID()
Returns an integer ID that represents this user account. |
int |
getLicenseType()
Gets the type of license assigned to this user. |
int |
getLogOnCount()
Returns the number of times this user is logged in to the server. |
java.lang.String |
getLogOnName()
Returns the logon name or identifier for this account. |
java.lang.String |
getName()
Returns the full name that this user goes by. |
java.lang.String |
getPagerNumber()
Returns the user's pager number. |
java.lang.String |
getPhoneNumber()
Returns the user's phone number. |
int |
getPolicyTimeZoneShift()
Return's the timezone shift for this account's access policy. |
java.lang.String |
getPostalAddress()
Returns the user's postal address. |
boolean |
getValidateThroughDirectoryService()
Indicates whether the user validates through Directory Service. |
java.lang.String |
getVoiceMailNumber()
Returns the user's voice mail number. |
java.lang.String[] |
getWorkstations()
Currently unused. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isEqualTo(UserAccount account)
Compares two UserAccount objects. |
boolean |
isNew()
Tells if this user account has been created on the server yet. |
void |
reactivate()
Reactivates this user account. |
void |
remove()
Removes this user account from the server, and from any group of which it is a member. |
void |
removeFromGroupAccount(GroupAccount groupAccount)
Removes this user from the specified group account. |
void |
setAccessPolicy(int policy)
Changes this account's access policy. |
void |
setAccessTimes(int 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 |
setAccountStatus(int status)
Modify this account's status. |
void |
setBLSSlipGuid(int nSlipGuid)
Sets the Slip ID assigned to this license. |
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 |
setFaxNumber(java.lang.String faxNumber)
Changes the user's fax number. |
void |
setHasFixedLicense(boolean bFixed)
Sets the license type for this user. |
void |
setLicenseType(int 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 |
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 |
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 |
setValidateThroughDirectoryService(boolean bValidateThroughDirectoryService)
Sets whether user validates through Directory Service. |
void |
setVoiceMailNumber(java.lang.String voiceMailNumber)
Changes the user's voice mail number. |
void |
suspend()
Suspend this user account. |
java.lang.String |
toString()
Returns the name of this user account. |
void |
unlock()
Unlocks this user account. |
void |
update()
Create or modify this UserAccount in the StarTeam Server. |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int LICENSE_TYPE_STARTEAM
UserAccount.getLicenseType(),
Constant Field Valuespublic static final int LICENSE_TYPE_LICENSE_SERVER
UserAccount.getLicenseType(),
Constant Field Valuespublic static final int LICENSE_TYPE_UNASSIGNED
UserAccount.getLicenseType(),
Constant Field Valuespublic static final int STATUS_NORMAL
UserAccount.getAccountStatus(),
UserAccount.setAccountStatus(int),
Constant Field Valuespublic static final int STATUS_LOCKED_OUT
UserAccount.getAccountStatus(),
UserAccount.setAccountStatus(int),
Constant Field Valuespublic static final int STATUS_SUSPENDED
UserAccount.getAccountStatus(),
UserAccount.setAccountStatus(int),
Constant Field Valuespublic static final int STATUS_PASSWORD_CHANGE_REQUIRED
UserAccount.getAccountStatus(),
UserAccount.setAccountStatus(int),
Constant Field Valuespublic static final int STATUS_PASSWORD_CHANGE_NOTIFIED
UserAccount.getAccountStatus(),
UserAccount.setAccountStatus(int),
Constant Field Valuespublic static final int POLICY_ALWAYS
UserAccount.getAccessPolicy(),
UserAccount.setAccessPolicy(int),
Constant Field Valuespublic static final int POLICY_STANDARD
UserAccount.getAccessPolicy(),
UserAccount.setAccessPolicy(int),
Constant Field Valuespublic static final int POLICY_CUSTOM
UserAccount.getAccessPolicy(),
UserAccount.setAccessPolicy(int),
UserAccount.getAccessStartTime1(int),
UserAccount.getAccessEndTime1(int),
UserAccount.getAccessStartTime2(int),
UserAccount.getAccessEndTime2(int),
UserAccount.setAccessTimes(int, int, int, int, int),
UserAccount.getPolicyTimeZoneShift(),
UserAccount.setPolicyTimeZoneShift(int),
Constant Field Valuespublic static final int DAY_SUNDAY
public static final int DAY_MONDAY
public static final int DAY_TUESDAY
public static final int DAY_WEDNESDAY
public static final int DAY_THURSDAY
public static final int DAY_FRIDAY
public static final int DAY_SATURDAY
| Constructor Detail |
public UserAccount(Server server)
update() is called.
server - the server where the new account is to be created| Method Detail |
public UserAccount copy()
UserAccount.isEqualTo(com.starbase.starteam.UserAccount)public int getID()
public java.lang.String getName()
public void setName(java.lang.String name)
name - the new name for this userpublic java.lang.String getEmailAddress()
public void setEmailAddress(java.lang.String emailAddress)
emailAddress - the new email address for this userpublic java.lang.String getPostalAddress()
public void setPostalAddress(java.lang.String postalAddress)
postalAddress - the user's new postal addresspublic java.lang.String getFaxNumber()
public void setFaxNumber(java.lang.String faxNumber)
faxNumber - the user's new fax number.public java.lang.String getPagerNumber()
public void setPagerNumber(java.lang.String pagerNumber)
pagerNumber - the user's new pager number.public java.lang.String getPhoneNumber()
public void setPhoneNumber(java.lang.String phoneNumber)
phoneNumber - the user's new phone number.public java.lang.String getVoiceMailNumber()
public void setVoiceMailNumber(java.lang.String voiceMailNumber)
voiceMailNumber - the user's new voice mail number.public java.lang.String getLogOnName()
public void setLogOnName(java.lang.String logOnName)
logOnName - the new logon name for this accountpublic void setPassword(java.lang.String password)
password - the new password for this accountpublic int getAccountStatus()
UserAccount.STATUS_NORMAL,
UserAccount.STATUS_LOCKED_OUT,
UserAccount.STATUS_SUSPENDED,
UserAccount.STATUS_PASSWORD_CHANGE_REQUIRED,
UserAccount.STATUS_PASSWORD_CHANGE_NOTIFIEDpublic void setAccountStatus(int status)
status - this account's new status.UserAccount.STATUS_NORMAL,
UserAccount.STATUS_LOCKED_OUT,
UserAccount.STATUS_SUSPENDED,
UserAccount.STATUS_PASSWORD_CHANGE_REQUIRED,
UserAccount.STATUS_PASSWORD_CHANGE_NOTIFIEDpublic int getAccessPolicy()
UserAccount.POLICY_ALWAYS,
UserAccount.POLICY_STANDARD,
UserAccount.POLICY_CUSTOMpublic void setAccessPolicy(int policy)
policy - this account's new access policyUserAccount.POLICY_ALWAYS,
UserAccount.POLICY_STANDARD,
UserAccount.POLICY_CUSTOMpublic int getPolicyTimeZoneShift()
POLICY_ALWAYS. The value is in hours from GMT.
UserAccount.setPolicyTimeZoneShift(int)public void setPolicyTimeZoneShift(int shift)
shift - the new timezone shift for this account's access policy.UserAccount.getPolicyTimeZoneShift()public int getLogOnCount()
public java.lang.String[] getWorkstations()
public boolean getValidateThroughDirectoryService()
public void setValidateThroughDirectoryService(boolean bValidateThroughDirectoryService)
bValidateThroughDirectoryService - whether or not to validate through Directory Servicepublic java.lang.String getDistinguishedName()
public void setDistinguishedName(java.lang.String distinguishedName)
distinguishedName - the Distinguished Name for Directory Service.public boolean getHasFixedLicense()
public void setHasFixedLicense(boolean bFixed)
bFixed - True if this user has a fixed ( named-user ) license;
false if this user has a floating ( concurrent ) license.
Note that it is an error to set a floating license if the
StarTeam Server does not support them.SupportedFeatures.hasConcurrentLicensing()public int getAccessStartTime1(int dayOfWeek)
dayOfWeek - must be a valid day of the week
UserAccount.DAY_SUNDAY,
UserAccount.DAY_MONDAY,
UserAccount.DAY_TUESDAY,
UserAccount.DAY_WEDNESDAY,
UserAccount.DAY_THURSDAY,
UserAccount.DAY_FRIDAY,
UserAccount.DAY_SATURDAYpublic int getAccessStartTime2(int dayOfWeek)
dayOfWeek - must be a valid day of the week
UserAccount.DAY_SUNDAY,
UserAccount.DAY_MONDAY,
UserAccount.DAY_TUESDAY,
UserAccount.DAY_WEDNESDAY,
UserAccount.DAY_THURSDAY,
UserAccount.DAY_FRIDAY,
UserAccount.DAY_SATURDAYpublic int getAccessEndTime1(int dayOfWeek)
dayOfWeek - must be a valid day of the week
UserAccount.DAY_SUNDAY,
UserAccount.DAY_MONDAY,
UserAccount.DAY_TUESDAY,
UserAccount.DAY_WEDNESDAY,
UserAccount.DAY_THURSDAY,
UserAccount.DAY_FRIDAY,
UserAccount.DAY_SATURDAYpublic int getAccessEndTime2(int dayOfWeek)
dayOfWeek - a valid day of the week, e.g. DAY_SUNDAY
UserAccount.DAY_SUNDAY,
UserAccount.DAY_MONDAY,
UserAccount.DAY_TUESDAY,
UserAccount.DAY_WEDNESDAY,
UserAccount.DAY_THURSDAY,
UserAccount.DAY_FRIDAY,
UserAccount.DAY_SATURDAY
public void setAccessTimes(int dayOfWeek,
int start1,
int end1,
int start2,
int end2)
dayOfWeek - a valid day of the week, e.g. DAY_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 isNew()
public java.lang.String toString()
toString in class java.lang.Objectpublic void addToGroupAccount(GroupAccount groupAccount)
update() to save the changes on the server.
groupAccount - the group account to which this user will be added.public void removeFromGroupAccount(GroupAccount groupAccount)
update() to save the changes on the server.
groupAccount - the group account from which this user
will be removed.public GroupAccount[] getGroupAccounts()
public void update()
public void remove()
public void unlock()
java.lang.IllegalStateException - if the UserAccount has not yet been created on the serverpublic void reactivate()
java.lang.IllegalStateException - if the UserAccount has not yet been created on the serverpublic void suspend()
java.lang.IllegalStateException - if the UserAccount has not yet been created on the serverpublic void forcePasswordChange()
java.lang.IllegalStateException - if the UserAccount has not yet been created on the serverpublic void forceLogoff()
java.lang.IllegalStateException - if the UserAccount has not yet been created on the serverpublic boolean isEqualTo(UserAccount account)
account - The UserAccount to be compared with this one.
UserAccount.copy()public OLEDate getCreatedTime()
public int getLicenseType()
UserAccount.LICENSE_TYPE_STARTEAM,
UserAccount.LICENSE_TYPE_LICENSE_SERVER,
UserAccount.LICENSE_TYPE_UNASSIGNED,
SupportedFeatures.hasBLSLicensing()public void setLicenseType(int nLicenseType)
nLicenseType - The type of license assigned to this user.public int getBLSSlipGuid()
SupportedFeatures.hasBLSLicensing()public void setBLSSlipGuid(int nSlipGuid)
nSlipGuid - The Slip ID assigned to this license.ServerLicenseInfo.getBLSLicenses(),
SupportedFeatures.hasBLSLicensing()public boolean equals(java.lang.Object source)
equals in class java.lang.Objectsource - Object the source to comapre with
public int hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||