com.atlassian.crowd.embedded.hibernate2
Class HibernateApplicationDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.crowd.embedded.hibernate2.HibernateApplicationDao
- All Implemented Interfaces:
- com.atlassian.crowd.dao.application.ApplicationDAO, org.springframework.beans.factory.InitializingBean
public final class HibernateApplicationDao
- extends org.springframework.orm.hibernate.support.HibernateDaoSupport
- implements com.atlassian.crowd.dao.application.ApplicationDAO
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
com.atlassian.crowd.model.application.Application |
add(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.embedded.api.PasswordCredential passwordCredential)
|
void |
addDirectoryMapping(long applicationId,
long directoryId,
boolean allowAllToAuthenticate,
com.atlassian.crowd.embedded.api.OperationType... operationTypes)
|
void |
addGroupMapping(long applicationId,
long directoryId,
java.lang.String groupName)
|
void |
addRemoteAddress(long applicationId,
com.atlassian.crowd.model.application.RemoteAddress remoteAddress)
|
java.util.List<com.atlassian.crowd.model.application.Application> |
findAuthorisedApplications(long directoryId,
java.util.List<java.lang.String> groupNames)
|
com.atlassian.crowd.model.application.ApplicationImpl |
findById(long id)
|
com.atlassian.crowd.model.application.ApplicationImpl |
findByName(java.lang.String name)
|
void |
remove(com.atlassian.crowd.model.application.Application application)
|
void |
removeDirectoryMapping(long applicationId,
long directoryId)
|
void |
removeDirectoryMappings(long directoryId)
|
void |
removeGroupMapping(long applicationId,
long directoryId,
java.lang.String groupName)
|
void |
removeGroupMappings(long directoryId,
java.lang.String groupName)
|
void |
removeRemoteAddress(long applicationId,
com.atlassian.crowd.model.application.RemoteAddress remoteAddress)
|
void |
renameGroupMappings(long directoryId,
java.lang.String oldGroupName,
java.lang.String newGroupName)
|
java.util.List<com.atlassian.crowd.model.application.Application> |
search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.model.application.Application> query)
|
void |
setDirectoryDao(HibernateDirectoryDao directoryDao)
|
com.atlassian.crowd.model.application.Application |
update(com.atlassian.crowd.model.application.Application application)
|
void |
updateCredential(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.embedded.api.PasswordCredential passwordCredential)
|
void |
updateDirectoryMapping(long applicationId,
long directoryId,
boolean allowAllToAuthenticate)
|
void |
updateDirectoryMapping(long applicationId,
long directoryId,
boolean allowAllToAuthenticate,
java.util.Set<com.atlassian.crowd.embedded.api.OperationType> operationTypes)
|
void |
updateDirectoryMapping(long applicationId,
long directoryId,
int position)
|
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 |
HibernateApplicationDao
public HibernateApplicationDao()
findById
public com.atlassian.crowd.model.application.ApplicationImpl findById(long id)
throws com.atlassian.crowd.exception.ApplicationNotFoundException
- Specified by:
findById
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
findByName
public com.atlassian.crowd.model.application.ApplicationImpl findByName(java.lang.String name)
throws com.atlassian.crowd.exception.ApplicationNotFoundException
- Specified by:
findByName
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
add
public com.atlassian.crowd.model.application.Application add(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.embedded.api.PasswordCredential passwordCredential)
- Specified by:
add
in interface com.atlassian.crowd.dao.application.ApplicationDAO
update
public com.atlassian.crowd.model.application.Application update(com.atlassian.crowd.model.application.Application application)
throws com.atlassian.crowd.exception.ApplicationNotFoundException
- Specified by:
update
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
updateCredential
public void updateCredential(com.atlassian.crowd.model.application.Application application,
com.atlassian.crowd.embedded.api.PasswordCredential passwordCredential)
throws com.atlassian.crowd.exception.ApplicationNotFoundException
- Specified by:
updateCredential
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
remove
public void remove(com.atlassian.crowd.model.application.Application application)
- Specified by:
remove
in interface com.atlassian.crowd.dao.application.ApplicationDAO
search
public java.util.List<com.atlassian.crowd.model.application.Application> search(com.atlassian.crowd.search.query.entity.EntityQuery<com.atlassian.crowd.model.application.Application> query)
- Specified by:
search
in interface com.atlassian.crowd.dao.application.ApplicationDAO
addDirectoryMapping
public void addDirectoryMapping(long applicationId,
long directoryId,
boolean allowAllToAuthenticate,
com.atlassian.crowd.embedded.api.OperationType... operationTypes)
throws com.atlassian.crowd.exception.ApplicationNotFoundException,
com.atlassian.crowd.exception.DirectoryNotFoundException
- Specified by:
addDirectoryMapping
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
com.atlassian.crowd.exception.DirectoryNotFoundException
addRemoteAddress
public void addRemoteAddress(long applicationId,
com.atlassian.crowd.model.application.RemoteAddress remoteAddress)
- Specified by:
addRemoteAddress
in interface com.atlassian.crowd.dao.application.ApplicationDAO
removeRemoteAddress
public void removeRemoteAddress(long applicationId,
com.atlassian.crowd.model.application.RemoteAddress remoteAddress)
- Specified by:
removeRemoteAddress
in interface com.atlassian.crowd.dao.application.ApplicationDAO
removeDirectoryMapping
public void removeDirectoryMapping(long applicationId,
long directoryId)
throws com.atlassian.crowd.exception.ApplicationNotFoundException
- Specified by:
removeDirectoryMapping
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
removeDirectoryMappings
public void removeDirectoryMappings(long directoryId)
- Specified by:
removeDirectoryMappings
in interface com.atlassian.crowd.dao.application.ApplicationDAO
addGroupMapping
public void addGroupMapping(long applicationId,
long directoryId,
java.lang.String groupName)
- Specified by:
addGroupMapping
in interface com.atlassian.crowd.dao.application.ApplicationDAO
removeGroupMapping
public void removeGroupMapping(long applicationId,
long directoryId,
java.lang.String groupName)
- Specified by:
removeGroupMapping
in interface com.atlassian.crowd.dao.application.ApplicationDAO
removeGroupMappings
public void removeGroupMappings(long directoryId,
java.lang.String groupName)
- Specified by:
removeGroupMappings
in interface com.atlassian.crowd.dao.application.ApplicationDAO
renameGroupMappings
public void renameGroupMappings(long directoryId,
java.lang.String oldGroupName,
java.lang.String newGroupName)
- Specified by:
renameGroupMappings
in interface com.atlassian.crowd.dao.application.ApplicationDAO
findAuthorisedApplications
public java.util.List<com.atlassian.crowd.model.application.Application> findAuthorisedApplications(long directoryId,
java.util.List<java.lang.String> groupNames)
- Specified by:
findAuthorisedApplications
in interface com.atlassian.crowd.dao.application.ApplicationDAO
updateDirectoryMapping
public void updateDirectoryMapping(long applicationId,
long directoryId,
int position)
throws com.atlassian.crowd.exception.ApplicationNotFoundException
- Specified by:
updateDirectoryMapping
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
updateDirectoryMapping
public void updateDirectoryMapping(long applicationId,
long directoryId,
boolean allowAllToAuthenticate)
throws com.atlassian.crowd.exception.ApplicationNotFoundException
- Specified by:
updateDirectoryMapping
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
updateDirectoryMapping
public void updateDirectoryMapping(long applicationId,
long directoryId,
boolean allowAllToAuthenticate,
java.util.Set<com.atlassian.crowd.embedded.api.OperationType> operationTypes)
throws com.atlassian.crowd.exception.ApplicationNotFoundException
- Specified by:
updateDirectoryMapping
in interface com.atlassian.crowd.dao.application.ApplicationDAO
- Throws:
com.atlassian.crowd.exception.ApplicationNotFoundException
setDirectoryDao
public void setDirectoryDao(HibernateDirectoryDao directoryDao)
Copyright © 2003-2014 Atlassian. All Rights Reserved.