com.bankframe.services.accesscontrol.administration.user
Class UserAdministrationBean

java.lang.Object
  extended bycom.bankframe.ejb.ESessionBean
      extended bycom.bankframe.services.accesscontrol.administration.user.UserAdministrationBean
All Implemented Interfaces:
javax.ejb.EnterpriseBean, ESession, java.io.Serializable, javax.ejb.SessionBean

public class UserAdministrationBean
extends ESessionBean

This class is responsible for the administration of users in BankFrame MCA.

Author:
Rob O'Neill
See Also:
Serialized Form

Constructor Summary
UserAdministrationBean()
           
 
Method Summary
 void addUserPermission(java.lang.String userId, java.lang.String permission)
          This method updates the EJBUSER_PERMISSIONS table with a permissions for a user.
 void addUserToGroup(java.lang.String userId, java.lang.String group)
          This method will add a specified user to a group.
 void createUser(java.lang.String userId, java.lang.String userName, java.lang.String password)
          This method creates a new user.
 void deleteUser(java.lang.String userId)
          This method deletes a user.
 void deleteUserFromGroup(java.lang.String userId, java.lang.String group)
          This method will remove a specified user to a group.
 void deleteUserPermission(java.lang.String userId, java.lang.String permission)
          This method deletes a permission associated with a user.
 java.util.Enumeration getAllUsers()
          This method will get all the users currently registered in the system.
 EJBUser getUser(java.lang.String userId)
          This method finds a user by its primary key UserID.
 java.util.Vector getUserPermissions(java.lang.String userId)
          This method gets the permissions specified for a user.
 java.util.Vector processDataPacket(DataPacket data)
          This method is the interface to the client.
 java.util.Vector unassignedUserPermissions(java.lang.String userId)
          This method returns the permissions a user does not have.
 
Methods inherited from class com.bankframe.ejb.ESessionBean
audit, ejbActivate, ejbCreate, ejbLoad, ejbPassivate, ejbPostCreate, ejbRemove, ejbStore, getSessionContext, processDataPackets, setSessionContext, unsetSessionContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAdministrationBean

public UserAdministrationBean()
Method Detail

addUserPermission

public void addUserPermission(java.lang.String userId,
                              java.lang.String permission)
                       throws ProcessingErrorException
This method updates the EJBUSER_PERMISSIONS table with a permissions for a user.

Parameters:
userId - the id of user to update
permission - a permission to update the specified user with
Throws:
ProcessingErrorException - if processing fails

addUserToGroup

public void addUserToGroup(java.lang.String userId,
                           java.lang.String group)
                    throws ProcessingErrorException
This method will add a specified user to a group.

Parameters:
userId - ID of user to add to group
group - String group to add the specified user to
Throws:
ProcessingErrorException - if processing fails
java.rmi.RemoteException

createUser

public void createUser(java.lang.String userId,
                       java.lang.String userName,
                       java.lang.String password)
                throws ProcessingErrorException
This method creates a new user.

Parameters:
userId - the id of the user to create
userName - the name of the user to create
password - the password to assign to the new user
Throws:
ProcessingErrorException - if processing fails

deleteUser

public void deleteUser(java.lang.String userId)
                throws ProcessingErrorException
This method deletes a user.

Parameters:
userId - the ID of the user to delete
Throws:
ProcessingErrorException - if processing fails

deleteUserFromGroup

public void deleteUserFromGroup(java.lang.String userId,
                                java.lang.String group)
                         throws ProcessingErrorException
This method will remove a specified user to a group.

Parameters:
userId - the id of the user to add to a group
group - the group to remove the specified userfrom
Throws:
ProcessingErrorException - if processing fails

deleteUserPermission

public void deleteUserPermission(java.lang.String userId,
                                 java.lang.String permission)
                          throws ProcessingErrorException
This method deletes a permission associated with a user.

Parameters:
userId - the id of the user
permission - the permission to remove from this user
Throws:
ProcessingErrorException - if processing fails

getAllUsers

public java.util.Enumeration getAllUsers()
                                  throws ProcessingErrorException
This method will get all the users currently registered in the system.

Returns:
an enumeration of Users
Throws:
ProcessingErrorException - if processing fails

getUser

public EJBUser getUser(java.lang.String userId)
                throws ProcessingErrorException
This method finds a user by its primary key UserID.

Parameters:
userId - the id of the user to check
Returns:
true if group exists, otherwise false
Throws:
ProcessingErrorException - if processing fails

getUserPermissions

public java.util.Vector getUserPermissions(java.lang.String userId)
                                    throws ProcessingErrorException
This method gets the permissions specified for a user.

Parameters:
userId - the id of the user to fetch permissions for
Returns:
a vector of requestIds denoting permissions for the specified user
Throws:
ProcessingErrorException - if processing fails

processDataPacket

public java.util.Vector processDataPacket(DataPacket data)
                                   throws ProcessingErrorException
This method is the interface to the client. It accepts the request for performing the various operations for administrating routes.

Specified by:
processDataPacket in interface ESession
Specified by:
processDataPacket in class ESessionBean
Parameters:
data - the request DataPackets
Returns:
a vector containing the response
Throws:
ProcessingErrorException - if processing fails

unassignedUserPermissions

public java.util.Vector unassignedUserPermissions(java.lang.String userId)
                                           throws ProcessingErrorException
This method returns the permissions a user does not have.

Parameters:
userId - the id of the user to check unassigned permissions for
Returns:
a vector of permissions.
Throws:
ProcessingErrorException - if processing fails


Copyright © 2004 Siebel Systems, Inc. All rights reserved.