|
|||||||||||
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.group.GroupAdministrationBean
This class is responsible for the administration of groups in BankFrame MCA.
Constructor Summary | |
GroupAdministrationBean()
|
Method Summary | |
void |
addGroupPermission(java.lang.String groupId,
java.lang.String permission)
This method updates the EJBGROUP_PERMISSIONS table with a list of specified permissions for a group. |
void |
createGroup(java.lang.String groupId,
java.lang.String groupName)
Creates a new group. |
void |
deleteGroup(java.lang.String groupId)
This method deletes a group. |
void |
deleteGroupPermission(java.lang.String groupId,
java.lang.String permission)
This method deletes the a permission associated with a group. |
java.util.Enumeration |
getAllGroups()
This method gets all system registered groups. |
EJBGroup |
getGroup(java.lang.String groupId)
This method gets an instance of the EJBGroup by its primary key. |
java.util.Vector |
getGroupMembers(java.lang.String groupId)
This method displays the users associated with a particular group. |
java.util.Vector |
getGroupPermissions(java.lang.String groupId)
This method gets the permissions specified for a group in the EJBGROUP_PERMISSIONS table |
java.util.Vector |
getUnassignedGroups(java.lang.String userId)
This methods generates a vector of groupIds which specify the groups a specified user is NOT a member of. |
java.util.Vector |
getUserGroupPermissions(java.lang.String userId)
This method returns the total permissions for each group a user is a member of. |
java.util.Vector |
getUserGroups(java.lang.String userId)
This method gets the groups a user is a member of. |
java.util.Vector |
processDataPacket(DataPacket data)
This method is the Interface to the client. |
java.util.Vector |
unassignedGroupPermissions(java.lang.String groupId)
Returns the permissions a group 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 GroupAdministrationBean()
Method Detail |
public void addGroupPermission(java.lang.String groupId, java.lang.String permission) throws ProcessingErrorException
groupId
- the id of group to update with permissionspermission
- a string of permissions to update the specified group with
ProcessingErrorException
- if processing fails.public void createGroup(java.lang.String groupId, java.lang.String groupName) throws ProcessingErrorException
groupId
- the id of group to creategroupName
- the name of group to create
ProcessingErrorException
- if processing fails.public void deleteGroup(java.lang.String groupId) throws ProcessingErrorException
groupId
- the id of group to delete
ProcessingErrorException
- if processing failspublic void deleteGroupPermission(java.lang.String groupId, java.lang.String permission) throws ProcessingErrorException
groupId
- ID of grouppermission
- a string to remove from this group
ProcessingErrorException
- if processing fails.public java.util.Enumeration getAllGroups() throws ProcessingErrorException
ProcessingErrorException
- if processing fails.public EJBGroup getGroup(java.lang.String groupId) throws ProcessingErrorException
groupId
- the id of group to get
ProcessingErrorException
- if processing fails.public java.util.Vector getGroupMembers(java.lang.String groupId) throws ProcessingErrorException
groupId
- the id of group to display the members of.
ProcessingErrorException
- if processing fails.public java.util.Vector getGroupPermissions(java.lang.String groupId) throws ProcessingErrorException
groupId
- the id of the group to fetch permissions for
ProcessingErrorException
- if processing fails.public java.util.Vector getUnassignedGroups(java.lang.String userId) throws ProcessingErrorException
userId
- the id of the user to check for
ProcessingErrorException
- if processing fails.public java.util.Vector getUserGroupPermissions(java.lang.String userId) throws ProcessingErrorException
userId
- the if of the user to fetch group permissions for
ProcessingErrorException
- if processing failspublic java.util.Vector getUserGroups(java.lang.String userId) throws ProcessingErrorException
userId
- the user to check for
ProcessingErrorException
- if processing failspublic java.util.Vector processDataPacket(DataPacket data) throws ProcessingErrorException
processDataPacket
in interface ESession
processDataPacket
in class ESessionBean
data
- the request
ProcessingErrorException
public java.util.Vector unassignedGroupPermissions(java.lang.String groupId) throws ProcessingErrorException
groupId
- the id of the group 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 |