com.bankframe.services.accesscontrol.administration.group
Interface GroupAdministration

All Superinterfaces:
javax.ejb.EJBObject, ESessionRemote, java.rmi.Remote

public interface GroupAdministration
extends ESessionRemote

This interface defines the methods and the parameters for the 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)
          This method 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 method generates a vector of groupIds which specify which 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 that 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 unassignedGroupPermissions(java.lang.String groupId)
          This method returns the permissions a group does not have.
 
Methods inherited from interface com.bankframe.ejb.ESessionRemote
processDataPacket, processDataPackets
 
Methods inherited from interface javax.ejb.EJBObject
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove
 

Method Detail

addGroupPermission

public void addGroupPermission(java.lang.String groupId,
                               java.lang.String permission)
                        throws ProcessingErrorException,
                               java.rmi.RemoteException
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 - string of permission to update the specified group with
Throws:
ProcessingErrorException - if processing fails
java.rmi.RemoteException

createGroup

public void createGroup(java.lang.String groupId,
                        java.lang.String groupName)
                 throws ProcessingErrorException,
                        java.rmi.RemoteException
This method creates a new group.

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

deleteGroup

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

Parameters:
groupId - the id of the group to delete
Throws:
ProcessingErrorException - if processing fails.
java.rmi.RemoteException

deleteGroupPermission

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

Parameters:
groupId - the id of the group
permission - String to remove from this group
Throws:
ProcessingErrorException - if processing fails.
java.rmi.RemoteException

getAllGroups

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

Returns:
an enumeration of groups
Throws:
ProcessingErrorException - if processing fails.
java.rmi.RemoteException

getGroup

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

Parameters:
groupId - the id of the group to get
Returns:
the EJBGroup identified by the groupId
Throws:
ProcessingErrorException - if processing fails
FinderException - if the group is not found
java.rmi.RemoteException

getGroupMembers

public java.util.Vector getGroupMembers(java.lang.String groupId)
                                 throws ProcessingErrorException,
                                        java.rmi.RemoteException
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
java.rmi.RemoteException

getGroupPermissions

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

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

getUnassignedGroups

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

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

getUserGroupPermissions

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

Parameters:
userId - the id of user to fetch group permissions for
Returns:
a vector of requestIds.
Throws:
ProcessingErrorException - if processing fails.
java.rmi.RemoteException

getUserGroups

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

Parameters:
userId - the user ID to check for
Returns:
a vector of groupIds that the user is a member of
Throws:
ProcessingErrorException - if processing fails.
java.rmi.RemoteException

unassignedGroupPermissions

public java.util.Vector unassignedGroupPermissions(java.lang.String groupId)
                                            throws ProcessingErrorException,
                                                   java.rmi.RemoteException
This method returns the permissions a group does not have.

Parameters:
groupId - the id of a group to check unassigned permissions for
Returns:
a vector of permissions.
Throws:
ProcessingErrorException - if processing fails.
java.rmi.RemoteException


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