|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.ejb.ESessionBean com.bankframe.services.accesscontrol.administration.user.UserAdministrationBean
This class is responsible for the administration of users in BankFrame MCA.
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 |
public UserAdministrationBean()
Method Detail |
public void addUserPermission(java.lang.String userId, java.lang.String permission) throws ProcessingErrorException
userId
- the id of user to updatepermission
- a permission to update the specified user with
ProcessingErrorException
- if processing failspublic void addUserToGroup(java.lang.String userId, java.lang.String group) throws ProcessingErrorException
userId
- ID of user to add to groupgroup
- String group to add the specified user to
ProcessingErrorException
- if processing fails
java.rmi.RemoteException
public void createUser(java.lang.String userId, java.lang.String userName, java.lang.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 failspublic void deleteUser(java.lang.String userId) throws ProcessingErrorException
userId
- the ID of the user to delete
ProcessingErrorException
- if processing failspublic void deleteUserFromGroup(java.lang.String userId, java.lang.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 failspublic void deleteUserPermission(java.lang.String userId, java.lang.String permission) throws ProcessingErrorException
userId
- the id of the userpermission
- the permission to remove from this user
ProcessingErrorException
- if processing failspublic java.util.Enumeration getAllUsers() throws ProcessingErrorException
ProcessingErrorException
- if processing failspublic EJBUser getUser(java.lang.String userId) throws ProcessingErrorException
userId
- the id of the user to check
ProcessingErrorException
- if processing failspublic java.util.Vector getUserPermissions(java.lang.String userId) throws ProcessingErrorException
userId
- the id of the user to fetch permissions for
ProcessingErrorException
- if processing failspublic java.util.Vector processDataPacket(DataPacket data) throws ProcessingErrorException
processDataPacket
in interface ESession
processDataPacket
in class ESessionBean
data
- the request DataPackets
ProcessingErrorException
- if processing failspublic java.util.Vector unassignedUserPermissions(java.lang.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 |