org.zeroexchange.user.write
Class DAOUserWriter
java.lang.Object
org.zeroexchange.dao.HibernateSessionHolder
org.zeroexchange.user.write.DAOUserWriter
- All Implemented Interfaces:
- UserWriter
@Transactional
public class DAOUserWriter
- extends HibernateSessionHolder
- implements UserWriter
Implentation of the UserWriter that uses DAOs.
- Author:
- black
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DAOUserWriter
public DAOUserWriter()
createUser
public User createUser(User user,
Credential initialCredential)
- Adds new user to the database.
NOTE: DOES NOT apply '@Secured' annotation on this method since it is used by the
registration form!
TODO: create separate 'registration' permission. it can be used in conjunction with capture
- Specified by:
createUser
in interface UserWriter
updateUser
@Secured(value="ROLE_USER")
public void updateUser(User user)
- Updates the specified user in database.
- Specified by:
updateUser
in interface UserWriter
Copyright © 2013. All Rights Reserved.