adobe / adobe/aio-lib-java

` events_mgmt` : need a way to add multiple EventsOfInterest when registering a new event consumer

Offen
#24 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
7
Forks
22
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### There should be a way to add multiple ProviderId/EventCode combinations when registering an event consumer using this library.

### Currently, there is no way to add multiple EventsOfInterest while registering an event consumer using this library. We need a way to

### Reproduce Scenario (including but not limited to)
Optional created = this.registrationService.createRegistration(
RegistrationInputModel.builder()
.description(this.eventConsumerConfig.event_registration_description())
.name(this.eventConsumerConfig.event_registration_name())

//Only allows one combination of provider and event code!
//What If i want to add more than one combination to listen to in this journal?
.addEventsOfInterests(EventsOfInterest.builder()
.setEventCode(this.eventConsumerConfig.aio_event_code())
.setProviderId(providerId).build())
);
#### Steps to Reproduce
See above

#### Platform and Version
Java 11

#### Sample Code that illustrates the problem
See above

#### Logs taken while reproducing problem
N/A because i cannot add multiple EventsOfInterest

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne im Beispiel mit RegistrationInputModel.builder(), addEventsOfInterests() und registrationService.createRegistration(). Verfolge, wie EventsOfInterest während der Registrierung gespeichert wird, und passe die Registrierung anschließend so an, dass sie mehrere ProviderId/EventCode-Kombinationen akzeptiert. Als erledigt gilt die Aufgabe, wenn sich ein Consumer mit mehr als einem EventsOfInterest registrieren kann; verifiziere dies mit einem Java 11-Beispiel oder -Test, falls eines vorhanden ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
38/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.