Class UserDaoImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<User>
-
- ubic.gemma.persistence.service.common.auditAndSecurity.UserDaoImpl
-
@Repository public class UserDaoImpl extends AbstractDao<User> implements UserDao
DAO Class: is able to create, update, remove, load, and find objects of typeubic.gemma.model.common.auditAndSecurity.User
.- See Also:
User
-
-
Field Summary
-
Fields inherited from class ubic.gemma.persistence.service.AbstractDao
elementClass, log
-
-
Constructor Summary
Constructors Constructor Description UserDaoImpl(SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description User
find(User user)
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).User
findByEmail(String email)
User
findByUserName(String userName)
Collection<GroupAuthority>
loadGroupAuthorities(User user)
Collection<UserGroup>
loadGroups(User user)
void
remove(User user)
Remove a persistent instancevoid
update(Collection<User> entities)
void
update(User user)
-
Methods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, remove, remove, save, save
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ubic.gemma.persistence.service.BaseDao
countAll, create, create, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, remove, remove, save, save
-
-
-
-
Constructor Detail
-
UserDaoImpl
@Autowired public UserDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
findByEmail
public User findByEmail(String email)
- Specified by:
findByEmail
in interfaceUserDao
-
findByUserName
public User findByUserName(String userName)
- Specified by:
findByUserName
in interfaceUserDao
-
loadGroupAuthorities
public Collection<GroupAuthority> loadGroupAuthorities(User user)
- Specified by:
loadGroupAuthorities
in interfaceUserDao
-
loadGroups
public Collection<UserGroup> loadGroups(User user)
- Specified by:
loadGroups
in interfaceUserDao
-
remove
public void remove(User user)
Description copied from interface:BaseDao
Remove a persistent instance
-
update
public void update(Collection<User> entities)
-
update
public void update(User user)
-
-