diff --git a/pom.xml b/pom.xml
index 12c54a1..f855470 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
org.wso2.carbon.connector
org.wso2.carbon.connector.redis
jar
- 2.7.0
+ 3.0.0
WSO2 Carbon - Mediation Library Connector For Redis
http://wso2.org
diff --git a/src/main/resources/uischema/get.json b/src/main/resources/uischema/get.json
new file mode 100644
index 0000000..5e6aef7
--- /dev/null
+++ b/src/main/resources/uischema/get.json
@@ -0,0 +1,50 @@
+{
+ "connectorName": "redis",
+ "operationName": "get",
+ "title": "Get fields in redis db",
+ "help": "Get fields in redis db
",
+ "elements": [
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "General",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "configRef",
+ "displayName": "Redis Connection",
+ "inputType": "connection",
+ "allowedConnectionTypes": [
+ "REDIS"
+ ],
+ "defaultType": "connection.local",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Redis connection to be used"
+ }
+ },
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "Basic",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "redisKey",
+ "displayName": "redisKey",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Redis Key"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/src/main/resources/uischema/hSet.json b/src/main/resources/uischema/hSet.json
new file mode 100644
index 0000000..907c685
--- /dev/null
+++ b/src/main/resources/uischema/hSet.json
@@ -0,0 +1,72 @@
+{
+ "connectorName": "redis",
+ "operationName": "hSet",
+ "title": "Set fields in hash tables stored in redis",
+ "help": "Set fields in hash tables stored in redis
",
+ "elements": [
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "General",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "configRef",
+ "displayName": "Redis Connection",
+ "inputType": "connection",
+ "allowedConnectionTypes": [
+ "REDIS"
+ ],
+ "defaultType": "connection.local",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "File connection to be used"
+ }
+ },
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "Basic",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "redisKey",
+ "displayName": "redisKey",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Redis Key"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "redisField",
+ "displayName": "redisField",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": "redis Field"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "redisValue",
+ "displayName": "redisValue",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": "Redis Value"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/src/main/resources/uischema/redis.json b/src/main/resources/uischema/redis.json
new file mode 100644
index 0000000..0349af4
--- /dev/null
+++ b/src/main/resources/uischema/redis.json
@@ -0,0 +1,124 @@
+{
+ "connectorName": "redis",
+ "connectionName": "REDIS",
+ "title": "REDIS Connection Config",
+ "help": "REDIS Connector
The REDIS connector supports REDIS connection",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "connectionName",
+ "displayName": "Connection Name",
+ "inputType": "string",
+ "defaultValue": "REDIS_CONNECTION_1",
+ "required": "true",
+ "helpTip": "The name for the file connection",
+ "validation": "nameWithoutSpecialCharactors"
+ }
+ },
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "General",
+ "elements": [
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "Basic",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "redisHost",
+ "displayName": "redisHost",
+ "inputType": "string",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Host name of the redis server"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "redisPort",
+ "displayName": "redisPort",
+ "inputType": "string",
+ "defaultValue": "6379",
+ "required": "true",
+ "helpTip": "The port number of the redis server"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "maxConnections",
+ "displayName": "maxConnections",
+ "inputType": "string",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": " The maximum number of objects (including both idle and active/borrowed) that can exist within the pool at the same time"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "maxIdleConnections",
+ "displayName": "maxIdleConnections",
+ "inputType": "string",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": "The maximum number of objects that can remain idle in the pool"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "maxWaitTime",
+ "displayName": "maxWaitTime",
+ "inputType": "string",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": "The maximum amount of time that the borrowObject() method should block"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "evictionCheckInterval",
+ "displayName": "evictionCheckInterval",
+ "inputType": "string",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": "The time interval between runs of the idle object evictor thread"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "minEvictionTime",
+ "displayName": "minEvictionTime",
+ "inputType": "string",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": "The minimum amount of time an object must sit idle in the pool before it is eligible for eviction by the idle object evictor "
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "exhaustedAction",
+ "displayName": "exhaustedAction",
+ "inputType": "string",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": "Determines the action to take when the borrowObject() method is called, but the pool is exhausted"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}
diff --git a/src/main/resources/uischema/set.json b/src/main/resources/uischema/set.json
new file mode 100644
index 0000000..3fcc5b6
--- /dev/null
+++ b/src/main/resources/uischema/set.json
@@ -0,0 +1,61 @@
+{
+ "connectorName": "redis",
+ "operationName": "set",
+ "title": "Set fields in redis db",
+ "help": "Set fields in redis db
",
+ "elements": [
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "General",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "configRef",
+ "displayName": "Redis Connection",
+ "inputType": "connection",
+ "allowedConnectionTypes": [
+ "REDIS"
+ ],
+ "defaultType": "connection.local",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Redis connection to be used"
+ }
+ },
+ {
+ "type": "attributeGroup",
+ "value": {
+ "groupName": "Basic",
+ "elements": [
+ {
+ "type": "attribute",
+ "value": {
+ "name": "redisKey",
+ "displayName": "redisKey",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "true",
+ "helpTip": "Redis Key"
+ }
+ },
+ {
+ "type": "attribute",
+ "value": {
+ "name": "redisValue",
+ "displayName": "redisValue",
+ "inputType": "stringOrExpression",
+ "defaultValue": "",
+ "required": "false",
+ "helpTip": "Redis Value"
+ }
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+ ]
+}