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 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

      @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