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.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
m_DefectPolicy
public DefectPolicy m_DefectPolicy
UserFactory
public UserFactory(DefectPolicy thePolicy)
- Constructor
- Parameters:
thePolicy
- DefectPolicy object, used to enforce application policies
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 requestoruserid
- 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 requestoruserid
- 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