scm.pub.transport
Class User_d

java.lang.Object
  extended byscm.pub.transport.User_d

public final class User_d
extends java.lang.Object

The User_d class contains all the relavent information about a particular user.


Constructor Summary
User_d(User_d user_d, scm.persistent.PUser_p puser_p, scm.persistent.CRNumDef_p numDef)
          Create a User_d instance given the suppled User_p and PUser_p persistent objects.
User_d(scm.persistent.User_p user_p)
          Create a User_d instance given the suppled User_p persistent object.
 
Method Summary
 java.util.Vector getAssignedCRs()
          Get the list of CRs assigned to this user on this project
 java.lang.String getAuxInfo()
          Get any auxillary information associated with this user.
 java.lang.String getEMailAddress()
          Get the users EMail address
 java.lang.String getLocation()
          Get the users location
 java.lang.String getPhone()
          Get the users phone number
 java.util.Vector getProjects()
          Get the list of projects that this user is assigned to.
 java.lang.String getUserId()
          Get the userid
 java.lang.String getUserName()
          Get the user names
 java.util.Vector getUserRoles()
          Get the list of user roles that this user is assigned to on this project.
 boolean isAdministrator()
          Determines whether this user is an SpectrumSCM System Administrator.
 boolean isProjectEngineer()
          Determines whether this user is an SpectrumSCM Project Engineer.
 java.lang.String toString()
          Convert this object into a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User_d

public User_d(scm.persistent.User_p user_p)
       throws java.lang.Exception
Create a User_d instance given the suppled User_p persistent object.

Throws:
java.lang.Exception - If there's a failure accessing any of the persistent object information

User_d

public User_d(User_d user_d,
              scm.persistent.PUser_p puser_p,
              scm.persistent.CRNumDef_p numDef)
       throws java.lang.Exception
Create a User_d instance given the suppled User_p and PUser_p persistent objects.

Throws:
java.lang.Exception - If there's a failure accessing any of the persistent object information
Method Detail

getAssignedCRs

public java.util.Vector getAssignedCRs()
Get the list of CRs assigned to this user on this project

Returns:
A vector of Strings as CR identifiers

getUserId

public java.lang.String getUserId()
Get the userid

Returns:
The userId as a String.

getUserName

public java.lang.String getUserName()
Get the user names

Returns:
The user name as a String.

getAuxInfo

public java.lang.String getAuxInfo()
Get any auxillary information associated with this user.

Returns:
User auxillary information.

getLocation

public java.lang.String getLocation()
Get the users location

Returns:
The users location.

getEMailAddress

public java.lang.String getEMailAddress()
Get the users EMail address

Returns:
The users EMail address.

getPhone

public java.lang.String getPhone()
Get the users phone number

Returns:
The users phone number

isAdministrator

public boolean isAdministrator()
Determines whether this user is an SpectrumSCM System Administrator.

Returns:
A boolean signalling whether this user is an admin user or not.

isProjectEngineer

public boolean isProjectEngineer()
Determines whether this user is an SpectrumSCM Project Engineer.

Returns:
A boolean signalling whether this user is an project engineer or not.

getProjects

public java.util.Vector getProjects()
Get the list of projects that this user is assigned to.

Returns:
A Vector of project names as Strings.

getUserRoles

public java.util.Vector getUserRoles()
Get the list of user roles that this user is assigned to on this project.

Returns:
A Vector of use role names as Strings.

toString

public java.lang.String toString()
Convert this object into a String.