-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: backend changes to implement short codes in webhooks to pass dy…
…namic info on webhook execution (#7623) * feat: backend changes to implement short codes in webhooks to pass dynamic info on webhook execution Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * feat: backend changes to implement short codes in webhooks to pass dynamic info on webhook execution Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * feat: removed shortCode cloumn from features table Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * feat: adding webhook permissions in admin-ui configuration Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * feat: correct sonar code smells Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * feat: correct sonar code smells Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * feat: add datatypes to table columns Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * fix: error in triggrering webhook Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * fix: remove commented code Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> * fix: removing compilation error Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> --------- Signed-off-by: Arnab Dutta <arnab.bdutta@gmail.com> Co-authored-by: YuriyZ <yzabrovarniy@gmail.com>
- Loading branch information
Showing
15 changed files
with
345 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...min-ui-plugin/src/main/java/io/jans/ca/plugin/adminui/model/webhook/ShortCodeRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package io.jans.ca.plugin.adminui.model.webhook; | ||
|
||
import io.jans.orm.annotation.JsonObject; | ||
|
||
import java.io.Serializable; | ||
import java.util.Map; | ||
|
||
public class ShortCodeRequest implements Serializable { | ||
private String webhookId; | ||
@JsonObject | ||
transient Map<String, Object> shortcodeValueMap; | ||
|
||
public String getWebhookId() { | ||
return webhookId; | ||
} | ||
|
||
public void setWebhookId(String webhookId) { | ||
this.webhookId = webhookId; | ||
} | ||
|
||
public Map<String, Object> getShortcodeValueMap() { | ||
return shortcodeValueMap; | ||
} | ||
|
||
public void setShortcodeValueMap(Map<String, Object> shortcodeValueMap) { | ||
this.shortcodeValueMap = shortcodeValueMap; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "ShortCodeRequest{" + | ||
"webhookId='" + webhookId + '\'' + | ||
", shortcodeValueMap=" + shortcodeValueMap + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.