Interface ReporterService

All Known Implementing Classes:
ReporterServiceImpl

public interface ReporterService
Author:
Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
  • Method Details

    • findAll

      io.reactivex.rxjava3.core.Flowable<Reporter> findAll()
    • findByReference

      io.reactivex.rxjava3.core.Flowable<Reporter> findByReference(Reference reference)
    • findById

      io.reactivex.rxjava3.core.Maybe<Reporter> findById(String id)
    • createDefault

      io.reactivex.rxjava3.core.Single<Reporter> createDefault(Reference reference)
    • createInternal

      NewReporter createInternal(Reference reference)
    • create

      io.reactivex.rxjava3.core.Single<Reporter> create(Reference reference, NewReporter newReporter, User principal, boolean system)
    • update

      io.reactivex.rxjava3.core.Single<Reporter> update(Reference reference, String id, UpdateReporter updateReporter, User principal, boolean isUpgrader)
    • delete

      io.reactivex.rxjava3.core.Completable delete(String reporterId, User principal, boolean removeSystemReporter)
      Deletes the reporter specified by reporterId.
      Parameters:
      reporterId - the ID of the reporter to delete
      principal - the user requesting the deletion
      removeSystemReporter - if true then remove system(default) reporter
      Returns:
      a Completable that completes if deletion is successful or emits an error
    • createReporterConfig

      String createReporterConfig(Reference reference)
    • createInternal

      default NewReporter createInternal()
    • create

      default io.reactivex.rxjava3.core.Single<Reporter> create(Reference reference, NewReporter newReporter)
    • update

      default io.reactivex.rxjava3.core.Single<Reporter> update(Reference reference, String id, UpdateReporter updateReporter, boolean isUpgrader)
    • delete

      default io.reactivex.rxjava3.core.Completable delete(String reporterId)
      Deletes the reporter specified by reporterId. Includes system reporter.
      Parameters:
      reporterId - the ID of the reporter to delete
      Returns:
      a Completable that completes if deletion is successful or emits an error
    • delete

      default io.reactivex.rxjava3.core.Completable delete(String reporterId, User principal)
      Deletes the reporter specified by reporterId. Not includes system reporter. Restricted to API calls. Calling this with system reporter ID will return error.
      Parameters:
      reporterId - the ID of the reporter to delete
      Returns:
      a Completable that completes if deletion is successful or emits an error
    • notifyInheritedReporters

      io.reactivex.rxjava3.core.Completable notifyInheritedReporters(Reference parentReference, Reference affectedReference, Action action)