businesslogic
Class UserFactory

java.lang.Object
  |
  +--businesslogic.UserFactory

public class UserFactory
extends java.lang.Object
implements _UserFactoryIntfOperations

This class provides an implementation of the _UserFactoryIntfOperations, used by the tie class generated by idltojava. This class provides a factory for creating and accessing User objects maintained by the application.


Field Summary
 DefectPolicy m_DefectPolicy
           
 
Constructor Summary
UserFactory(DefectPolicy thePolicy)
          Constructor
 
Method Summary
 DefectPolicy getPolicyObject()
          accessor method
 UserIntf getUser(java.lang.String requestor, java.lang.String userid)
          retrieves user object
 java.lang.String[] getUserList()
          Retrieves an array of the user ids for all users in the system
 UserIntf NewUser(java.lang.String requestor, java.lang.String userid)
          creates user object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_DefectPolicy

public DefectPolicy m_DefectPolicy
Constructor Detail

UserFactory

public UserFactory(DefectPolicy thePolicy)
Constructor
Parameters:
thePolicy - DefectPolicy object, used to enforce application policies
Method Detail

getPolicyObject

public DefectPolicy getPolicyObject()
accessor method

NewUser

public UserIntf NewUser(java.lang.String requestor,
                        java.lang.String userid)
                 throws AlreadyExistsException,
                        AppSecurityException
creates user object
Specified by:
NewUser in interface _UserFactoryIntfOperations
Parameters:
requestor - id of requestor
userid - id of user to create
Throws:
AlreadyExistsException - thrown if userid already exists
AppSecurityException - thrown if requestor doesn't have adequete privileges

getUser

public UserIntf getUser(java.lang.String requestor,
                        java.lang.String userid)
                 throws NotFoundException,
                        AppSecurityException
retrieves user object
Specified by:
getUser in interface _UserFactoryIntfOperations
Parameters:
requestor - id of requestor
userid - id of user requested
Throws:
NotFoundException - thrown if requested user doesn't exist
AppSecurityException - thrown if requestor doesn't have adequete privileges

getUserList

public java.lang.String[] getUserList()
Retrieves an array of the user ids for all users in the system
Specified by:
getUserList in interface _UserFactoryIntfOperations
Returns:
returns an array of Strings containing the user ids