You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2015/04/17 10:30:07 UTC

[02/16] stratos git commit: improve tenant schema

improve tenant schema


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/9d8077b4
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/9d8077b4
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/9d8077b4

Branch: refs/heads/master
Commit: 9d8077b4faeead7f6d38949339b1a9215dfed6d2
Parents: c2950cc
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Wed Mar 25 01:03:31 2015 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Fri Apr 17 13:59:55 2015 +0530

----------------------------------------------------------------------
 .../controllers/forms/schema/users/tenants.json | 46 ++++++++++----------
 1 file changed, 24 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/9d8077b4/components/org.apache.stratos.manager.console/console/controllers/forms/schema/users/tenants.json
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/controllers/forms/schema/users/tenants.json b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/users/tenants.json
index 69df31b..bbfa40a 100644
--- a/components/org.apache.stratos.manager.console/console/controllers/forms/schema/users/tenants.json
+++ b/components/org.apache.stratos.manager.console/console/controllers/forms/schema/users/tenants.json
@@ -10,49 +10,51 @@
     },
     "required":["admin","adminPassword","email", "firstname", "lastname", "tenantDomain"],
     "properties":{
+        "firstname": {
+            "type":"string",
+            "id": "root/firstname",
+            "default": "Frank",
+            "title": "First Name",
+            "name": "First Name"
+        },
+        "lastname": {
+            "type":"string",
+            "id": "root/lastname",
+            "default": "Myers",
+            "title": "Last Name",
+            "name": "Last Name"
+        },
         "admin": {
             "type":"string",
             "id": "root/admin",
             "default": "admin",
-            "title": "Admin user name",
-            "name": "Admin user name"
+            "title": "Admin User Name",
+            "name": "Admin User Name"
         },
         "adminPassword": {
             "type":"string",
             "id": "root/adminPassword",
             "format":"password",
             "default": "admin123",
-            "title": "Admin user password",
+            "minLength":6,
+            "title": "Admin User Password",
             "description":"You need to add least 6 characters including number",
-            "name": "Admin user password"
+            "name": "Admin User Password"
         },
         "email": {
             "type":"string",
             "id": "root/email",
             "default": "foo@bar.com",
-            "title": "Admin email",
-            "name": "Admin email"
-        },
-        "firstname": {
-            "type":"string",
-            "id": "root/firstname",
-            "default": "Frank",
-            "title": "First name",
-            "name": "First name"
-        },
-        "lastname": {
-            "type":"string",
-            "id": "root/lastname",
-            "default": "Myers",
-            "title": "Last name",
-            "name": "Last name"
+            "format": "email",
+            "title": "Admin Email",
+            "name": "Admin Email"
         },
         "tenantDomain": {
             "type":"string",
             "id": "root/tenantDomain",
             "default": "frank.com",
-            "title": "Tenant domain",
-            "name": "Tenant domain"
+            "title": "Tenant Domain",
+            "name": "Tenant Domain"
         },
         "active": {
             "type":"boolean",