|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This control is used to query information about a particular user, such
as which groups the user belongs to, which roles the user is in, which
roles are available to the user.
Security requirements:
The caller must be in the role of "PortalSystemAdministrator" to invoke
method 'getAllGroupNames()
Method Summary | |
List |
getAllGroupNames()
Get a List of all group names in the system |
String |
getAuthenticatedUserId(HttpServletRequest request)
Get the authenticated user from the request object |
List |
getAvailableUserRoles(HttpServletRequest request)
Get a list of role names that the user is in |
List |
getGroupNamesForUser(String username)
Get a list of groups to which this user belongs |
List |
getUserGroupNames(HttpServletRequest request)
Get a list of groups to which this user belongs |
boolean |
isCurrentUserInRole(HttpServletRequest request,
String roleName)
Determine whether this user is allowed in this particular role |
boolean |
isMemberOfGroup(String groupname,
String username)
Determine if a user is a member of a group. |
boolean |
userIsRegistered(HttpServletRequest request)
Determine whether this user is a registered user type |
Method Detail |
public boolean isMemberOfGroup(String groupname, String username) throws P13nControlException
groupname
- the group to queryusername
- the user to look for
P13nControlException
- if remote exceptions encountered accessing backing
GroupManager EJBpublic List getAllGroupNames() throws P13nControlException
P13nControlException
- if remote exceptions encountered accessing backing
GroupManager EJB or if user is not in the role of 'PortalSystemAdministrator'
or 'Portal' public List getUserGroupNames(HttpServletRequest request) throws P13nControlException
request
- object, which will contain current user name
P13nControlException
- if remote exceptions encountered accessing backing
GroupManager EJBpublic List getGroupNamesForUser(String username) throws P13nControlException
username
- Current user name
P13nControlException
- if remote exceptions encountered accessing backing
GroupManager EJBpublic List getAvailableUserRoles(HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest object
P13nControlException
- if remote exceptions encountered accessing backing
EJBpublic boolean isCurrentUserInRole(HttpServletRequest request, String roleName) throws P13nControlException
request
- the HttpServletRequest objectroleName
- The name of the role, defined as one of the available Portal roles
P13nControlException
- if remote exceptions encountered accessing backing
EJBpublic boolean userIsRegistered(HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest object
P13nControlException
- if remote exceptions encountered accessing backing
EJBpublic String getAuthenticatedUserId(HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest object
P13nControlException
- if remote exceptions encountered accessing backing
EJB
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |