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