com.ibm.b2bi.im.ams
Class UserCredentialsBean

java.lang.Object
  |
  +--com.ibm.b2bi.im.ams.UserCredentialsBean

public class UserCredentialsBean
extends java.lang.Object
implements java.io.Serializable

This class holds the user credentials such as the roles that the user can play in a given Solution.

See Also:
Serialized Form

Field Summary
static java.lang.String copyrightNotice
           
 
Constructor Summary
UserCredentialsBean()
          Constructor.
UserCredentialsBean(com.ibm.b2bi.im.ams.AMSAccessBean amsServer)
           
UserCredentialsBean(com.ibm.b2bi.im.ams.AMSAccessBean amsServer, java.lang.String user)
          Constructor
UserCredentialsBean(com.ibm.b2bi.im.ams.AMSAccessBean amsServer, java.lang.String user, java.lang.String password)
          Constructor
 
Method Summary
 java.lang.String getLoggedinUserName()
          Returns the case sensitive value of logged in user
 java.lang.String getPassword()
          Returns the user ID of the user who's credentials are held by this object.
 java.util.Vector getRoles(java.lang.String sol)
          Gets the list of roles for the given Solution name.
 java.util.Vector getSolutions()
          Returns the list of solutions available for the User in a Vector.
 java.lang.String getUserName()
          Returns the user ID of the user, all in upper case, who's credentials are held by this object.
 void setPassword(java.lang.String value)
          Sets the user ID of the user who owns this credentials.
 void setUserName(java.lang.String value)
          Sets the user ID of the user who owns this credentials.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyrightNotice

public static final java.lang.String copyrightNotice
Constructor Detail

UserCredentialsBean

public UserCredentialsBean()
Constructor.

UserCredentialsBean

public UserCredentialsBean(com.ibm.b2bi.im.ams.AMSAccessBean amsServer)
                    throws AMSClientException

UserCredentialsBean

public UserCredentialsBean(com.ibm.b2bi.im.ams.AMSAccessBean amsServer,
                           java.lang.String user)
                    throws AMSClientException
Constructor
Parameters:
userCredentials - An object of UserCredentials.
user - User ID
password - Password for the user ID

UserCredentialsBean

public UserCredentialsBean(com.ibm.b2bi.im.ams.AMSAccessBean amsServer,
                           java.lang.String user,
                           java.lang.String password)
                    throws AMSClientException
Constructor
Parameters:
userCredentials - An object of UserCredentials.
user - User ID
password - Password for the user ID
Method Detail

getLoggedinUserName

public java.lang.String getLoggedinUserName()
Returns the case sensitive value of logged in user

getPassword

public java.lang.String getPassword()
Returns the user ID of the user who's credentials are held by this object.
Returns:
User ID of the user.

getRoles

public java.util.Vector getRoles(java.lang.String sol)
                          throws AMSClientException
Gets the list of roles for the given Solution name. This builds list of role names from an array Strings into a Vector object.
Parameters:
solName - Name of the solution.
Returns:
List of role names in a Vector. Returns null if no roles are assigned for the user for the given solution.

getSolutions

public java.util.Vector getSolutions()
Returns the list of solutions available for the User in a Vector.

getUserName

public java.lang.String getUserName()
Returns the user ID of the user, all in upper case, who's credentials are held by this object.
Returns:
User ID of the user.

setPassword

public void setPassword(java.lang.String value)
Sets the user ID of the user who owns this credentials.
Parameters:
value - User ID of the user.

setUserName

public void setUserName(java.lang.String value)
Sets the user ID of the user who owns this credentials.
Parameters:
value - User ID of the user.