com.atlassian.bamboo.buildqueue.dao
Class RemoteAgentAuthenticationHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<RemoteAgentAuthenticationEntity>
com.atlassian.bamboo.buildqueue.dao.RemoteAgentAuthenticationHibernateDao
- All Implemented Interfaces:
- RemoteAgentAuthenticationDao, BambooObjectDao<RemoteAgentAuthenticationEntity>, org.springframework.beans.factory.InitializingBean
public class RemoteAgentAuthenticationHibernateDao
- extends BambooHibernateObjectDao<RemoteAgentAuthenticationEntity>
- implements RemoteAgentAuthenticationDao
Hibernate implementation of RemoteAgentAuthenticationDao
.
- Since:
- 3.4
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
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 |
RemoteAgentAuthenticationHibernateDao
public RemoteAgentAuthenticationHibernateDao()
saveAndReturn
@NotNull
public RemoteAgentAuthenticationEntity saveAndReturn(RemoteAgentAuthenticationEntity authentication)
- Description copied from interface:
RemoteAgentAuthenticationDao
- Save and return a new remote agent authentication.
- Specified by:
saveAndReturn
in interface RemoteAgentAuthenticationDao
- Parameters:
authentication
- new authentication
- Returns:
- persisted authentication instance
getAllAuthentications
@NotNull
public java.util.Collection<RemoteAgentAuthenticationEntity> getAllAuthentications()
- Description copied from interface:
RemoteAgentAuthenticationDao
- Get all agent authentications.
- Specified by:
getAllAuthentications
in interface RemoteAgentAuthenticationDao
- Returns:
- list of all authentications
approve
public void approve(java.lang.Iterable<RemoteAgentAuthenticationEntity> authentications)
- Description copied from interface:
RemoteAgentAuthenticationDao
-
Approve all authentications in the collection.
Authentications are uniquely identified by their UUID so any already approved authentication that is matched
by UUID of an authentication in authentications will have its IP updated. Otherwise a new entity
will be stored.
- Specified by:
approve
in interface RemoteAgentAuthenticationDao
- Parameters:
authentications
- collection of authentications to approve
Copyright © 2012 Atlassian. All Rights Reserved.