From 8ca30e8cd3524e728fd9d4db05d6fd6fa2bc9d32 Mon Sep 17 00:00:00 2001
From: Roberto Sánchez <roberto.sanchez@curisit.net>
Date: Tue, 07 Jan 2014 18:32:12 +0000
Subject: [PATCH] #394 feature - Added first Java RestFul resource and JS form part
---
securis/src/main/resources/static/js/catalogs.json | 124 +++++++++++++++++++++++------------------
1 files changed, 69 insertions(+), 55 deletions(-)
diff --git a/securis/src/main/resources/static/js/catalogs.json b/securis/src/main/resources/static/js/catalogs.json
index aef9b10..dd7cf93 100644
--- a/securis/src/main/resources/static/js/catalogs.json
+++ b/securis/src/main/resources/static/js/catalogs.json
@@ -1,56 +1,70 @@
-[
- {
- "name": "Applications",
- "Entity": "Application",
- "fields": [
- {
- "name": "id",
- "display": "ID",
- "type": "number",
- "pk": true,
- "readOnly": true
- },
- {
- "name": "name",
- "display": "Name",
- "type": "string",
- "maxlength": 45,
- "mandatory": true
- },
- {
- "name": "description",
- "display": "Description",
- "type": "string",
- "maxlength": 500,
- "multiline": 2
- },
- {
- "name": "creation_timestamp",
- "display": "Creation date",
- "type": "date",
- "readOnly": true
- }
- ]
- },
- {
- "name": "License types",
- "Entity": "LicenseType",
- "fields": []
- },
- {
- "name": "Users",
- "Entity": "User",
- "fields": []
- },
- {
- "name": "Organizations",
- "Entity": "Organization",
- "fields": []
- },
- {
- "name": "System params",
- "Entity": "SystemParams",
- "fields": []
- }
-
+[ {
+ "name" : "Applications",
+ "resource" : "application",
+ "list_fields" : [ "name", "description", "creation_timestamp" ],
+ "fields" : [ {
+ "name" : "id",
+ "display" : "ID",
+ "type" : "number",
+ "pk" : true,
+ "readOnly" : true
+ }, {
+ "name" : "name",
+ "display" : "Name",
+ "type" : "string",
+ "maxlength" : 45,
+ "mandatory" : true
+ }, {
+ "name" : "description",
+ "display" : "Description",
+ "type" : "string",
+ "maxlength" : 500,
+ "multiline" : 2
+ }, {
+ "name" : "creationTimestamp",
+ "display" : "Creation date",
+ "type" : "date",
+ "readOnly" : true
+ } ]
+}, {
+ "name" : "License types",
+ "resource" : "licensetype",
+ "fields" : [ {
+ "name" : "id",
+ "display" : "ID",
+ "type" : "number",
+ "pk" : true,
+ "readOnly" : true
+ }, {
+ "name" : "name",
+ "display" : "Name",
+ "type" : "string",
+ "maxlength" : 45,
+ "mandatory" : true
+ }, {
+ "name" : "description",
+ "display" : "Description",
+ "type" : "string",
+ "maxlength" : 500,
+ "multiline" : 2
+ }, {
+ "name" : "creationTimestamp",
+ "display" : "Creation date",
+ "type" : "date",
+ "readOnly" : true
+ } ]
+}, {
+ "name" : "Users",
+ "resource" : "user",
+ "fields" : []
+}, {
+ "name" : "Organizations",
+ "resource" : "organization",
+ "fields" : []
+}, {
+ "name" : "System params",
+ "resource" : "systemparams",
+ "fields" : []
+}
+
]
\ No newline at end of file
--
Gitblit v1.3.2