|
© 2005 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()
Nested Class Summary |
Nested classes inherited from class com.bea.control.Control |
com.bea.control.Control.Callback |
Method Summary | |
void |
authenticate(String username,
String password)
Authenticate a user. |
List |
getAllGroupNames()
Deprecated. Use GroupProviderControl.getAllGroupNames() |
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)
Deprecated. Use GroupProviderControl.getGroupNamesForUser(username) |
List |
getUserGroupNames(HttpServletRequest request)
Deprecated. Use GroupProviderControl.getGroupNamesForUser(username) |
boolean |
isCurrentUserInRole(HttpServletRequest request,
String roleName)
Determine whether this user is allowed in this particular role |
boolean |
isMemberOfGroup(String groupname,
String username)
Deprecated. Use GroupProviderControl.getAllGroupNames() |
boolean |
userIsRegistered(HttpServletRequest request)
Determine whether this user is a registered user type |
Method Detail |
public void authenticate(String username, String password) throws P13nControlException
username
- the username for the userpassword
- the password for the user
P13nControlException
- if the user is not a valid user or
credentials are incorrectpublic 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 String getAuthenticatedUserId(HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest object
P13nControlException
- if remote exceptions encountered accessing backing
EJBpublic List getAvailableUserRoles(HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest object
P13nControlException
- if remote exceptions encountered accessing backing
EJBpublic List getGroupNamesForUser(String username) throws P13nControlException
username
- Current user name
P13nControlException
- if remote exceptions encountered accessing backing
GroupManager EJBpublic List getUserGroupNames(HttpServletRequest request) throws P13nControlException
request
- object, which will contain current user name
P13nControlException
- if remote exceptions encountered accessing backing
GroupManager 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 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 boolean userIsRegistered(HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest object
P13nControlException
- if remote exceptions encountered accessing backing
EJB
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |