You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by aw...@apache.org on 2019/06/03 19:33:06 UTC
[fineract-cn-notifications] 05/25: update
This is an automated email from the ASF dual-hosted git repository.
awasum pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-notifications.git
commit 13e3802db61dc28190a2a0102376074048af75a0
Author: Ebenezer Graham <eg...@alustudent.com>
AuthorDate: Wed Jun 13 04:27:12 2018 +0400
update
---
.../api/v1/client/NotificationManager.class | Bin 1462 -> 1474 bytes
.../api/v1/domain/EmailConfiguration.class | Bin 0 -> 3790 bytes
.../api/v1/domain/SMSConfiguration.class | Bin 0 -> 2972 bytes
.../api/v1/client/NotificationManager.java | 6 +--
.../fineract/cn/notification/TestSample.java | 2 +-
.../db/migrations/mariadb/V1__initial_setup.sql | 44 ++++++++++++++++++++-
.../db/migrations/mariadb/V1__initial_setup.sql | 44 ++++++++++++++++++++-
7 files changed, 88 insertions(+), 8 deletions(-)
diff --git a/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/client/NotificationManager.class b/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/client/NotificationManager.class
index 3cb4555..741d5f5 100644
Binary files a/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/client/NotificationManager.class and b/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/client/NotificationManager.class differ
diff --git a/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/domain/EmailConfiguration.class b/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/domain/EmailConfiguration.class
new file mode 100644
index 0000000..dd410b5
Binary files /dev/null and b/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/domain/EmailConfiguration.class differ
diff --git a/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/domain/SMSConfiguration.class b/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/domain/SMSConfiguration.class
new file mode 100644
index 0000000..f7e3f18
Binary files /dev/null and b/api/out/production/classes/org/apache/fineract/cn/notification/api/v1/domain/SMSConfiguration.class differ
diff --git a/api/src/main/java/org/apache/fineract/cn/notification/api/v1/client/NotificationManager.java b/api/src/main/java/org/apache/fineract/cn/notification/api/v1/client/NotificationManager.java
index 3c20ea3..6d0a7b1 100644
--- a/api/src/main/java/org/apache/fineract/cn/notification/api/v1/client/NotificationManager.java
+++ b/api/src/main/java/org/apache/fineract/cn/notification/api/v1/client/NotificationManager.java
@@ -34,7 +34,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
public interface NotificationManager {
@RequestMapping(
- value = "/sample",
+ value = "/notification",
method = RequestMethod.GET,
produces = MediaType.ALL_VALUE,
consumes = MediaType.APPLICATION_JSON_VALUE
@@ -42,14 +42,14 @@ public interface NotificationManager {
List<Sample> findAllEntities();
@RequestMapping(
- value = "/sample/{identifier}",
+ value = "/notification/{identifier}",
method = RequestMethod.GET,
produces = MediaType.ALL_VALUE,
consumes = MediaType.APPLICATION_JSON_VALUE)
Sample getEntity(@PathVariable("identifier") final String identifier);
@RequestMapping(
- value = "/sample",
+ value = "/notification",
method = RequestMethod.POST,
produces = MediaType.APPLICATION_JSON_VALUE,
consumes = MediaType.APPLICATION_JSON_VALUE
diff --git a/component-test/src/main/java/org/apache/fineract/cn/notification/TestSample.java b/component-test/src/main/java/org/apache/fineract/cn/notification/TestSample.java
index 76db357..cc39439 100644
--- a/component-test/src/main/java/org/apache/fineract/cn/notification/TestSample.java
+++ b/component-test/src/main/java/org/apache/fineract/cn/notification/TestSample.java
@@ -21,7 +21,7 @@ package org.apache.fineract.cn.notification;
import org.apache.fineract.cn.notification.api.v1.client.NotificationManager;
import org.apache.fineract.cn.notification.api.v1.domain.Sample;
import org.apache.fineract.cn.notification.api.v1.events.NotificationEventConstants;
-import org.apache.fineract.cn.notification.service.NotificationConfiguration;
+import com.amazonaws.services.autoscaling.model.NotificationConfiguration;
import java.util.List;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.fineract.cn.anubis.test.v1.TenantApplicationSecurityEnvironmentTestRule;
diff --git a/service/out/production/resources/db/migrations/mariadb/V1__initial_setup.sql b/service/out/production/resources/db/migrations/mariadb/V1__initial_setup.sql
index b68edad..ff9a61f 100644
--- a/service/out/production/resources/db/migrations/mariadb/V1__initial_setup.sql
+++ b/service/out/production/resources/db/migrations/mariadb/V1__initial_setup.sql
@@ -17,7 +17,47 @@
-- under the License.
--
-CREATE TABLE notification (
+-- -----------------------------------------------------
+-- Table `fineract-cn-notification`.`email_gateway_configurations`
+-- -----------------------------------------------------
+CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`email_gateway_configurations` (
+ `id` INT(11) NOT NULL AUTO_INCREMENT,
+ `identifer` VARCHAR(45) NULL DEFAULT NULL,
+ `host` VARCHAR(45) NOT NULL,
+ `port` VARCHAR(45) NOT NULL,
+ `username` VARCHAR(45) NOT NULL,
+ `app_id` VARCHAR(45) NOT NULL,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = latin1;
+
+
+-- -----------------------------------------------------
+-- Table `fineract-cn-notification`.`sms_gateway_configurations`
+-- -----------------------------------------------------
+CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`sms_gateway_configurations` (
+ `id` INT(11) NOT NULL AUTO_INCREMENT,
+ `identifier` VARCHAR(45) NULL DEFAULT NULL,
+ `accountsid` VARCHAR(255) NOT NULL,
+ `auth_token` VARCHAR(255) NOT NULL,
+ `option` VARCHAR(45) NULL DEFAULT NULL,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = latin1;
+
+
+-- -----------------------------------------------------
+-- Table `fineract-cn-notification`.`templates`
+-- -----------------------------------------------------
+CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`templates` (
+ `id` INT(11) NOT NULL AUTO_INCREMENT,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = latin1;
+
+-- ------------------------------------------------------
+
+CREATE TABLE sample (
id BIGINT NOT NULL AUTO_INCREMENT,
identifier VARCHAR(8) NOT NULL,
payload VARCHAR(512) NULL,
@@ -29,4 +69,4 @@ CREATE TABLE template_sample (
identifier VARCHAR(8) NOT NULL,
payload VARCHAR(512) NULL,
CONSTRAINT template_sample_pk PRIMARY KEY (id)
-);
+);
\ No newline at end of file
diff --git a/service/src/main/resources/db/migrations/mariadb/V1__initial_setup.sql b/service/src/main/resources/db/migrations/mariadb/V1__initial_setup.sql
index b68edad..ff9a61f 100644
--- a/service/src/main/resources/db/migrations/mariadb/V1__initial_setup.sql
+++ b/service/src/main/resources/db/migrations/mariadb/V1__initial_setup.sql
@@ -17,7 +17,47 @@
-- under the License.
--
-CREATE TABLE notification (
+-- -----------------------------------------------------
+-- Table `fineract-cn-notification`.`email_gateway_configurations`
+-- -----------------------------------------------------
+CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`email_gateway_configurations` (
+ `id` INT(11) NOT NULL AUTO_INCREMENT,
+ `identifer` VARCHAR(45) NULL DEFAULT NULL,
+ `host` VARCHAR(45) NOT NULL,
+ `port` VARCHAR(45) NOT NULL,
+ `username` VARCHAR(45) NOT NULL,
+ `app_id` VARCHAR(45) NOT NULL,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = latin1;
+
+
+-- -----------------------------------------------------
+-- Table `fineract-cn-notification`.`sms_gateway_configurations`
+-- -----------------------------------------------------
+CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`sms_gateway_configurations` (
+ `id` INT(11) NOT NULL AUTO_INCREMENT,
+ `identifier` VARCHAR(45) NULL DEFAULT NULL,
+ `accountsid` VARCHAR(255) NOT NULL,
+ `auth_token` VARCHAR(255) NOT NULL,
+ `option` VARCHAR(45) NULL DEFAULT NULL,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = latin1;
+
+
+-- -----------------------------------------------------
+-- Table `fineract-cn-notification`.`templates`
+-- -----------------------------------------------------
+CREATE TABLE IF NOT EXISTS `fineract-cn-notification`.`templates` (
+ `id` INT(11) NOT NULL AUTO_INCREMENT,
+ PRIMARY KEY (`id`))
+ENGINE = InnoDB
+DEFAULT CHARACTER SET = latin1;
+
+-- ------------------------------------------------------
+
+CREATE TABLE sample (
id BIGINT NOT NULL AUTO_INCREMENT,
identifier VARCHAR(8) NOT NULL,
payload VARCHAR(512) NULL,
@@ -29,4 +69,4 @@ CREATE TABLE template_sample (
identifier VARCHAR(8) NOT NULL,
payload VARCHAR(512) NULL,
CONSTRAINT template_sample_pk PRIMARY KEY (id)
-);
+);
\ No newline at end of file