Quellcode durchsuchen

没添加到git中的文件

dongzaixing vor 1 Monat
Ursprung
Commit
00258f0316

+ 0 - 1
.gitignore

@@ -14,7 +14,6 @@
 /o2server/commons/
 /o2server/jvm/
 /o2server/local/
-/o2server/configSample/
 !/o2server/configSample/externalDataSources*.json
 !/o2server/configSample/externalStorageSources.json
 !/o2server/configSample/manifest.cfg

+ 51 - 0
o2server/configSample/externalDataSources.json

@@ -0,0 +1,51 @@
+[
+  {
+    "enable": false,
+    "url": "jdbc:mysql://127.0.0.1:3306/X?autoReconnect\u003dtrue\u0026allowPublicKeyRetrieval\u003dtrue\u0026useSSL\u003dfalse\u0026useUnicode\u003dtrue\u0026characterEncoding\u003dUTF-8\u0026useLegacyDatetimeCode\u003dfalse\u0026serverTimezone\u003dGMT%2B8",
+    "username": "root",
+    "password": "password",
+    "driverClassName": "",
+    "dictionary": "",
+    "maxTotal": 100.0,
+    "maxIdle": 0.0,
+    "statEnable": true,
+    "statFilter": "mergeStat",
+    "includes": [],
+    "excludes": [],
+    "logLevel": "ERROR",
+    "transactionIsolation": "read-committed",
+    "testConnectionOnCheckin": false,
+    "testConnectionOnCheckout": false,
+    "maxIdleTime": 300.0,
+    "autoCommit": false,
+    "schema": "",
+    "logStatEnable": false,
+    "logStatInterval": 180.0,
+    "slowSqlEnable": true,
+    "slowSqlThreshold": 3000.0,
+    "###enable": "是否启用,如果启用多个数据库,那么必须是相同类型的,不能混用,且用户名密码必须一致.###",
+    "###url": "jdbc连接地址.###",
+    "###username": "数据库jdbc连接用户名.###",
+    "###password": "数据库jdbc连接密码.###",
+    "###driverClassName": "数据库驱动类名.###",
+    "###dictionary": "方言类.###",
+    "###maxTotal": "最大使用连接数.###",
+    "###maxIdle": "最大空闲连接数.###",
+    "###statEnable": "启用统计,默认启用.###",
+    "###statFilter": "统计方式配置,默认mergeStat.###",
+    "###includes": "设置此数据库存储的类,默认情况下存储所有类型,如果需要对每个类进行单独的控制以达到高性能,可以将不同的类存储到不同的节点上提高性能.可以使用通配符*.###",
+    "###excludes": "在此节点上不存储的类,和includes一起设置实际存储的类,可以使用通配符*.###",
+    "###logLevel": "默认日志级别,FATAL, ERROR, WARN, INFO, TRACE. 完整的配置为DefaultLevel\u003dWARN, Tool\u003dTRACE, Enhance\u003dTRACE, METADATA\u003dTRACE, Runtime\u003dTRACE, Query\u003dTRACE, DataCache\u003dTRACE, JDBC\u003dTRACE, SQL\u003dTRACE.###",
+    "###transactionIsolation": "事务隔离级别:default,none,read-uncommitted,read-committed,repeatable-read,serializable.默认使用default(数据库设置的事务级别).###",
+    "###testConnectionOnCheckin": "测试入池连接,默认false.###",
+    "###testConnectionOnCheckout": "测试出池连接,默认false.###",
+    "###maxIdleTime": "空闲阈值,默认300秒.###",
+    "###autoCommit": "自动提交,默认为false.###",
+    "###schema": "模式.###",
+    "###logStatEnable": "启用记录统计日志.###",
+    "###logStatInterval": "统计日志输出间隔,单位分钟,默认180.###",
+    "###slowSqlEnable": "是否启用执行慢sql记录.###",
+    "###slowSqlThreshold": "执行慢sql记录阈值,毫秒数,默认3000毫秒.###",
+    "###extension": "扩展设置.###"
+  }
+]

+ 10 - 0
o2server/configSample/externalDataSources_db2.json

@@ -0,0 +1,10 @@
+[
+	{
+		"url" : "jdbc:db2://127.0.0.1:50000/X",
+		"username" : "db2admin",
+		"password" :"password",
+		"includes": [],
+		"excludes": [],
+		"enable" : true
+	}
+]

+ 12 - 0
o2server/configSample/externalDataSources_dm.json

@@ -0,0 +1,12 @@
+[
+	{
+		"url": "jdbc:dm://127.0.0.1:5236",
+		"username": "SYSDBA",
+		"password": "123456789",
+		"includes": [],
+		"excludes": [],
+		"enable": true,
+		"statEnable": false,
+		"schema": "X"
+	}
+]

+ 15 - 0
o2server/configSample/externalDataSources_gbase.json

@@ -0,0 +1,15 @@
+[
+	{
+		"url": "jdbc:gbasedbt-sqli://127.0.0.1:9088/gbasedb:GBASEDBTSERVER=gbaseserver",
+		"username": "gbasedbt",
+		"password": "password",
+		"driverClassName": "",
+		"includes": [],
+		"excludes": [],
+		"maxTotal": 200,
+		"enable": true,
+		"testConnectionOnCheckin": false,
+		"testConnectionOnCheckout": false,
+		"statEnable" :false
+	}
+]

+ 15 - 0
o2server/configSample/externalDataSources_gbasemysql.json

@@ -0,0 +1,15 @@
+[
+	{
+		"url":"jdbc:gbase://127.0.0.1:5258/X?allowPublicKeyRetrieval=true&useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8",      
+		"username" : "sysdba",
+		"password" :"123456",
+		"includes": [],
+		"excludes": [],
+		"maxTotal":200,
+		"enable" : true,
+		"testConnectionOnCheckin":false,
+		"testConnectionOnCheckout":false,
+		"autoCommit" : false,
+		"statEnable" :false
+	}
+]

+ 10 - 0
o2server/configSample/externalDataSources_informix.json

@@ -0,0 +1,10 @@
+[
+	{
+		"url" : "jdbc:sqlserver://127.0.0.1:1433;DatabaseName=X;selectMethod=cursor;sendStringParametersAsUnicode=false",
+		"username" : "sa",
+		"password" :"password",
+		"includes": [],
+		"excludes": [],
+		"enable" : true
+	}
+]

+ 10 - 0
o2server/configSample/externalDataSources_kingbase.json

@@ -0,0 +1,10 @@
+[
+	{
+		"url" : "jdbc:kingbase://127.0.0.1:54321/X",
+		"username" : "system",
+		"password" :"krms",
+		"includes": [],
+		"excludes": [],
+		"enable" : true
+	}
+]

+ 12 - 0
o2server/configSample/externalDataSources_kingbase8.json

@@ -0,0 +1,12 @@
+[
+	{
+		"url": "jdbc:kingbase8://127.0.0.1:54321/X",
+		"username": "system",
+		"password": "krms",
+		"includes": [],
+		"excludes": [],
+		"enable": true,
+		"statEnable": false,
+		"statFilter": false
+	}
+]

+ 10 - 0
o2server/configSample/externalDataSources_mysql.json

@@ -0,0 +1,10 @@
+[
+	{
+		"url":"jdbc:mysql://127.0.0.1:3306/X?autoReconnect=true&allowPublicKeyRetrieval=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8",      
+		"username" : "root",
+		"password" :"password",
+		"includes": [],
+		"excludes": [],
+		"enable" : true
+	}
+]

+ 11 - 0
o2server/configSample/externalDataSources_oracle.json

@@ -0,0 +1,11 @@
+[
+	{
+		"url":"jdbc:oracle:thin:@//127.0.0.1:1521/orcl",
+		"username" : "X",
+		"password" :"password",
+		"schema" : "X",
+		"includes": [],
+		"excludes": [],
+		"enable" : true
+	}
+]

+ 12 - 0
o2server/configSample/externalDataSources_postgresql.json

@@ -0,0 +1,12 @@
+[
+	{
+		"url" : "jdbc:postgresql://localhost:5432/x",
+		"username" : "postgres",
+		"password" :"password",
+		"schema" : "public",
+		"includes": [],
+		"excludes": [],
+		"enable" : true,
+		"statEnable" : false
+	}
+]

+ 10 - 0
o2server/configSample/externalDataSources_sqlserver.json

@@ -0,0 +1,10 @@
+[
+	{
+		"url" : "jdbc:sqlserver://127.0.0.1:1433;DatabaseName=X;selectMethod=cursor;sendStringParametersAsUnicode=false",
+		"username" : "sa",
+		"password" :"password",
+		"includes": [],
+		"excludes": [],
+		"enable" : true
+	}
+]

+ 194 - 0
o2server/configSample/externalStorageSources.json

@@ -0,0 +1,194 @@
+{
+  "file": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "processPlatform": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "mind": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "meeting": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "calendar": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "cms": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "bbs": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "teamwork": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "structure": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "im": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "general": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "custom": [
+    {
+      "protocol": "webdav",
+      "username": "admin",
+      "password": "admin",
+      "host": "127.0.0.1",
+      "port": 8080.0,
+      "prefix": "",
+      "enable": true,
+      "weight": 100.0,
+      "name": "251",
+      "deepPath": false,
+      "store": ""
+    }
+  ],
+  "store": {
+    "demo": {
+      "protocol": "hdfs",
+      "username": "",
+      "password": "",
+      "host": "127.0.0.1",
+      "port": 9000.0,
+      "name": ""
+    }
+  },
+  "enable": false,
+  "###extension": "扩展设置.###"
+}

+ 34 - 0
o2server/configSample/manifest.json

@@ -0,0 +1,34 @@
+{
+ "manifest.json":"配置文件配置",
+ "andFx.json":"中国移动办公配置",
+ "appStyle.json":"移动端应用样式配置",
+ "collect.json":"连接到云平台配置",
+ "components.json":"组件配置",
+ "dingding.json":"钉钉配置",
+ "dumpRestoreData.json":"导出导入数据配置",
+ "exmail.json":"腾讯企业邮邮件配置",
+ "externalDataSources.json":"数据库配置",
+ "externalDataSources_db2.json":"db2数据库配置",
+ "externalDataSources_dm.json":"达梦数据库配置",
+ "externalDataSources_informix.json":"informix数据库配置",
+ "externalDataSources_kingbase.json":"金仓数据库配置",
+ "externalDataSources_mysql.json":"mysql数据库配置",
+ "externalDataSources_oracle.json":"oracle数据库配置",
+ "externalDataSources_postgresql.json":"postgresql数据库配置",
+ "externalDataSources_sqlserver.json":"sqlserver数据库配置",
+ "externalStorageSources.json":"文件存储配置",
+ "general.json":"平台系统配置",
+ "jpushConfig.json":"极光推送配置",
+ "mPweixin.json": "微信公众号配置",
+ "meeting.json":"openMeeting配置",
+ "messages.json":"消息发送配置",
+ "person.json":"个人信息配置",
+ "portal.json":"门户配置",
+ "processPlatform.json":"流程平台配置",
+ "qiyeweixin.json":"企业微信配置",
+ "query.json":"搜索配置",
+ "web.json":"web端参数配置",
+ "weLink.json":"华为WeLink配置",
+ "workTime.json":"工作时间配置",
+ "zhengwuDingding.json":"政务钉钉配置"
+}

+ 24 - 0
o2server/configSample/messageSendRule.js

@@ -0,0 +1,24 @@
+/**
+ * 统一消息推送执行脚本,使用在messages.json配置文件
+ * 方法返回boolean类型,true表示满足发送条件且接受对body消息内容的修改,false表示不发送
+ * 变量message表示消息体,原始消息的格式{type:'',person,:'',title,'',body:null},是一个obj对象
+ * 变量body表示消息内容,每个消息类型的消息体可能不同,是一个Gson的JsonObject对象
+ * 以下excute方法表示拟稿状态的待办不发送消息;excute1方法表示变更或者添加body对象中的modifyFlag参数;excute2方法示例获取message对象的属性值
+ */
+function excute() {
+    if(body.has("first") && body.has("workCreateType")){
+        if (body.get("first").getAsBoolean() && "surface".equals(body.get("workCreateType").getAsString())){
+            return false;
+        }
+    }
+    return true;
+}
+function excute1() {
+    body.addProperty("modifyFlag","1");
+    return true;
+}
+function excute2() {
+    print(message.getType());
+    print(message.getTitle());
+    return true;
+}

+ 3 - 0
o2server/configSample/web.json

@@ -0,0 +1,3 @@
+{
+  "###web": "web端使用到的全局参数配置,没有特定业务含义,满足json格式即可.###"
+}

BIN
o2web/source/x_desktop/img/loading_home3.gif