Package io.gravitee.am.service.impl
Class ReporterServiceImpl
java.lang.Object
io.gravitee.am.service.impl.ReporterServiceImpl
- All Implemented Interfaces:
ReporterService
- Author:
- Titouan COMPIEGNE (titouan.compiegne at graviteesource.com), GraviteeSource Team
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReporterServiceImpl(RepositoriesEnvironment environment, ReporterRepository reporterRepository, EventService eventService, AuditService auditService) -
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Reporter>create(Reference reference, NewReporter newReporter, User principal, boolean system) io.reactivex.rxjava3.core.Single<Reporter>createDefault(Reference reference) createInternal(Reference reference) createReporterConfig(Reference reference) io.reactivex.rxjava3.core.CompletableDeletes the reporter specified byreporterId.io.reactivex.rxjava3.core.Flowable<Reporter>findAll()io.reactivex.rxjava3.core.Maybe<Reporter>io.reactivex.rxjava3.core.Flowable<Reporter>findByReference(Reference reference) io.reactivex.rxjava3.core.CompletablenotifyInheritedReporters(Reference parentReference, Reference childReporterReference, Action childReporterAction) io.reactivex.rxjava3.core.Single<Reporter>update(Reference reference, String reporterId, UpdateReporter updateReporter, User principal, boolean isUpgrader) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.gravitee.am.service.ReporterService
create, createInternal, delete, delete, update
-
Field Details
-
MANAGEMENT_TYPE
-
MONGODB
- See Also:
-
-
Constructor Details
-
ReporterServiceImpl
public ReporterServiceImpl(RepositoriesEnvironment environment, @Lazy ReporterRepository reporterRepository, EventService eventService, AuditService auditService)
-
-
Method Details
-
findAll
- Specified by:
findAllin interfaceReporterService
-
findByReference
- Specified by:
findByReferencein interfaceReporterService
-
findById
- Specified by:
findByIdin interfaceReporterService
-
createDefault
- Specified by:
createDefaultin interfaceReporterService
-
createInternal
- Specified by:
createInternalin interfaceReporterService
-
create
public io.reactivex.rxjava3.core.Single<Reporter> create(Reference reference, NewReporter newReporter, User principal, boolean system) - Specified by:
createin interfaceReporterService
-
update
public io.reactivex.rxjava3.core.Single<Reporter> update(Reference reference, String reporterId, UpdateReporter updateReporter, User principal, boolean isUpgrader) - Specified by:
updatein interfaceReporterService
-
delete
public io.reactivex.rxjava3.core.Completable delete(String reporterId, User principal, boolean removeSystemReporter) Description copied from interface:ReporterServiceDeletes the reporter specified byreporterId.- Specified by:
deletein interfaceReporterService- Parameters:
reporterId- the ID of the reporter to deleteprincipal- the user requesting the deletionremoveSystemReporter- if true then remove system(default) reporter- Returns:
- a
Completablethat completes if deletion is successful or emits an error
-
createReporterConfig
- Specified by:
createReporterConfigin interfaceReporterService
-
notifyInheritedReporters
public io.reactivex.rxjava3.core.Completable notifyInheritedReporters(Reference parentReference, Reference childReporterReference, Action childReporterAction) - Specified by:
notifyInheritedReportersin interfaceReporterService
-