|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.sf.jportlet.service.PortletServiceAdapter
|
+--net.sf.jportlet.service.user.UserServiceJDBC
Implementation of UserService based on
JDBC.
| Field Summary |
| Fields inherited from class net.sf.jportlet.service.PortletServiceAdapter |
_log, _serviceConfig, _serviceContext |
| Fields inherited from interface net.sf.jportlet.service.user.UserService |
EMAIL, FIRSTNAME, LASTNAME, LOCALE, NAME, PASSWORD, USER_ID |
| Constructor Summary | |
UserServiceJDBC()
|
|
| Method Summary | |
void |
addUser(net.sf.jportlet.portlet.PortletRequest request)
Create a new user account |
java.sql.Connection |
getConnection()
|
java.util.Collection |
getRoles(java.lang.String userId)
Retrieve all the roles of a given user |
java.lang.String |
getServiceName()
Returns the name of the service |
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 |
init(net.sf.jportlet.service.PortletServiceConfig serviceConfig)
Initialize the service |
void |
updateUser(net.sf.jportlet.portlet.PortletRequest request)
Update a user account |
| Methods inherited from class net.sf.jportlet.service.PortletServiceAdapter |
destroy, getInitParameter, getInitParameter, getServiceConfig |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UserServiceJDBC()
| Method Detail |
public java.util.Collection getRoles(java.lang.String userId)
throws UserException
UserService
getRoles in interface UserServiceuserId - id of the user
UserExceptionUserService.getRoles(java.lang.String)public java.lang.String getServiceName()
PortletService
getServiceName in interface PortletServicePortletService.getServiceName()
public net.sf.jportlet.portlet.User getUser(java.lang.String userId)
throws UserException
UserService
getUser in interface UserServiceuserId - Id of the user
UserException - if any error occursUserService.getUser(java.lang.String)
public void init(net.sf.jportlet.service.PortletServiceConfig serviceConfig)
throws PortletServiceException
PortletService
init in interface PortletServiceinit in class PortletServiceAdapterPortletServiceExceptionPortletService.init(net.sf.jportlet.service.PortletServiceConfig)
public void addUser(net.sf.jportlet.portlet.PortletRequest request)
throws UserException
UserService
addUser in interface UserServicerequest - throws UserIdNotUniqueException
throws UserEmailNotUniqueException
throws UserException
UserExceptionUserService.addUser(net.sf.jportlet.portlet.PortletRequest)
public void updateUser(net.sf.jportlet.portlet.PortletRequest request)
throws UserException
UserService
updateUser in interface UserServicerequest - throws UserIdNotUniqueException
throws UserEmailNotUniqueException
throws UserException
UserExceptionUserService.updateUser(net.sf.jportlet.portlet.PortletRequest)
public net.sf.jportlet.portlet.User getUserByEmail(java.lang.String email)
throws UserException
UserService
getUserByEmail in interface UserServiceemail -
UserException - if any error occursUserService.getUserByEmail(java.lang.String)
public java.sql.Connection getConnection()
throws UserException
UserException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||