public class RemoteAgentAuthenticationHibernateDao extends BambooHibernateObjectDao<RemoteAgentAuthenticationEntity> implements RemoteAgentAuthenticationDao
RemoteAgentAuthenticationDao
.Constructor and Description |
---|
RemoteAgentAuthenticationHibernateDao() |
Modifier and Type | Method and Description |
---|---|
void |
approve(Iterable<RemoteAgentAuthenticationEntity> authentications)
Approve all authentications in the collection.
|
Collection<RemoteAgentAuthenticationEntity> |
getAllAuthentications()
Get all agent authentications.
|
RemoteAgentAuthenticationEntity |
saveAndReturn(RemoteAgentAuthenticationEntity authentication)
Save and return a new remote agent authentication.
|
countAll, countWithRestriction, delete, deleteAll, executeCountQuery, findAll, findById, merge, save, saveAll
getCacheAwareHibernateTemplate
checkDaoConfig, createHibernateTemplate, currentSession, getHibernateTemplate, getSessionFactory, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
public RemoteAgentAuthenticationHibernateDao()
@NotNull public RemoteAgentAuthenticationEntity saveAndReturn(RemoteAgentAuthenticationEntity authentication)
RemoteAgentAuthenticationDao
saveAndReturn
in interface RemoteAgentAuthenticationDao
authentication
- new authentication@NotNull public Collection<RemoteAgentAuthenticationEntity> getAllAuthentications()
RemoteAgentAuthenticationDao
getAllAuthentications
in interface RemoteAgentAuthenticationDao
public void approve(Iterable<RemoteAgentAuthenticationEntity> authentications)
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.
approve
in interface RemoteAgentAuthenticationDao
authentications
- collection of authentications to approveCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.