|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Remote Interface for the UserManager session bean. This is the synchronization point between user profile support and WebLogic security. Any user management operations should be done here, rather than through the security APIs directly. This class depends on the following EJB environment in the ejb deployment descriptor:
This control requires that the UserManager EJB has been deployed to the application. The UserManager EJB is contained in p13n_ejb.jar, and is automatically deployed as part of a Portal application.
Method Summary | |
void |
authenticate(String username,
String password)
Authenticate a user. |
ProfileWrapper |
createUser(String username,
String password)
Creates a user with the given username and password. |
ProfileWrapper |
createUserOfProfileType(String username,
String password,
String profileType)
Creates a user with a specific profile type. |
String[] |
getProfileTypeNames()
Return a list of profile type names that are registered with the UserManager. |
List |
getUserNames(String searchExpression,
int limit)
Returns a List of users' names matching the search expression |
ProfileWrapper |
getUserProfile(String username)
Get the Profile for the given user. |
ProfileManager |
getUserProfileManager(String username)
Returns the appropriate ProfileManager deployment for this user, based on the user's profile type. |
void |
removeUser(String username)
Removes a user from the system. |
void |
setPassword(String username,
String password)
Sets the password for a user in the realm. |
boolean |
userExists(String username)
Determines if a user exists. |
Method Detail |
public void authenticate(String username, String password) throws P13nControlException
AuthenticationException
if the user is not a
valid user or credentials are invalid. This method is only used to
verify a username and password, it does not do anything to :log in" or
set the user as the "current" system user.
username
- the username for the userpassword
- the password for the user
P13nControlException
- if the user is not a valid user or
credentials are incorrectpublic String[] getProfileTypeNames() throws P13nControlException
P13nControlException
- if remote errors accessing UserManager EJBpublic List getUserNames(String searchExpression, int limit) throws P13nControlException
searchExpression
- a wildcard search expressionlimit
- a limit of results to return
P13nControlException
- if errors accessing UserManager EJBpublic ProfileWrapper getUserProfile(String username) throws P13nControlException
username
- the username for the user
P13nControlException
- if profile cannot be foundpublic ProfileManager getUserProfileManager(String username) throws P13nControlException
username
- the username for the user
P13nControlException
- if user does not existpublic void removeUser(String username) throws P13nControlException
username
- the username of the user to remove
P13nControlException
- if user does not existpublic void setPassword(String username, String password) throws P13nControlException
username
- the username of the userpassword
- the new password for the user
P13nControlException
- if the password is malformed or otherwise invalidpublic boolean userExists(String username) throws P13nControlException
username
- the user to look for
P13nControlException
- if errors accessing UserManager EJBpublic ProfileWrapper createUser(String username, String password) throws P13nControlException
username
- the username for the new userpassword
- the password for the new user
P13nControlException
- if the username is already in usepublic ProfileWrapper createUserOfProfileType(String username, String password, String profileType) throws P13nControlException
username
- the username for the new userpassword
- the password for the new userprofileType
- the name of the profile type for the new user
P13nControlException
- if the username is already in use
|
© 2003 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |