|
© 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:
| Method Summary | |
void |
addGroupToGroup(String parentGroup,
String childGroup)
Add a child group to a group Caller must be in the role of PortalSystemAdminstrator |
void |
addUserToGroup(String groupname,
String username)
Add a user to a group. |
ProfileWrapper |
createGroup(String name)
Caller must be in the role of PortalSystemAdminstrator |
List |
getAllGroupNames()
Caller must be in the role of PortalSystemAdminstrator |
List |
getChildGroupNames(String groupname)
Caller must be in the role of PortalSystemAdminstrator 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)
Caller must be in the role of PortalSystemAdminstrator |
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)
Caller must be in the role of PortalSystemAdminstrator |
List |
getUsernamesForGroupLimited(String groupname,
String searchExpression,
int limit)
Retrieve a list of users in a group, matching the provided wildcard expression Caller must be in the role of PortalSystemAdminstrator |
boolean |
groupExists(String group)
Determines if a group exists in the realm. |
boolean |
isDeletableGroup(String groupName)
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 groupname)
Remove a group. |
void |
removeGroupFromGroup(String parentGroup,
String childGroup)
Remove a child group from a group Caller must be in the role of PortalSystemAdminstrator |
void |
removeUserFromGroup(String groupname,
String username)
Remove a user from a group Caller must be in the role of PortalSystemAdminstrator |
| Method Detail |
public void addGroupToGroup(String parentGroup,
String childGroup)
throws P13nControlException
parentGroup - the name of the group to modifychildGroup - the name of the group to add
P13nControlException - if the child group cannot be added to the group
or caller is not in allowed role
public void addUserToGroup(String groupname,
String username)
throws P13nControlException
groupname - the name of the group to modifyusername - the name of the user to add
P13nControlException - if the user cannot be added to the group
or caller is not in allowed role
public ProfileWrapper createGroup(String name)
throws P13nControlException
P13nControlException - if name is invalid or if group already
exists or caller is not in allowed role
public List getAllGroupNames()
throws P13nControlException
P13nControlException - if remote errors from the GroupManager EJB
public List getChildGroupNames(String groupname)
throws P13nControlException
groupname - the group to query
P13nControlException - if remote errors from the GroupManager EJB
or caller is not in allowed role
public List getGroupNamesForUser(String username)
throws P13nControlException
username - the user to query
P13nControlException - if remote errors from the GroupManager EJB
public ProfileWrapper getGroupProfile(String name)
throws P13nControlException
name - the name of the group to access
P13nControlException - if profile is not found or caller is not in
allowed role
public ProfileManager getGroupProfileManager(String name)
throws P13nControlException
name - the name of the group to access
P13nControlException - if the group is not in the realm
or caller is not in allowed role
public String getParentGroupName(String groupname)
throws P13nControlException
groupname - the group to query
P13nControlException - if runtime errors occur or caller is not
in allowed role
public List getTopLevelGroupNames()
throws P13nControlException
P13nControlException - if runtime errors occur or caller is
not in allowed role
public List getUsernamesForGroupLimited(String groupname,
String searchExpression,
int limit)
throws P13nControlException
groupname - the group to querysearchExpression - a wildcard expression to matchlimit - the maximum number of results to return
P13nControlException - if runtime errors occur or caller is not
in allowed role
public boolean groupExists(String group)
throws P13nControlException
P13nControlException - if runtime errors
public boolean isDeletableGroup(String groupName)
throws P13nControlException
P13nControlException - if runtime errors or caller is not in allowed role
public boolean isDescendent(String ancestor,
String descendent)
throws P13nControlException
ancestor - see if the other group is a descendent of this groupdescendent - see if this is a descendent of the other group
P13nControlException - if runtime errors or caller is not in allowed role
public boolean isMember(String groupname,
String username)
throws P13nControlException
groupname - the group to queryusername - the user to look for
P13nControlException - if runtime errors
public void removeGroup(String groupname)
throws P13nControlException
P13nControlException - if the group is protected and cannot be deleted
or caller is not in allowed role
public void removeGroupFromGroup(String parentGroup,
String childGroup)
throws P13nControlException
parentGroup - the name of the group to modifychildGroup - the name of the group to remove
P13nControlException - if the group is not found
or caller is not in allowed role
public void removeUserFromGroup(String groupname,
String username)
throws P13nControlException
groupname - the name of the group to modifyusername - the name of the user to remove
P13nControlException - if user or group is not found, or caller is
not in allowed role
public List getUsernamesForGroup(String groupname)
throws P13nControlException
P13nControlException - if runtime errors or caller is not in allowed
role
|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||