|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.ejb.ESessionBean
com.bankframe.services.accesscontrol.administration.user.UserAdministrationBean
public class UserAdministrationBean
This class is responsible for the administration of users in BankFrame MCA.
| Constructor Summary | |
|---|---|
UserAdministrationBean()
|
|
| Method Summary | |
|---|---|
void |
addUserPermission(String userId,
String permission)
This method updates the EJBUSER_PERMISSIONS table with a permissions for a user. |
void |
addUserToGroup(String userId,
String group)
This method will add a specified user to a group. |
void |
createUser(String userId,
String userName,
String password)
This method creates a new user. |
void |
deleteUser(String userId)
This method deletes a user. |
void |
deleteUserFromGroup(String userId,
String group)
This method will remove a specified user to a group. |
void |
deleteUserPermission(String userId,
String permission)
This method deletes a permission associated with a user. |
Enumeration |
getAllUsers()
This method will get all the users currently registered in the system. |
EJBUser |
getUser(String userId)
This method finds a user by its primary key UserID. |
Vector |
getUserPermissions(String userId)
This method gets the permissions specified for a user. |
Vector |
processDataPacket(DataPacket data)
This method is the interface to the client. |
Vector |
unassignedUserPermissions(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 |
|---|
public UserAdministrationBean()
| Method Detail |
|---|
public void addUserPermission(String userId,
String permission)
throws ProcessingErrorException
userId - the id of user to updatepermission - a permission to update the specified user with
ProcessingErrorException - if processing fails
public void addUserToGroup(String userId,
String group)
throws ProcessingErrorException
userId - ID of user to add to groupgroup - String group to add the specified user to
ProcessingErrorException - if processing fails
RemoteException
public void createUser(String userId,
String userName,
String password)
throws ProcessingErrorException
userId - the id of the user to createuserName - the name of the user to createpassword - the password to assign to the new user
ProcessingErrorException - if processing fails
public void deleteUser(String userId)
throws ProcessingErrorException
userId - the ID of the user to delete
ProcessingErrorException - if processing fails
public void deleteUserFromGroup(String userId,
String group)
throws ProcessingErrorException
userId - the id of the user to add to a groupgroup - the group to remove the specified userfrom
ProcessingErrorException - if processing fails
public void deleteUserPermission(String userId,
String permission)
throws ProcessingErrorException
userId - the id of the userpermission - the permission to remove from this user
ProcessingErrorException - if processing fails
public Enumeration getAllUsers()
throws ProcessingErrorException
ProcessingErrorException - if processing fails
public EJBUser getUser(String userId)
throws ProcessingErrorException
userId - the id of the user to check
ProcessingErrorException - if processing fails
public Vector getUserPermissions(String userId)
throws ProcessingErrorException
userId - the id of the user to fetch permissions for
ProcessingErrorException - if processing fails
public Vector processDataPacket(DataPacket data)
throws ProcessingErrorException
processDataPacket in interface ESessionprocessDataPacket in class ESessionBeandata - the request DataPackets
ProcessingErrorException - if processing fails
public Vector unassignedUserPermissions(String userId)
throws ProcessingErrorException
userId - the id of the user to check unassigned permissions for
ProcessingErrorException - if processing fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||