Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ghsby
o2oa
提交
4f617a13
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,发现更多精彩内容 >>
提交
4f617a13
编写于
9月 17, 2020
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
统一缓存清除
上级
52726647
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
1 deletion
+25
-1
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/jest/ActionClearCache.java
...ava/com/x/program/center/jaxrs/jest/ActionClearCache.java
+24
-0
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/jest/JestAction.java
...main/java/com/x/program/center/jaxrs/jest/JestAction.java
+1
-1
未找到文件。
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/jest/ActionClearCache.java
浏览文件 @
4f617a13
...
...
@@ -9,6 +9,8 @@ import com.x.cms.core.entity.element.AppDict;
import
com.x.cms.core.entity.element.AppDictItem
;
import
com.x.cms.core.entity.element.Form
;
import
com.x.cms.core.entity.element.Script
;
import
com.x.organization.core.entity.*
;
import
com.x.organization.core.entity.accredit.Empower
;
import
com.x.portal.core.entity.Page
;
import
com.x.portal.core.entity.Portal
;
import
com.x.portal.core.entity.Widget
;
...
...
@@ -63,6 +65,16 @@ class ActionClearCache extends BaseAction {
CacheManager
.
notify
(
Agent
.
class
);
//invoke
CacheManager
.
notify
(
Invoke
.
class
);
//org
CacheManager
.
notify
(
Identity
.
class
);
CacheManager
.
notify
(
Unit
.
class
);
CacheManager
.
notify
(
UnitAttribute
.
class
);
CacheManager
.
notify
(
UnitDuty
.
class
);
CacheManager
.
notify
(
Role
.
class
);
CacheManager
.
notify
(
Person
.
class
);
CacheManager
.
notify
(
PersonAttribute
.
class
);
CacheManager
.
notify
(
Group
.
class
);
CacheManager
.
notify
(
Empower
.
class
);
wo
.
setValue
(
true
);
}
else
if
(
"cms"
.
equalsIgnoreCase
(
source
)){
CacheManager
.
notify
(
CategoryInfo
.
class
);
...
...
@@ -105,6 +117,18 @@ class ActionClearCache extends BaseAction {
}
else
if
(
"invoke"
.
equalsIgnoreCase
(
source
)){
CacheManager
.
notify
(
Invoke
.
class
);
wo
.
setValue
(
true
);
}
else
if
(
"org"
.
equalsIgnoreCase
(
source
)){
CacheManager
.
notify
(
Identity
.
class
);
CacheManager
.
notify
(
Unit
.
class
);
CacheManager
.
notify
(
UnitAttribute
.
class
);
CacheManager
.
notify
(
UnitDuty
.
class
);
CacheManager
.
notify
(
Role
.
class
);
CacheManager
.
notify
(
Person
.
class
);
CacheManager
.
notify
(
PersonAttribute
.
class
);
CacheManager
.
notify
(
Group
.
class
);
CacheManager
.
notify
(
Empower
.
class
);
wo
.
setValue
(
true
);
}
result
.
setData
(
wo
);
...
...
o2server/x_program_center/src/main/java/com/x/program/center/jaxrs/jest/JestAction.java
浏览文件 @
4f617a13
...
...
@@ -53,7 +53,7 @@ public class JestAction extends StandardJaxrsAction {
@Consumes
(
MediaType
.
APPLICATION_JSON
)
@JaxrsMethodDescribe
(
value
=
"清除服务器缓存"
,
action
=
ActionClearCache
.
class
)
public
void
clearCache
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"*标识:all(所有)|cms|portal|process|query|agent|invoke"
)
@PathParam
(
"source"
)
String
source
)
{
@JaxrsParameterDescribe
(
"*标识:all(所有)|
org|
cms|portal|process|query|agent|invoke"
)
@PathParam
(
"source"
)
String
source
)
{
ActionResult
<
ActionClearCache
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录