businessmodel
Class User

java.lang.Object
  |
  +--businessmodel.User
Direct Known Subclasses:
PersistentUser

public class User
extends java.lang.Object
implements _UserIntfOperations, Testable

This class implements the _UserIntfOperations interface, used by the tie class generated by idltojava.


Field Summary
protected  java.lang.String m_emailAddress
           
protected  java.lang.String m_faxNumber
           
protected  java.lang.String m_firstName
           
protected  java.lang.String m_lastName
           
protected  java.lang.String m_phoneNumber
           
protected  int m_privLevel
           
protected  java.lang.String m_userID
           
 
Constructor Summary
User()
          default constructor
 
Method Summary
 void commit(java.lang.String userid)
          Applies all changes made to the User
 java.lang.String getEmail()
          Accessor method
 java.lang.String getFax()
          Accessor method
 java.lang.String getFirstName()
          Accessor method
 java.lang.String getLastName()
          Accessor method
 java.lang.String getPhone()
          Accessor method
 int getPriv()
          Accessor method
 java.lang.String getUserID()
          Accessor method
 void setEmail(java.lang.String email)
          Accessor method
 void setFax(java.lang.String fax)
          Accessor method
 void setFirstName(java.lang.String name)
          Accessor method
 void setLastName(java.lang.String name)
          Accessor method
 void setPhone(java.lang.String phone)
          Accessor method
 void setPriv(int priv)
          Accessor method
 void setUserID(java.lang.String id)
          Accessor method
 boolean TestUnit()
          TestUnit method implemented to support the apputil.Testable interface.
 java.lang.String toString()
          This method returns the internal state of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_privLevel

protected int m_privLevel

m_userID

protected java.lang.String m_userID

m_lastName

protected java.lang.String m_lastName

m_firstName

protected java.lang.String m_firstName

m_phoneNumber

protected java.lang.String m_phoneNumber

m_faxNumber

protected java.lang.String m_faxNumber

m_emailAddress

protected java.lang.String m_emailAddress
Constructor Detail

User

public User()
default constructor
Method Detail

getUserID

public java.lang.String getUserID()
Accessor method
Specified by:
getUserID in interface _UserIntfOperations

getLastName

public java.lang.String getLastName()
Accessor method
Specified by:
getLastName in interface _UserIntfOperations

getFirstName

public java.lang.String getFirstName()
Accessor method
Specified by:
getFirstName in interface _UserIntfOperations

getPhone

public java.lang.String getPhone()
Accessor method
Specified by:
getPhone in interface _UserIntfOperations

getFax

public java.lang.String getFax()
Accessor method
Specified by:
getFax in interface _UserIntfOperations

getEmail

public java.lang.String getEmail()
Accessor method
Specified by:
getEmail in interface _UserIntfOperations

getPriv

public int getPriv()
Accessor method
Specified by:
getPriv in interface _UserIntfOperations

setLastName

public void setLastName(java.lang.String name)
Accessor method
Specified by:
setLastName in interface _UserIntfOperations

setUserID

public void setUserID(java.lang.String id)
Accessor method
Specified by:
setUserID in interface _UserIntfOperations

setFirstName

public void setFirstName(java.lang.String name)
Accessor method
Specified by:
setFirstName in interface _UserIntfOperations

setPhone

public void setPhone(java.lang.String phone)
Accessor method
Specified by:
setPhone in interface _UserIntfOperations

setFax

public void setFax(java.lang.String fax)
Accessor method
Specified by:
setFax in interface _UserIntfOperations

setEmail

public void setEmail(java.lang.String email)
Accessor method
Specified by:
setEmail in interface _UserIntfOperations

setPriv

public void setPriv(int priv)
Accessor method
Specified by:
setPriv in interface _UserIntfOperations

commit

public void commit(java.lang.String userid)
            throws UpdateException,
                   AppSecurityException
Applies all changes made to the User
Specified by:
commit in interface _UserIntfOperations
Parameters:
userid - id of user applying commit
Throws:
UpdateException - thrown if the defect cannot be changed
AppSecurityException - thrown if the user does not have sufficient privileges

toString

public java.lang.String toString()
This method returns the internal state of the object. It is primarily used for debugging.
Returns:
returns string representation of internal state of object
Overrides:
toString in class java.lang.Object

TestUnit

public boolean TestUnit()
TestUnit method implemented to support the apputil.Testable interface. This enables the class to be tested by the test harness.
Specified by:
TestUnit in interface Testable