Search in sources :

Example 6 with NewReporter

use of io.gravitee.am.service.model.NewReporter in project gravitee-access-management by gravitee-io.

the class ReporterServiceImpl method createJdbcReporter.

private NewReporter createJdbcReporter(String domain) {
    NewReporter newReporter = new NewReporter();
    newReporter.setId(RandomString.generate());
    newReporter.setEnabled(true);
    newReporter.setName("JDBC Reporter");
    newReporter.setType(REPORTER_AM_JDBC);
    newReporter.setConfiguration(createReporterConfig(domain));
    return newReporter;
}
Also used : NewReporter(io.gravitee.am.service.model.NewReporter)

Aggregations

NewReporter (io.gravitee.am.service.model.NewReporter)6 User (io.gravitee.am.identityprovider.api.User)2 Reporter (io.gravitee.am.model.Reporter)2 ReporterNotFoundException (io.gravitee.am.service.exception.ReporterNotFoundException)2 Maybe (io.reactivex.Maybe)2 Single (io.reactivex.Single)2 Collectors (java.util.stream.Collectors)2 Autowired (org.springframework.beans.factory.annotation.Autowired)2 BaseEncoding (com.google.common.io.BaseEncoding)1 EventType (io.gravitee.am.common.audit.EventType)1 Action (io.gravitee.am.common.event.Action)1 Type (io.gravitee.am.common.event.Type)1 GraviteeContext (io.gravitee.am.common.utils.GraviteeContext)1 RandomString (io.gravitee.am.common.utils.RandomString)1 AbstractResource (io.gravitee.am.management.handlers.management.api.resources.AbstractResource)1 ReporterServiceProxy (io.gravitee.am.management.service.ReporterServiceProxy)1 Acl (io.gravitee.am.model.Acl)1 ReferenceType (io.gravitee.am.model.ReferenceType)1 Event (io.gravitee.am.model.common.event.Event)1 Payload (io.gravitee.am.model.common.event.Payload)1