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
Modifier and TypeMethodDescriptionvoidapprove(Iterable<RemoteAgentAuthenticationEntity> authentications) Approve all authentications in the collection.@NotNull Collection<RemoteAgentAuthenticationEntity> Get all agent authentications.@NotNull RemoteAgentAuthenticationEntitysaveAndReturn(RemoteAgentAuthenticationEntity authentication) Save and return a new remote agent authentication.
-
Method Details
-
saveAndReturn
@NotNull @NotNull RemoteAgentAuthenticationEntity saveAndReturn(RemoteAgentAuthenticationEntity authentication) Save and return a new remote agent authentication.- Parameters:
authentication- new authentication- Returns:
- persisted authentication instance
-
getAllAuthentications
Get all agent authentications.- Returns:
- list of all authentications
-
approve
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
-