Interface RemoteAgentAuthenticationDao
-
- All Superinterfaces:
BambooObjectDao<RemoteAgentAuthenticationEntity>
- All Known Implementing Classes:
RemoteAgentAuthenticationHibernateDao
@Internal public interface RemoteAgentAuthenticationDao extends BambooObjectDao<RemoteAgentAuthenticationEntity>
Data access object to remote agent authentication.- Since:
- 3.4
-
-
Method Summary
All Methods Instance Methods Abstract 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 interface com.atlassian.bamboo.persistence3.BambooObjectDao
countAll, countWithRestriction, delete, deleteAll, findAll, findById, merge, save, saveAll
-
-
-
-
Method Detail
-
saveAndReturn
@NotNull @NotNull RemoteAgentAuthenticationEntity saveAndReturn(RemoteAgentAuthenticationEntity authentication)
Save and return a new remote agent authentication.- Parameters:
authentication
- new authentication- Returns:
- persisted authentication instance
-
getAllAuthentications
@NotNull @NotNull Collection<RemoteAgentAuthenticationEntity> getAllAuthentications()
Get all agent authentications.- Returns:
- list of all authentications
-
approve
void approve(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
-
-