Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
40866b3e
o2oa
项目概览
ghsby
/
o2oa
落后 Fork 源项目 2880 个版本
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
40866b3e
编写于
9月 17, 2020
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
collect信息更新同时更新当前运行环境
上级
7cac4d11
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
23 addition
and
4 deletion
+23
-4
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/ActionRegist.java
...java/com/x/program/center/jaxrs/collect/ActionRegist.java
+1
-1
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/ActionResetPassword.java
...m/x/program/center/jaxrs/collect/ActionResetPassword.java
+4
-1
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/ActionUpdate.java
...java/com/x/program/center/jaxrs/collect/ActionUpdate.java
+1
-1
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/ActionUpdateUnit.java
.../com/x/program/center/jaxrs/collect/ActionUpdateUnit.java
+1
-1
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/BaseAction.java
...n/java/com/x/program/center/jaxrs/collect/BaseAction.java
+16
-0
未找到文件。
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/ActionRegist.java
浏览文件 @
40866b3e
...
@@ -50,7 +50,7 @@ class ActionRegist extends BaseAction {
...
@@ -50,7 +50,7 @@ class ActionRegist extends BaseAction {
Config
.
collect
().
setName
(
name
);
Config
.
collect
().
setName
(
name
);
Config
.
collect
().
setPassword
(
password
);
Config
.
collect
().
setPassword
(
password
);
Config
.
collect
().
save
();
Config
.
collect
().
save
();
Config
.
flush
(
);
this
.
configFlush
(
effectivePerson
);
/* 人员和应用市场同步 */
/* 人员和应用市场同步 */
ThisApplication
.
context
().
scheduleLocal
(
CollectPerson
.
class
);
ThisApplication
.
context
().
scheduleLocal
(
CollectPerson
.
class
);
ThisApplication
.
context
().
scheduleLocal
(
CollectMarket
.
class
);
ThisApplication
.
context
().
scheduleLocal
(
CollectMarket
.
class
);
...
...
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/ActionResetPassword.java
浏览文件 @
40866b3e
package
com.x.program.center.jaxrs.collect
;
package
com.x.program.center.jaxrs.collect
;
import
com.x.program.center.ThisApplication
;
import
com.x.program.center.schedule.CollectMarket
;
import
com.x.program.center.schedule.CollectPerson
;
import
org.apache.commons.lang3.BooleanUtils
;
import
org.apache.commons.lang3.BooleanUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
...
@@ -42,7 +45,7 @@ class ActionResetPassword extends BaseAction {
...
@@ -42,7 +45,7 @@ class ActionResetPassword extends BaseAction {
if
(
BooleanUtils
.
isTrue
(
wo
.
getValue
()))
{
if
(
BooleanUtils
.
isTrue
(
wo
.
getValue
()))
{
Config
.
collect
().
setPassword
(
password
);
Config
.
collect
().
setPassword
(
password
);
Config
.
collect
().
save
();
Config
.
collect
().
save
();
Config
.
flush
(
);
this
.
configFlush
(
effectivePerson
);
}
}
result
.
setData
(
wo
);
result
.
setData
(
wo
);
return
result
;
return
result
;
...
...
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/ActionUpdate.java
浏览文件 @
40866b3e
...
@@ -32,7 +32,7 @@ class ActionUpdate extends BaseAction {
...
@@ -32,7 +32,7 @@ class ActionUpdate extends BaseAction {
Config
.
collect
().
setName
(
wrapIn
.
getName
());
Config
.
collect
().
setName
(
wrapIn
.
getName
());
Config
.
collect
().
setPassword
(
wrapIn
.
getPassword
());
Config
.
collect
().
setPassword
(
wrapIn
.
getPassword
());
Config
.
collect
().
save
();
Config
.
collect
().
save
();
Config
.
flush
(
);
this
.
configFlush
(
effectivePerson
);
Wo
wo
=
new
Wo
();
Wo
wo
=
new
Wo
();
wo
.
setValue
(
true
);
wo
.
setValue
(
true
);
result
.
setData
(
wo
);
result
.
setData
(
wo
);
...
...
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/ActionUpdateUnit.java
浏览文件 @
40866b3e
...
@@ -48,7 +48,7 @@ class ActionUpdateUnit extends BaseAction {
...
@@ -48,7 +48,7 @@ class ActionUpdateUnit extends BaseAction {
Config
.
collect
().
setKey
(
wi
.
getKey
());
Config
.
collect
().
setKey
(
wi
.
getKey
());
Config
.
collect
().
setSecret
(
wi
.
getSecret
());
Config
.
collect
().
setSecret
(
wi
.
getSecret
());
Config
.
collect
().
save
();
Config
.
collect
().
save
();
Config
.
flush
(
);
this
.
configFlush
(
effectivePerson
);
}
}
result
.
setData
(
wo
);
result
.
setData
(
wo
);
return
result
;
return
result
;
...
...
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/collect/BaseAction.java
浏览文件 @
40866b3e
...
@@ -11,12 +11,15 @@ import com.x.base.core.project.bean.WrapCopierFactory;
...
@@ -11,12 +11,15 @@ import com.x.base.core.project.bean.WrapCopierFactory;
import
com.x.base.core.project.config.Collect
;
import
com.x.base.core.project.config.Collect
;
import
com.x.base.core.project.config.Config
;
import
com.x.base.core.project.config.Config
;
import
com.x.base.core.project.connection.ActionResponse
;
import
com.x.base.core.project.connection.ActionResponse
;
import
com.x.base.core.project.connection.CipherConnectionAction
;
import
com.x.base.core.project.connection.ConnectionAction
;
import
com.x.base.core.project.connection.ConnectionAction
;
import
com.x.base.core.project.gson.XGsonBuilder
;
import
com.x.base.core.project.gson.XGsonBuilder
;
import
com.x.base.core.project.http.ActionResult.Type
;
import
com.x.base.core.project.http.ActionResult.Type
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.StandardJaxrsAction
;
import
com.x.base.core.project.jaxrs.StandardJaxrsAction
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.base.core.project.tools.DefaultCharset
;
import
com.x.base.core.project.tools.DefaultCharset
;
import
com.x.program.center.ThisApplication
;
class
BaseAction
extends
StandardJaxrsAction
{
class
BaseAction
extends
StandardJaxrsAction
{
...
@@ -124,6 +127,19 @@ class BaseAction extends StandardJaxrsAction {
...
@@ -124,6 +127,19 @@ class BaseAction extends StandardJaxrsAction {
return
resp
.
getData
(
ReturnWoBoolean
.
class
).
getValue
();
return
resp
.
getData
(
ReturnWoBoolean
.
class
).
getValue
();
}
}
public
void
configFlush
(
EffectivePerson
effectivePerson
)
throws
Exception
{
Config
.
flush
();
ThisApplication
.
context
().
applications
().
values
().
forEach
(
o
->
{
o
.
stream
().
forEach
(
app
->
{
try
{
CipherConnectionAction
.
get
(
effectivePerson
.
getDebugger
(),
app
,
"cache"
,
"config"
,
"flush"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
});
});
}
private
static
class
ReturnWoBoolean
extends
WrapBoolean
{
private
static
class
ReturnWoBoolean
extends
WrapBoolean
{
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录