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 ofRemoteAgentAuthenticationDao
.- Since:
- 3.4
-
-
Constructor Summary
Constructors Constructor Description RemoteAgentAuthenticationHibernateDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
approve(Iterable<RemoteAgentAuthenticationEntity> authentications)
Approve all authentications in the collection.@NotNull Collection<RemoteAgentAuthenticationEntity>
getAllAuthentications()
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 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
-
-
-
-
Method Detail
-
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
@NotNull public @NotNull Collection<RemoteAgentAuthenticationEntity> getAllAuthentications()
Description copied from interface:RemoteAgentAuthenticationDao
Get all agent authentications.- Specified by:
getAllAuthentications
in interfaceRemoteAgentAuthenticationDao
- Returns:
- list of all authentications
-
approve
public void approve(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 interfaceRemoteAgentAuthenticationDao
- Parameters:
authentications
- collection of authentications to approve
-
-