Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Request param removed in Emit event #55

Merged
merged 3 commits into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

# backbase-services-toolkit Changelog

## [Unreleased]

## Unreleased
## 1.0.1
- Bug fix - Remove usage of Internal request


## [1.0.0]

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/liveTemplates/backbase.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<templateSet group="backbase">
<template name="emitevent" value="private final com.backbase.buildingblocks.backend.communication.event.proxy.EventBus eventBus;&#10;private final com.backbase.buildingblocks.backend.internalrequest.UserRequestContext context;&#10;&#10; public $CLASS_NAME$(com.backbase.buildingblocks.backend.communication.event.proxy.EventBus eventBus, com.backbase.buildingblocks.backend.internalrequest.UserRequestContext context) {&#10; this.eventBus = eventBus;&#10; this.context= context;&#10; }&#10;public void exampleEmitEvent(com.backbase.buildingblocks.backend.internalrequest.InternalRequest&lt;?&gt; request) {&#10;&#10; var event = new $EVENT_CLASS$();&#10; event.setData(&quot;some data&quot;); //TODO fill event based on the request. &#10;&#10;var envelopedEvent = new com.backbase.buildingblocks.backend.communication.event.EnvelopedEvent&lt;$EVENT_CLASS$&gt;();&#10; envelopedEvent.setEvent(event);&#10; envelopedEvent.setUserRequestContext(context);&#10; eventBus.emitEvent(envelopedEvent);&#10;}" description="Method to emit an event" toReformat="true" toShortenFQNames="true">
<template name="emitevent" value="private final com.backbase.buildingblocks.backend.communication.event.proxy.EventBus eventBus;&#10;private final com.backbase.buildingblocks.backend.internalrequest.UserRequestContext context;&#10;&#10; public $CLASS_NAME$(com.backbase.buildingblocks.backend.communication.event.proxy.EventBus eventBus, com.backbase.buildingblocks.backend.internalrequest.UserRequestContext context) {&#10; this.eventBus = eventBus;&#10; this.context= context;&#10; }&#10;public void exampleEmitEvent() {&#10;&#10; var event = new $EVENT_CLASS$();&#10; event.setData(&quot;some data&quot;); //TODO fill event based on the request. &#10;&#10;var envelopedEvent = new com.backbase.buildingblocks.backend.communication.event.EnvelopedEvent&lt;$EVENT_CLASS$&gt;();&#10; envelopedEvent.setEvent(event);&#10; envelopedEvent.setUserRequestContext(context);&#10; eventBus.emitEvent(envelopedEvent);&#10;}" description="Method to emit an event" toReformat="true" toShortenFQNames="true">
<variable name="CLASS_NAME" expression="className()" defaultValue="" alwaysStopAt="false" />
<variable name="EVENT_CLASS" expression="subtypes(&quot;com.backbase.buildingblocks.persistence.model.Event&quot;)" defaultValue="" alwaysStopAt="true" />
<context>
Expand Down
Loading