|
||||||||||
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.hibernate3.support.HibernateDaoSupport com.atlassian.crowd.util.persistence.hibernate.HibernateDao com.atlassian.crowd.dao.alias.AliasDAOHibernate
public class AliasDAOHibernate
Field Summary |
---|
Fields inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao |
---|
batchFinder, batchProcessor, logger |
Constructor Summary | |
---|---|
AliasDAOHibernate()
|
Method Summary | |
---|---|
java.lang.String |
findAliasByUsername(Application application,
java.lang.String username)
Retrieves the application-specific alias for a username. |
java.util.List<Alias> |
findAll()
|
java.lang.String |
findUsernameByAlias(Application application,
java.lang.String alias)
Retrieves the real username for a user in a directory given their application-specific alias. |
java.lang.Class |
getPersistentClass()
All subclasses of HibernateDAO must implement this method for HibernateDao.load(long) to
work correctly |
void |
removeAlias(Application application,
java.lang.String username)
Remove an application-specific alias for a username. |
void |
removeAliases(Application application)
Removes all the username-aliases for a specific application. |
java.util.List<java.lang.String> |
search(EntityQuery<java.lang.String> entityQuery)
Will search for a List of Alias' based on a given EntityQuery |
void |
setHqlQueryTranslater(HQLQueryTranslater hqlQueryTranslater)
|
void |
storeAlias(Application application,
java.lang.String username,
java.lang.String alias)
Add or update the application-specific alias for a username. |
Methods inherited from class com.atlassian.crowd.util.persistence.hibernate.HibernateDao |
---|
load, loadReference, remove, save, saveOrUpdate, setBatchFinder, setBatchProcessor, update |
Methods inherited from class org.springframework.orm.hibernate3.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 AliasDAOHibernate()
Method Detail |
---|
public java.lang.Class getPersistentClass()
HibernateDao
HibernateDao.load(long)
to
work correctly
getPersistentClass
in class HibernateDao
public java.util.List<java.lang.String> search(EntityQuery<java.lang.String> entityQuery)
AliasDAO
EntityQuery
search
in interface AliasDAO
entityQuery
- an entity query of type EntityDescriptor.alias()
public java.lang.String findAliasByUsername(Application application, java.lang.String username)
AliasDAO
findAliasByUsername
in interface AliasDAO
application
- application context.username
- real username of user in directory.
null
if there is no alias for the user/application.public java.lang.String findUsernameByAlias(Application application, java.lang.String alias)
AliasDAO
findUsernameByAlias
in interface AliasDAO
application
- application context.alias
- application-specific alias.
null
if there is no user with the supplied alias for the given application.public void storeAlias(Application application, java.lang.String username, java.lang.String alias)
AliasDAO
storeAlias
in interface AliasDAO
application
- application context.username
- real username of user in directory.alias
- application-specific alias (cannot be null
or blank).public void removeAlias(Application application, java.lang.String username)
AliasDAO
removeAlias
in interface AliasDAO
application
- application context.username
- real username of user in directory.public void removeAliases(Application application)
AliasDAO
removeAliases
in interface AliasDAO
application
- application context.public java.util.List<Alias> findAll()
public void setHqlQueryTranslater(HQLQueryTranslater hqlQueryTranslater)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |