|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ControlInterface
public interface UserInfoControl
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 | |
---|---|
void |
authenticate(String username, String password) Authenticate a user. |
List<String> |
getAllGroupNames() Deprecated Use GroupProviderControl.getAllGroupNames() |
String |
getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request) Get the authenticated user from the request object |
List<String> |
getAvailableUserRoles(javax.servlet.http.HttpServletRequest request) Get a list of role names that the user is in |
List<String> |
getGroupNamesForUser(String username) Get a list of groups to which this user belongs This method federated through all readable GroupProviders in default security realm |
List<String> |
getUserGroupNames(javax.servlet.http.HttpServletRequest request) Get a list of groups to which this user belongs This method federated through all readable GroupProviders in default security realm |
boolean |
isCurrentUserInRole(javax.servlet.http.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 This method federated through all readable GroupProviders in default security realm |
boolean |
userIsRegistered(javax.servlet.http.HttpServletRequest request) Determine whether this user is a registered user type |
Method Detail |
---|
void authenticate(String username, String password) throws P13nControlException
username
- the username for the userpassword
- the password for the userP13nControlException
- if the user is not a valid user or credentials are incorrectboolean isMemberOfGroup(String groupname, String username) throws P13nControlException
groupname
- the group to queryusername
- the user to look forP13nControlException
- if exceptions encountered accessing backing GroupProviderList<String> getAllGroupNames() throws P13nControlException
P13nControlException
- if exceptions encountered accessing backing GroupProvider or if user is not in the role of 'PortalSystemAdministrator' or 'Admin'List<String> getUserGroupNames(javax.servlet.http.HttpServletRequest request) throws P13nControlException
request
- object, which will contain current user nameP13nControlException
- if exceptions encountered accessing backing GroupProviderList<String> getGroupNamesForUser(String username) throws P13nControlException
username
- Current user nameP13nControlException
- if exceptions encountered accessing backing GroupProviderList<String> getAvailableUserRoles(javax.servlet.http.HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest objectP13nControlException
- if exceptions encountered accessing backing security serviceboolean isCurrentUserInRole(javax.servlet.http.HttpServletRequest request, String roleName) throws P13nControlException
request
- the HttpServletRequest objectroleName
- The name of the role, defined as one of the available Portal rolesP13nControlException
- if remote exceptions encountered accessing backing security serviceboolean userIsRegistered(javax.servlet.http.HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest objectP13nControlException
- if request is nullString getAuthenticatedUserId(javax.servlet.http.HttpServletRequest request) throws P13nControlException
request
- the HttpServletRequest objectP13nControlException
- if remote exceptions encountered accessing backing security service
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.