Prechádzať zdrojové kódy

增加默认的配置文件生成

zhourui 5 rokov pred
rodič
commit
4d9e2586f2

+ 21 - 0
o2server/configSample/clientInit.json

@@ -0,0 +1,21 @@
+{
+  "enable": false,
+  "center": [
+    {}
+  ],
+  "footer": "",
+  "title": "",
+  "app_protocol": "auto",
+  "loginPage": {
+    "###enable": "是否启用定制的登录页面.###",
+    "###portal": "登录的门户.###",
+    "###page": "登录页面.###"
+  },
+  "###enable": "是否启用.###",
+  "###center": "center节点信息.###",
+  "###footer": "网页底部说明.###",
+  "###title": "网页头部说明.###",
+  "###app_protocol": "APP使用协议,auto,http,https.###",
+  "###loginPage": "登录页面配置.###",
+  "###webSocketEnable": "是否启用webSocket###"
+}

+ 265 - 0
o2server/configSample/components.json

@@ -0,0 +1,265 @@
+{
+  "systems": [
+    {
+      "name": "Setting",
+      "path": "Setting",
+      "title": "系统设置",
+      "iconPath": "appicon.png",
+      "orderNumber": 1.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Org",
+      "path": "Org",
+      "title": "组织管理",
+      "iconPath": "appicon.png",
+      "orderNumber": 2.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "cmsManager",
+      "path": "cms.Column",
+      "title": "内容管理平台",
+      "iconPath": "appicon.png",
+      "orderNumber": 3.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "cms",
+      "path": "cms.Index",
+      "title": "信息平台",
+      "iconPath": "appicon.png",
+      "orderNumber": 12.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "ApplicationExplorer",
+      "path": "process.ApplicationExplorer",
+      "title": "流程管理平台",
+      "iconPath": "appicon.png",
+      "orderNumber": 4.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "PortalExplorer",
+      "path": "portal.PortalExplorer",
+      "title": "门户管理平台",
+      "iconPath": "appicon.png",
+      "orderNumber": 5.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "DataExplorer",
+      "path": "query.QueryExplorer",
+      "title": "数据中心平台",
+      "iconPath": "appicon.png",
+      "orderNumber": 6.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "service.ServiceManager",
+      "path": "service.ServiceManager",
+      "title": "服务管理平台",
+      "iconPath": "appicon.png",
+      "orderNumber": 7.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "AppMarket",
+      "path": "AppMarket",
+      "title": "应用市场",
+      "iconPath": "appicon.png",
+      "orderNumber": 8.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "AppCenter",
+      "path": "AppCenter",
+      "title": "应用管理",
+      "iconPath": "appicon.png",
+      "orderNumber": 9.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "LogViewer",
+      "path": "LogViewer",
+      "title": "日志",
+      "iconPath": "appicon.png",
+      "orderNumber": 10.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Profile",
+      "path": "Profile",
+      "title": "个人设置",
+      "iconPath": "appicon.png",
+      "orderNumber": 11.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "BAM",
+      "path": "BAM",
+      "title": "流程监控",
+      "iconPath": "appicon.png",
+      "orderNumber": 12.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "TaskCenter",
+      "path": "process.TaskCenter",
+      "title": "办公中心",
+      "iconPath": "appicon.png",
+      "orderNumber": 13.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Homepage",
+      "path": "Homepage",
+      "title": "首页",
+      "iconPath": "appicon.png",
+      "orderNumber": 14.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "HotArticle",
+      "path": "HotArticle",
+      "title": "热点",
+      "iconPath": "appicon.png",
+      "orderNumber": 15.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "File",
+      "path": "File",
+      "title": "云文件",
+      "iconPath": "appicon.png",
+      "orderNumber": 16.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Note",
+      "path": "Note",
+      "title": "便签",
+      "iconPath": "appicon.png",
+      "orderNumber": 17.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Meeting",
+      "path": "Meeting",
+      "title": "会议管理",
+      "iconPath": "appicon.png",
+      "orderNumber": 18.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "OnlineMeeting",
+      "path": "OnlineMeeting",
+      "title": "网络会议",
+      "iconPath": "appicon.png",
+      "orderNumber": 19.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Attendance",
+      "path": "Attendance",
+      "title": "考勤管理",
+      "iconPath": "appicon.png",
+      "orderNumber": 20.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Forum",
+      "path": "Forum",
+      "title": "论坛",
+      "iconPath": "appicon.png",
+      "orderNumber": 21.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Minder",
+      "path": "Minder",
+      "title": "脑图编辑器",
+      "iconPath": "appicon.png",
+      "orderNumber": 22.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Calendar",
+      "path": "Calendar",
+      "title": "日程安排",
+      "iconPath": "appicon.png",
+      "orderNumber": 23.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "ANN",
+      "path": "ANN",
+      "title": "神经网络",
+      "iconPath": "appicon.png",
+      "orderNumber": 24.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    },
+    {
+      "name": "Search",
+      "path": "Search",
+      "title": "搜索",
+      "iconPath": "appicon.png",
+      "orderNumber": 25.0,
+      "type": "system",
+      "allowList": [],
+      "dentyList": []
+    }
+  ],
+  "###systems": "默认模块###"
+}

+ 21 - 0
o2server/configSample/portal.json

@@ -0,0 +1,21 @@
+{
+  "indexPage": {
+    "enable": false,
+    "portal": "",
+    "page": "",
+    "###enable": "是否启用定制的首页面.###",
+    "###portal": "指定首页面所属的portal,可以用id,name,alias.###",
+    "###page": "指定的首页面,可以使用name,alias,id###"
+  },
+  "loginPage": {
+    "enable": false,
+    "portal": "",
+    "page": "",
+    "###enable": "是否启用定制登录页面.###",
+    "###portal": "指定登录页面所属的portal,可以用id,name,alias.###",
+    "###page": "指定的登录页面,可以使用name,alias,id###"
+  },
+  "###urlMapping": "url转换配置.###",
+  "###indexPage": "定制首页面设置.###",
+  "###loginPage": "定制登录页面设置.###"
+}

+ 8 - 0
o2server/configSample/pushConfig.json

@@ -0,0 +1,8 @@
+{
+  "enable": false,
+  "appKey": "9aca7cc20fe0cc987cd913ca",
+  "masterSecret": "96ee7e2e0daffd51bac57815",
+  "###enable": "是否启用.###",
+  "###appKey": "极光推送应用的AppKey###",
+  "###masterSecret": "极光推送应用的Master Secret###"
+}

+ 9 - 0
o2server/x_base_core_project/src/main/java/com/x/base/core/project/config/ClientInit.java

@@ -44,6 +44,10 @@ public class ClientInit extends ConfigObject {
 
 
 	public static class LoginPage extends ConfigObject {
 	public static class LoginPage extends ConfigObject {
 
 
+		public static LoginPage defaultInstance() {
+			return new LoginPage();
+		}
+
 		@FieldDescribe("是否启用定制的登录页面.")
 		@FieldDescribe("是否启用定制的登录页面.")
 		private Boolean enable;
 		private Boolean enable;
 		@FieldDescribe("登录的门户.")
 		@FieldDescribe("登录的门户.")
@@ -78,6 +82,11 @@ public class ClientInit extends ConfigObject {
 
 
 	public static class CenterAddress extends ConfigObject {
 	public static class CenterAddress extends ConfigObject {
 
 
+
+		public static CenterAddress defaultInstance() {
+			return new CenterAddress();
+		}
+
 		private String port;
 		private String port;
 
 
 		private String host;
 		private String host;