|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.dao.support.DaoSupport org.springframework.orm.hibernate.support.HibernateDaoSupport com.atlassian.confluence.user.persistence.dao.hibernate.HibernateConfluenceUserDao
public class HibernateConfluenceUserDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
HibernateConfluenceUserDao(net.sf.hibernate.SessionFactory sessionFactory)
|
Method Summary | |
---|---|
void |
create(ConfluenceUser user)
Persist a new ConfluenceUser. |
ConfluenceUser |
findByKey(com.atlassian.sal.api.user.UserKey key)
Retrieve a ConfluenceUser by the user key. |
ConfluenceUser |
findByUsername(java.lang.String username)
Find the ConfluenceUser with the given user name. |
java.util.Set<ConfluenceUser> |
getAll()
|
void |
remove(ConfluenceUser user)
Remove the supplied ConfluenceUser from persistence. |
ConfluenceUser |
rename(java.lang.String oldUsername,
java.lang.String newUsername,
boolean overrideExisting)
Renames a user |
void |
update(ConfluenceUser user)
Change a property of an existing ConfluenceUser. |
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport |
---|
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class org.springframework.dao.support.DaoSupport |
---|
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateConfluenceUserDao(net.sf.hibernate.SessionFactory sessionFactory)
Method Detail |
---|
public void create(ConfluenceUser user)
create
in interface ConfluenceUserDao
public void update(ConfluenceUser user)
ConfluenceUserDao
update
in interface ConfluenceUserDao
public ConfluenceUser findByKey(com.atlassian.sal.api.user.UserKey key)
ConfluenceUserDao
findByKey
in interface ConfluenceUserDao
public ConfluenceUser findByUsername(java.lang.String username)
ConfluenceUserDao
Note that username lookups are case-insensitive, so the user you get back may not have exactly the same name as the name passed to this method.
findByUsername
in interface ConfluenceUserDao
public java.util.Set<ConfluenceUser> getAll()
getAll
in interface ConfluenceUserDao
public void remove(ConfluenceUser user)
ConfluenceUserDao
remove
in interface ConfluenceUserDao
public ConfluenceUser rename(java.lang.String oldUsername, java.lang.String newUsername, boolean overrideExisting)
ConfluenceUserDao
rename
in interface ConfluenceUserDao
oldUsername
- old username for the usernewUsername
- new username for the useroverrideExisting
- True if possible existing mapping should make
way for the renamed one. False for opposite
behaviour.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |