|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.team.fvt.tests.config.User
com.ibm.team.fvt.tests.clm.config.ClmUser
public class ClmUser
Manages a CLM user.
The typical specialization for a CLM user is to tell whether it's a default user
or not (see isDefaultUser()
).
Note that, by default, a user is not a Jazz Admin.
Field Summary |
---|
Fields inherited from interface com.ibm.team.fvt.tests.clm.pages.jts.admin.ClmLicensingConstants |
---|
ALL_LICENSES, CCM_COLLECTOR, CCM_DATA_COLLECTOR, CLM_CONTRIBUTOR, CLM_PRACTITIONER, CLM_STAKEHOLDER, DEFAULT_LICENSES, LPA_APPLICATION_INTERNAL, QM_DATA_COLLECTOR, RM_ANALYST, RM_APPLICATION_INTERNAL, RM_CONTRIBUTOR, RM_DATA_COLLECTOR, RQM_CONNECTOR, RQM_CONTRIBUTOR, RQM_QUALITY_PROFESSIONAL, RTC_BUILD_SYSTEM, RTC_CLEARCASE_SYNCHRONIZER, RTC_CLEARQUEST_SYNCHRONIZER, RTC_CONTRIBUTOR, RTC_DEVELOPER, RTC_DEVELOPER_PLATFORMS, RTC_STAKEHOLDER, TRS_CONSUMER_INTERNAL |
Fields inherited from interface com.ibm.team.fvt.tests.config.UserConstants |
---|
EMAIL_ID, MAIL_DOMAIN_ID, PASSWORD_ID, USERID_ID, USERNAME_ID |
Constructor Summary | |
---|---|
ClmUser(ClmClientAccessLicense license)
Create a user instance with the given license. |
|
ClmUser(java.lang.String userId)
Create a user instance with a default user ID. |
|
ClmUser(java.lang.String userId,
ClmClientAccessLicense... userLicenses)
Create a user instance with a default user ID. |
|
ClmUser(java.lang.String prefix,
java.lang.String userId)
Create a user instance using a property prefix and a default user ID. |
|
ClmUser(java.lang.String prefix,
java.lang.String userId,
boolean defaultUser)
Create a user instance using a property prefix and a default user ID. |
|
ClmUser(java.lang.String prefix,
java.lang.String userId,
boolean defaultUser,
boolean adminUser)
Create a user instance using a property prefix and a default user ID. |
|
ClmUser(java.lang.String prefix,
java.lang.String userId,
boolean defaultUser,
boolean adminUser,
ClmClientAccessLicense... userLicenses)
Create a user instance using a property prefix and a default user ID. |
|
ClmUser(java.lang.String prefix,
java.lang.String userId,
boolean defaultUser,
ClmClientAccessLicense... licenses)
Create a user instance using a property prefix and a default user ID. |
|
ClmUser(java.lang.String prefix,
java.lang.String userId,
ClmClientAccessLicense... licenses)
Create a user instance using a property prefix and a default user ID. |
|
ClmUser(java.lang.String userId,
java.lang.String userName,
java.lang.String password,
java.lang.String email)
Create a user instance with given information. |
|
ClmUser(java.lang.String userId,
java.lang.String userName,
java.lang.String password,
java.lang.String email,
boolean adminUser)
Create a user instance with given information. |
|
ClmUser(java.lang.String userId,
java.lang.String userName,
java.lang.String password,
java.lang.String email,
boolean adminUser,
ClmClientAccessLicense... userLicenses)
Create a user instance with given information. |
|
ClmUser(java.lang.String userId,
java.lang.String userName,
java.lang.String password,
java.lang.String email,
ClmClientAccessLicense... userLicenses)
Create a user instance with given information. |
Method Summary | |
---|---|
java.util.List<ClmClientAccessLicense> |
getLicenses()
Return the user licenses. |
boolean |
hasLicense(ClmClientAccessLicense license)
Returns whether current user has the given license or not. |
boolean |
hasReadAccess()
Returns whether current user has read access or not. |
boolean |
hasRtcWriteAccess()
Returns whether current user has write access for CCM application. |
boolean |
isDefaultUser()
Return whether the current user is the default user. |
boolean |
isJazzAdmin()
Return whether the current user has Jazz Admin CAL or not. |
void |
setAdmin(boolean adminUser)
Set whether the current user has Jazz Admin CAL or not. |
Methods inherited from class com.ibm.team.fvt.tests.config.User |
---|
equals, getEmail, getId, getName, getPassword, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ClmUser(ClmClientAccessLicense license)
The user will have its ID, name and password be set with the license key.
Its e-mail value will be set to userId+"@example.com"
Note that the created user will not be considered as a default user.
license
- The license set to the user.ClmClientAccessLicense.key()
public ClmUser(java.lang.String userId)
The user will have its ID, name and password be set with the given ID value.
Its e-mail value will be set to userId+"@example.com"
Note that the created user will not be considered as a default user. It will also have all licenses activated by default.
userId
- The default user ID used if no property matching the prefix is found.public ClmUser(java.lang.String userId, ClmClientAccessLicense... userLicenses)
The user will have its ID, name and password be set with the given ID value.
Its e-mail value will be set to userId+"@example.com"
Note that the created user will not be considered as a default user. It will also have all licenses activated by default.
userId
- The default user ID used if no property matching the prefix is found.userLicenses
- The licenses assigned to the current user. If null
then all licenses are available.public ClmUser(java.lang.String prefix, java.lang.String userId)
When prefix is not null
, then information for user are got from
following system properties:
prefixUsername
: The user nameprefixUserID
: The user IDprefixPassword
: The user passwordprefixEmail
: The user e-mail
If prefix is null
or if no crresponding system properties are
defined, then the user ID, the user name and user password will be set with
the default user ID value. The e-mail value will be set to
userId+"@example.com"
Note that the created user will not be considered as a default user. It will also have all licenses activated by default.
prefix
- The user properties prefix to look at to initialize the user information.userId
- The default user ID used if no property matching the prefix is found.public ClmUser(java.lang.String prefix, java.lang.String userId, boolean defaultUser)
When prefix is not null
, then information for user are got from
following system properties:
prefixUsername
: The user nameprefixUserID
: The user IDprefixPassword
: The user passwordprefixEmail
: The user e-mail
If prefix is null
or if no corresponding system properties are
defined, then the user ID, the user name and user password will be set with
the default user ID value. The e-mail value will be set to
userId+"@example.com"
Note that the created user have all licenses activated by default.
prefix
- The user properties prefix to look at to initialize the user information.userId
- The default user ID used if no property matching the prefix is found.defaultUser
- Tells whether the created user is a default user (e.g. etl_user) or not.public ClmUser(java.lang.String prefix, java.lang.String userId, boolean defaultUser, boolean adminUser)
When prefix is not null
, then information for user are got from
following system properties:
prefixUsername
: The user nameprefixUserID
: The user IDprefixPassword
: The user passwordprefixEmail
: The user e-mail
If prefix is null
or if no corresponding system properties are
defined, then the user ID, the user name and user password will be set with
the default user ID value. The e-mail value will be set to
userId+"@example.com"
Note that the created user have all licenses activated by default.
prefix
- The user properties prefix to look at to initialize the user information.userId
- The default user ID used if no property matching the prefix is found.defaultUser
- Tells whether the created user is a default user (e.g. etl_user) or not.adminUser
- Tells whether the created user is an admin user or not.public ClmUser(java.lang.String prefix, java.lang.String userId, boolean defaultUser, boolean adminUser, ClmClientAccessLicense... userLicenses)
When prefix is not null
, then information for user are got from
following system properties:
prefixUsername
: The user nameprefixUserID
: The user IDprefixPassword
: The user passwordprefixEmail
: The user e-mail
If prefix is null
or if no corresponding system properties are
defined, then the user ID, the user name and user password will be set with
the default user ID value. The e-mail value will be set to
userId+"@example.com"
Note that the created user have all licenses activated by default.
prefix
- The user properties prefix to look at to initialize the user information.userId
- The default user ID used if no property matching the prefix is found.defaultUser
- Tells whether the created user is a default user (e.g. etl_user) or not.adminUser
- Tells whether the created user is an admin user or not.userLicenses
- The licenses assigned to the current user. If null
then all licenses are available.public ClmUser(java.lang.String prefix, java.lang.String userId, boolean defaultUser, ClmClientAccessLicense... licenses)
When prefix is not null
, then information for user are got from
following system properties:
prefixUsername
: The user nameprefixUserID
: The user IDprefixPassword
: The user passwordprefixEmail
: The user e-mail
If prefix is null
or if no corresponding system properties are
defined, then the user ID, the user name and user password will be set with
the default user ID value. The e-mail value will be set to
userId+"@example.com"
Note that the created user have all licenses activated by default.
prefix
- The user properties prefix to look at to initialize the user information.userId
- The default user ID used if no property matching the prefix is found.defaultUser
- Tells whether the created user is a default user (e.g. etl_user) or not.licenses
- The licenses assigned to the current user. If null
then all licenses are available.public ClmUser(java.lang.String prefix, java.lang.String userId, ClmClientAccessLicense... licenses)
When prefix is not null
, then information for user are got from
following system properties:
prefixUsername
: The user nameprefixUserID
: The user IDprefixPassword
: The user passwordprefixEmail
: The user e-mail
If prefix is null
or if no crresponding system properties are
defined, then the user ID, the user name and user password will be set with
the default user ID value. The e-mail value will be set to
userId+"@example.com"
Note that the created user will not be considered as a default user. It will also have all licenses activated by default.
prefix
- The user properties prefix to look at to initialize the user information.userId
- The default user ID used if no property matching the prefix is found.licenses
- The licenses assigned to the current user. If null
then all licenses are available.public ClmUser(java.lang.String userId, java.lang.String userName, java.lang.String password, java.lang.String email)
Note that the created user will not be considered as a default user. It will also have all licenses activated by default.
userId
- The user IDuserName
- The user namepassword
- The user passwordemail
- The use e-mailpublic ClmUser(java.lang.String userId, java.lang.String userName, java.lang.String password, java.lang.String email, boolean adminUser)
Note that the created user will not be considered as a default user. It will also have all licenses activated by default.
userId
- The user IDuserName
- The user namepassword
- The user passwordemail
- The use e-mailadminUser
- Tells whether the created user is an admin user or not.public ClmUser(java.lang.String userId, java.lang.String userName, java.lang.String password, java.lang.String email, boolean adminUser, ClmClientAccessLicense... userLicenses)
Note that the created user will not be considered as a default user.
userId
- The user IDuserName
- The user namepassword
- The user passwordemail
- The use e-mailadminUser
- Tells whether the created user is an admin user or not.userLicenses
- The licenses assigned to the current user. If null
then all licenses are available.public ClmUser(java.lang.String userId, java.lang.String userName, java.lang.String password, java.lang.String email, ClmClientAccessLicense... userLicenses)
Note that the created user will not be considered as a default user. It will also have all licenses activated by default.
userId
- The user IDuserName
- The user namepassword
- The user passwordemail
- The use e-mailuserLicenses
- The licenses assigned to the current user. If null
then all licenses are available.Method Detail |
---|
public java.util.List<ClmClientAccessLicense> getLicenses()
List
of ClmClientAccessLicense
.public boolean hasLicense(ClmClientAccessLicense license)
license
- The license name
true
if the current user has the given license,
false
otherwise.public boolean hasRtcWriteAccess()
true
or false
.public boolean hasReadAccess()
true
if the current user has at least one license set,
false
otherwise.public boolean isDefaultUser()
false
by default.public boolean isJazzAdmin()
true
if the user is a Jazz Admin, false
otherwise.public void setAdmin(boolean adminUser)
adminUser
- Tells whether the user should be admin or not.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |