com.atlassian.bamboo.buildqueue.dao
Class RemoteAgentAuthenticationHibernateDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate.support.HibernateDaoSupport
          extended by com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
              extended by com.atlassian.bamboo.persistence3.BambooHibernateObjectDao<RemoteAgentAuthenticationEntity>
                  extended by 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

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
RemoteAgentAuthenticationHibernateDao()
           
 
Method Summary
 void approve(java.lang.Iterable<RemoteAgentAuthenticationEntity> authentications)
          

Approve all authentications in the collection.

 java.util.Collection<RemoteAgentAuthenticationEntity> getAllAuthentications()
          Get all agent authentications.
 RemoteAgentAuthenticationEntity saveAndReturn(RemoteAgentAuthenticationEntity authentication)
          Save and return a new remote agent authentication.
 
Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
delete, deleteAll, execute, executeCountQuery, executeFind, executeReturnLong, findAll, findById, save, saveAll
 
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
 
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
 
Methods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Constructor Detail

RemoteAgentAuthenticationHibernateDao

public RemoteAgentAuthenticationHibernateDao()
Method Detail

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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.