Class RemoteAgentAuthenticationHibernateDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate5.support.HibernateDaoSupport
com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
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
-
Field Summary
Fields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapprove(Iterable<RemoteAgentAuthenticationEntity> authentications) Approve all authentications in the collection.@NotNull Collection<RemoteAgentAuthenticationEntity>Get all agent authentications.@NotNull RemoteAgentAuthenticationEntitysaveAndReturn(RemoteAgentAuthenticationEntity authentication) Save and return a new remote agent authentication.Methods inherited from class com.atlassian.bamboo.persistence3.BambooHibernateObjectDao
convertSearchTermToLikeExpression, countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAllMethods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplateMethods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactoryMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
Constructor Details
-
RemoteAgentAuthenticationHibernateDao
public RemoteAgentAuthenticationHibernateDao()
-
-
Method Details
-
saveAndReturn
@NotNull public @NotNull RemoteAgentAuthenticationEntity saveAndReturn(RemoteAgentAuthenticationEntity authentication) Description copied from interface:RemoteAgentAuthenticationDaoSave and return a new remote agent authentication.- Specified by:
saveAndReturnin interfaceRemoteAgentAuthenticationDao- Parameters:
authentication- new authentication- Returns:
- persisted authentication instance
-
getAllAuthentications
Description copied from interface:RemoteAgentAuthenticationDaoGet all agent authentications.- Specified by:
getAllAuthenticationsin interfaceRemoteAgentAuthenticationDao- Returns:
- list of all authentications
-
approve
Description copied from interface:RemoteAgentAuthenticationDaoApprove 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:
approvein interfaceRemoteAgentAuthenticationDao- Parameters:
authentications- collection of authentications to approve
-