|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Remote interface for the GroupManager session bean. This class depends on the following EJB environment in the ejb deployment descriptor:
RealmHelper.getProviderMBean()| Method Summary | |
void |
addGroupToGroup(String parentGroup,
String childGroup)
Add a child group to a group |
void |
addUserToGroup(String groupname,
String username)
Add a user to a group. |
ProfileWrapper |
createGroup(String name)
|
List |
getAllGroupNames()
Retrieve a list of all groups in the system. |
List |
getChildGroupNames(String groupname)
Retrieve a list of all children of a group. |
List |
getGroupNamesForUser(String username)
Retrieve a list of all groups that a user belongs to. |
ProfileWrapper |
getGroupProfile(String name)
|
ProfileManager |
getGroupProfileManager(String name)
Returns a profile manager that can be used to access a group's profile. |
String |
getParentGroupName(String groupname)
Retrieve the parent of a group. |
List |
getTopLevelGroupNames()
Retrieve a list of groups that do not have parent groups. |
List |
getUsernamesForGroup(String groupname)
Retrieve a list of all users in a group. |
List |
getUsernamesForGroup(String groupname,
String searchExpression,
int limit)
Retrieve a list of users in a group, matching the provided wildcard expression |
boolean |
groupExists(String name)
Determines if a group exists. |
boolean |
isDeletableGroup(String name)
Determine if a group can be deleted. |
boolean |
isDescendent(String ancestor,
String descendent)
Determine if one group is a descendent of another. |
boolean |
isMember(String groupname,
String username)
Determine if a user is a member of a group. |
void |
removeGroup(String name)
Remove a group. |
void |
removeGroupFromGroup(String parentGroup,
String childGroup)
Remove a child group from a group |
void |
removeUserFromGroup(String groupname,
String username)
Remove a user from a group |
| Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
| Method Detail |
public ProfileWrapper getGroupProfile(String name) throws RemoteException
name - the name of the group to access
RemoteExceptionpublic ProfileManager getGroupProfileManager(String name) throws RemoteException
name - the name of the group to access
RemoteExceptionpublic boolean groupExists(String name) throws RemoteException
name - the group name to check
RemoteExceptionpublic ProfileWrapper createGroup(String name) throws RemoteException, GroupAlreadyExistsException, InvalidGroupnameException
GroupAlreadyExistsException - if the group already exists
InvalidGroupnameException - if the group name is invalid
RemoteExceptionpublic boolean isDeletableGroup(String name) throws RemoteException
RemoteExceptionpublic void removeGroup(String name) throws RemoteException, InvalidGroupnameException
InvalidGroupnameException - if the group is protected and cannot be deleted
RemoteExceptionpublic void addUserToGroup(String groupname, String username) throws RemoteException
groupname - the name of the group to modifyusername - the name of the user to add
RemoteExceptionpublic void removeUserFromGroup(String groupname, String username) throws RemoteException
groupname - the name of the group to modifyusername - the name of the user to remove
RemoteExceptionpublic void addGroupToGroup(String parentGroup, String childGroup) throws RemoteException
parentGroup - the name of the group to modifychildGroup - the name of the group to add
RemoteExceptionpublic void removeGroupFromGroup(String parentGroup, String childGroup) throws RemoteException
parentGroup - the name of the group to modifychildGroup - the name of the group to remove
RemoteExceptionpublic List getTopLevelGroupNames() throws RemoteException
public List getAllGroupNames() throws RemoteException
public List getGroupNamesForUser(String username) throws RemoteException
username - the user to query
RemoteExceptionpublic List getUsernamesForGroup(String groupname) throws RemoteException
groupname - the group to query
RemoteExceptionpublic List getUsernamesForGroup(String groupname, String searchExpression, int limit) throws RemoteException
groupname - the group to querysearchExpression - a wildcard expression to matchlimit - the maximum number of results to return
RemoteExceptionpublic List getChildGroupNames(String groupname) throws RemoteException
groupname - the group to query
RemoteExceptionpublic String getParentGroupName(String groupname) throws RemoteException
groupname - the group to query
RemoteExceptionpublic boolean isDescendent(String ancestor, String descendent) throws RemoteException
ancestor - see if the other group is a descendent of this groupdescendent - see if this is a descendent of the other group
RemoteExceptionpublic boolean isMember(String groupname, String username) throws RemoteException
groupname - the group to queryusername - the user to look for
RemoteException
|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||