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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
approve
(Iterable<RemoteAgentAuthenticationEntity> authentications) Approve all authentications in the collection.@NotNull Collection<RemoteAgentAuthenticationEntity>
Get all agent authentications.@NotNull RemoteAgentAuthenticationEntity
saveAndReturn
(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, saveAll
Methods inherited from class com.atlassian.bamboo.persistence3.StatelessSessionHibernateDaoSupport
getCacheAwareHibernateTemplate
Methods inherited from class org.springframework.orm.hibernate5.support.HibernateDaoSupport
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, 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
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:RemoteAgentAuthenticationDao
Save and return a new remote agent authentication.- Specified by:
saveAndReturn
in interfaceRemoteAgentAuthenticationDao
- Parameters:
authentication
- new authentication- Returns:
- persisted authentication instance
-
getAllAuthentications
Description copied from interface:RemoteAgentAuthenticationDao
Get all agent authentications.- Specified by:
getAllAuthentications
in interfaceRemoteAgentAuthenticationDao
- Returns:
- list of all authentications
-
approve
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 interfaceRemoteAgentAuthenticationDao
- Parameters:
authentications
- collection of authentications to approve
-