|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The UserService
manages User
s
Field Summary | |
static java.lang.String |
EMAIL
|
static java.lang.String |
FIRSTNAME
|
static java.lang.String |
LASTNAME
|
static java.lang.String |
LOCALE
|
static java.lang.String |
NAME
|
static java.lang.String |
PASSWORD
|
static java.lang.String |
USER_ID
|
Method Summary | |
void |
addUser(net.sf.jportlet.portlet.PortletRequest request)
Create a new user account |
java.util.Collection |
getRoles(java.lang.String userId)
Retrieve all the roles of a given user |
net.sf.jportlet.portlet.User |
getUser(java.lang.String userId)
Retrieve a user by its id |
net.sf.jportlet.portlet.User |
getUserByEmail(java.lang.String email)
Retrieve a user by its email |
void |
updateUser(net.sf.jportlet.portlet.PortletRequest request)
Update a user account |
Field Detail |
public static final java.lang.String NAME
public static final java.lang.String USER_ID
public static final java.lang.String PASSWORD
public static final java.lang.String EMAIL
public static final java.lang.String FIRSTNAME
public static final java.lang.String LASTNAME
public static final java.lang.String LOCALE
Method Detail |
public net.sf.jportlet.portlet.User getUser(java.lang.String userId) throws UserException
userId
- Id of the user
UserException
- if any error occurspublic net.sf.jportlet.portlet.User getUserByEmail(java.lang.String email) throws UserException
email
-
UserException
- if any error occurspublic void addUser(net.sf.jportlet.portlet.PortletRequest request) throws UserException
request
- throws UserIdNotUniqueException
throws UserEmailNotUniqueException
throws UserException
UserException
public void updateUser(net.sf.jportlet.portlet.PortletRequest request) throws UserException
request
- throws UserIdNotUniqueException
throws UserEmailNotUniqueException
throws UserException
UserException
public java.util.Collection getRoles(java.lang.String userId) throws UserException
userId
- id of the user
UserException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |