Class InstallationServiceImpl

java.lang.Object
io.gravitee.am.service.impl.InstallationServiceImpl
All Implemented Interfaces:
InstallationService

@Component public class InstallationServiceImpl extends Object implements InstallationService
Author:
Jeoffrey HAEYAERT (jeoffrey.haeyaert at graviteesource.com), GraviteeSource Team
  • Constructor Details

    • InstallationServiceImpl

      public InstallationServiceImpl(@Lazy InstallationRepository installationRepository)
  • Method Details

    • get

      public io.reactivex.rxjava3.core.Single<Installation> get()
      Description copied from interface: InstallationService
      Get the current installation.
      Specified by:
      get in interface InstallationService
      Returns:
      the current installation or an InstallationNotFoundException exception.
    • getOrInitialize

      public io.reactivex.rxjava3.core.Single<Installation> getOrInitialize()
      Description copied from interface: InstallationService
      Get or initialize the installation. A new installation will be created only if none exists.
      Specified by:
      getOrInitialize in interface InstallationService
      Returns:
      the created or already existing installation.
    • setAdditionalInformation

      public io.reactivex.rxjava3.core.Single<Installation> setAdditionalInformation(Map<String,String> additionalInformation)
      Description copied from interface: InstallationService
      Set additional information of the current installation.
      Specified by:
      setAdditionalInformation in interface InstallationService
      Parameters:
      additionalInformation - the list of additional information to set on the existing installation.
      Returns:
      the updated installation
    • addAdditionalInformation

      public io.reactivex.rxjava3.core.Single<Installation> addAdditionalInformation(Map<String,String> additionalInformation)
      Description copied from interface: InstallationService
      Add or update the additional information of the current installation.
      Specified by:
      addAdditionalInformation in interface InstallationService
      Parameters:
      additionalInformation - the list of additional information to add or update on the existing installation.
      Returns:
      the updated installation.
    • delete

      public io.reactivex.rxjava3.core.Completable delete()
      Description copied from interface: InstallationService
      Delete the current installation.
      Specified by:
      delete in interface InstallationService
      Returns:
      the operation status