com.atlassian.bamboo.buildqueue.dao
Interface RemoteAgentAuthenticationDao

All Superinterfaces:
BambooObjectDao<RemoteAgentAuthenticationEntity>
All Known Implementing Classes:
RemoteAgentAuthenticationHibernateDao

public interface RemoteAgentAuthenticationDao
extends BambooObjectDao<RemoteAgentAuthenticationEntity>

Data access object to remote agent authentication.

Since:
3.4

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 interface com.atlassian.bamboo.persistence3.BambooObjectDao
delete, deleteAll, executeReturnLong, findAll, findById, save, saveAll
 

Method Detail

saveAndReturn

@NotNull
RemoteAgentAuthenticationEntity saveAndReturn(RemoteAgentAuthenticationEntity authentication)
Save and return a new remote agent authentication.

Parameters:
authentication - new authentication
Returns:
persisted authentication instance

getAllAuthentications

@NotNull
java.util.Collection<RemoteAgentAuthenticationEntity> getAllAuthentications()
Get all agent authentications.

Returns:
list of all authentications

approve

void approve(java.lang.Iterable<RemoteAgentAuthenticationEntity> authentications)

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.

Parameters:
authentications - collection of authentications to approve


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.