adobe / aio-lib-java

Adobe I/O - Java SDK
https://opensource.adobe.com/aio-lib-java/
Apache License 2.0
6 stars 18 forks source link

GH-30 adding a `createOrUpdateProvider()` method to the ProviderService #31

Closed francoisledroff closed 2 years ago

francoisledroff commented 2 years ago

30 adding a createOrUpdateProvider() method to the ProviderService

amol-anand commented 2 years ago

If I can create or update a provider based on a user/system generated ID and not worry about ProviderId that gets returned, then I would also need to be able to find a provider based on the user/system generated ID. In this case "instanceId"

Assuming I can create / update a provider and pass "instanceId" = "amol"; i should also be able to findProviderByInstanceId("amol") and get the providerId needed for things like consuming events and registering journals etc.. That way I never have to save the providerId and I only need to worry about instanceId. What would also be great is if we were able to register a journal listening to events based on the instanceId and not ProviderId too.

francoisledroff commented 2 years ago

@amol-anand thanks for your feedback I added a findCustomEventsProviderByInstanceId method to the ProviderService