|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Remote interface for the GroupManager session bean. This class provides the core GroupManager functionality without doing any security checks. It is the responsibility of the GroupManager session bean(s) to do any security checks before calling the delegate. This class depends on the following environment variable in the calling GroupManager's environment context:
Method Summary | |
void |
addGroupToGroup(java.lang.String parentGroup,
java.lang.String childGroup)
Add a child group to a group |
void |
addUserToGroup(java.lang.String groupname,
java.lang.String username)
Add a user to a group. |
ProfileWrapper |
createGroup(java.lang.String name)
|
java.util.List |
getAllGroupNames()
Retrieve a list of all groups in the system. |
java.util.List |
getChildGroupNames(java.lang.String groupname)
Retrieve a list of all children of a group. |
java.util.List |
getGroupNamesForUser(java.lang.String username)
Retrieve a list of all groups that a user belongs to. |
ProfileWrapper |
getGroupProfile(java.lang.String name)
|
ProfileManager |
getGroupProfileManager(java.lang.String name)
Returns a profile manager that can be used to access a group's profile. |
java.lang.String |
getParentGroupName(java.lang.String groupname)
Retrieve the parent of a group. |
java.util.List |
getTopLevelGroupNames()
Retrieve a list of groups that do not have parent groups. |
java.util.List |
getUsernamesForGroup(java.lang.String groupname)
Retrieve a list of all users in a group. |
java.util.List |
getUsernamesForGroup(java.lang.String groupname,
java.lang.String searchExpression,
int limit)
Retrieve a list of users in a group, matching the provided wildcard expression |
boolean |
groupExists(java.lang.String name)
Determines if a group exists in the realm. |
boolean |
isDeletableGroup(java.lang.String name)
Determine if a group can be deleted. |
boolean |
isDescendent(java.lang.String ancestor,
java.lang.String descendent)
Determine if one group is a descendent of another. |
boolean |
isMember(java.lang.String groupname,
java.lang.String username)
Determine if a user is a member of a group. |
void |
removeGroup(java.lang.String name)
Remove a group. |
void |
removeGroupFromGroup(java.lang.String parentGroup,
java.lang.String childGroup)
Remove a child group from a group |
void |
removeUserFromGroup(java.lang.String groupname,
java.lang.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(java.lang.String name) throws java.rmi.RemoteException
name
- the name of the group to accesspublic ProfileManager getGroupProfileManager(java.lang.String name) throws java.rmi.RemoteException
name
- the name of the group to accesspublic boolean groupExists(java.lang.String name) throws java.rmi.RemoteException
name
- the group name to checkpublic ProfileWrapper createGroup(java.lang.String name) throws java.rmi.RemoteException, GroupAlreadyExistsException, InvalidGroupnameException
public boolean isDeletableGroup(java.lang.String name) throws java.rmi.RemoteException
public void removeGroup(java.lang.String name) throws java.rmi.RemoteException, InvalidGroupnameException
the
- name of the group to removepublic void addUserToGroup(java.lang.String groupname, java.lang.String username) throws java.rmi.RemoteException
groupname
- the name of the group to modifyusername
- the name of the user to addpublic void removeUserFromGroup(java.lang.String groupname, java.lang.String username) throws java.rmi.RemoteException
groupname
- the name of the group to modifyusername
- the name of the user to removepublic void addGroupToGroup(java.lang.String parentGroup, java.lang.String childGroup) throws java.rmi.RemoteException
parentGroup
- the name of the group to modifychildGroup
- the name of the group to addpublic void removeGroupFromGroup(java.lang.String parentGroup, java.lang.String childGroup) throws java.rmi.RemoteException
parentGroup
- the name of the group to modifychildGroup
- the name of the group to removepublic java.util.List getTopLevelGroupNames() throws java.rmi.RemoteException
public java.util.List getAllGroupNames() throws java.rmi.RemoteException
public java.util.List getGroupNamesForUser(java.lang.String username) throws java.rmi.RemoteException
username
- the user to querypublic java.util.List getUsernamesForGroup(java.lang.String groupname) throws java.rmi.RemoteException
groupname
- the group to querypublic java.util.List getUsernamesForGroup(java.lang.String groupname, java.lang.String searchExpression, int limit) throws java.rmi.RemoteException
groupname
- the group to querysearchExpression
- a wildcard expression to matchlimit
- the maximum number of results to returnpublic java.util.List getChildGroupNames(java.lang.String groupname) throws java.rmi.RemoteException
groupname
- the group to querypublic java.lang.String getParentGroupName(java.lang.String groupname) throws java.rmi.RemoteException
groupname
- the group to querypublic boolean isDescendent(java.lang.String ancestor, java.lang.String descendent) throws java.rmi.RemoteException
ancestor
- see if the other group is a descendent of this groupdescendent
- see if this is a descendent of the other grouppublic boolean isMember(java.lang.String groupname, java.lang.String username) throws java.rmi.RemoteException
groupname
- the group to queryusername
- the user to look for
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |