com.bankframe.services.accesscontrol.administration.group
Class GroupAdministrationBean

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

public class GroupAdministrationBean
extends ESessionBean

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

See Also:
Serialized Form

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

GroupAdministrationBean

public GroupAdministrationBean()
Method Detail

addGroupPermission

public void addGroupPermission(java.lang.String groupId,
                               java.lang.String permission)
                        throws ProcessingErrorException
This method updates the EJBGROUP_PERMISSIONS table with a list of specified permissions for a group.

Parameters:
groupId - the id of group to update with permissions
permission - a string of permissions to update the specified group with
Throws:
ProcessingErrorException - if processing fails.

createGroup

public void createGroup(java.lang.String groupId,
                        java.lang.String groupName)
                 throws ProcessingErrorException
Creates a new group.

Parameters:
groupId - the id of group to create
groupName - the name of group to create
Throws:
ProcessingErrorException - if processing fails.

deleteGroup

public void deleteGroup(java.lang.String groupId)
                 throws ProcessingErrorException
This method deletes a group.

Parameters:
groupId - the id of group to delete
Throws:
ProcessingErrorException - if processing fails

deleteGroupPermission

public void deleteGroupPermission(java.lang.String groupId,
                                  java.lang.String permission)
                           throws ProcessingErrorException
This method deletes the a permission associated with a group.

Parameters:
groupId - ID of group
permission - a string to remove from this group
Throws:
ProcessingErrorException - if processing fails.

getAllGroups

public java.util.Enumeration getAllGroups()
                                   throws ProcessingErrorException
This method gets all system registered groups.

Returns:
an numeration of all system registered groups
Throws:
ProcessingErrorException - if processing fails.

getGroup

public EJBGroup getGroup(java.lang.String groupId)
                  throws ProcessingErrorException
This method gets an instance of the EJBGroup by its primary key.

Parameters:
groupId - the id of group to get
Returns:
EJBGroup
Throws:
ProcessingErrorException - if processing fails.

getGroupMembers

public java.util.Vector getGroupMembers(java.lang.String groupId)
                                 throws ProcessingErrorException
This method displays the users associated with a particular group.

Parameters:
groupId - the id of group to display the members of.
Returns:
a vector of the users in a particular group
Throws:
ProcessingErrorException - if processing fails.

getGroupPermissions

public java.util.Vector getGroupPermissions(java.lang.String groupId)
                                     throws ProcessingErrorException
This method gets the permissions specified for a group in the EJBGROUP_PERMISSIONS table

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

getUnassignedGroups

public java.util.Vector getUnassignedGroups(java.lang.String userId)
                                     throws ProcessingErrorException
This methods generates a vector of groupIds which specify the groups a specified user is NOT a member of.

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

getUserGroupPermissions

public java.util.Vector getUserGroupPermissions(java.lang.String userId)
                                         throws ProcessingErrorException
This method returns the total permissions for each group a user is a member of.

Parameters:
userId - the if of the user to fetch group permissions for
Returns:
a vector of groupIds
Throws:
ProcessingErrorException - if processing fails

getUserGroups

public java.util.Vector getUserGroups(java.lang.String userId)
                               throws ProcessingErrorException
This method gets the groups a user is a member of.

Parameters:
userId - the user to check for
Returns:
a vector of groupIds that the user is a member of
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
Returns:
a vector containing the response
Throws:
ProcessingErrorException

unassignedGroupPermissions

public java.util.Vector unassignedGroupPermissions(java.lang.String groupId)
                                            throws ProcessingErrorException
Returns the permissions a group does not have.

Parameters:
groupId - the id of the group to check unassigned permissions for
Returns:
Vector of permissions.
Throws:
ProcessingErrorException - if processing fails.


Copyright © 2005, 2007, Oracle. All rights reserved.