Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
85a2734c
o2oa
项目概览
weixin_42566577
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
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,发现更多精彩内容 >>
提交
85a2734c
编写于
2月 26, 2019
作者:
R
roo00
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加恢复默认component
上级
eb00bd56
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
119 addition
and
23 deletion
+119
-23
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/Business.java
.../main/java/com/x/component/assemble/control/Business.java
+20
-3
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionCreate.java
...ponent/assemble/control/jaxrs/component/ActionCreate.java
+6
-0
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionDelete.java
...ponent/assemble/control/jaxrs/component/ActionDelete.java
+9
-3
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionDeleteAll.java
...ent/assemble/control/jaxrs/component/ActionDeleteAll.java
+44
-0
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionEdit.java
...omponent/assemble/control/jaxrs/component/ActionEdit.java
+9
-3
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionGet.java
...component/assemble/control/jaxrs/component/ActionGet.java
+3
-3
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionListAll.java
...onent/assemble/control/jaxrs/component/ActionListAll.java
+2
-2
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ComponentAction.java
...ent/assemble/control/jaxrs/component/ComponentAction.java
+26
-9
未找到文件。
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/Business.java
浏览文件 @
85a2734c
...
@@ -2,7 +2,9 @@ package com.x.component.assemble.control;
...
@@ -2,7 +2,9 @@ package com.x.component.assemble.control;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.organization.OrganizationDefinition
;
import
com.x.component.assemble.control.factory.ComponentFactory
;
import
com.x.component.assemble.control.factory.ComponentFactory
;
import
com.x.organization.core.express.Organization
;
public
class
Business
{
public
class
Business
{
...
@@ -25,10 +27,25 @@ public class Business {
...
@@ -25,10 +27,25 @@ public class Business {
return
component
;
return
component
;
}
}
public
boolean
componentEditAvailable
(
EffectivePerson
effectivePerson
)
throws
Exception
{
private
Organization
organization
;
public
Organization
organization
()
throws
Exception
{
if
(
null
==
this
.
organization
)
{
this
.
organization
=
new
Organization
(
ThisApplication
.
context
());
}
return
organization
;
}
public
boolean
editable
(
EffectivePerson
effectivePerson
)
throws
Exception
{
boolean
result
=
false
;
if
(
effectivePerson
.
isManager
())
{
if
(
effectivePerson
.
isManager
())
{
return
true
;
result
=
true
;
}
if
(!
result
)
{
if
(
this
.
organization
().
person
().
hasRole
(
effectivePerson
,
OrganizationDefinition
.
Manager
))
{
result
=
true
;
}
}
}
return
false
;
return
result
;
}
}
}
}
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionCreate.java
浏览文件 @
85a2734c
...
@@ -8,15 +8,21 @@ import com.x.base.core.entity.annotation.CheckPersistType;
...
@@ -8,15 +8,21 @@ import com.x.base.core.entity.annotation.CheckPersistType;
import
com.x.base.core.project.bean.WrapCopier
;
import
com.x.base.core.project.bean.WrapCopier
;
import
com.x.base.core.project.bean.WrapCopierFactory
;
import
com.x.base.core.project.bean.WrapCopierFactory
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.exception.ExceptionAccessDenied
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.component.assemble.control.Business
;
import
com.x.component.core.entity.Component
;
import
com.x.component.core.entity.Component
;
class
ActionCreate
extends
ActionBase
{
class
ActionCreate
extends
ActionBase
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
JsonElement
jsonElement
)
throws
Exception
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
JsonElement
jsonElement
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Business
business
=
new
Business
(
emc
);
if
(!
business
.
editable
(
effectivePerson
))
{
throw
new
ExceptionAccessDenied
(
effectivePerson
);
}
Wi
wi
=
this
.
convertToWrapIn
(
jsonElement
,
Wi
.
class
);
Wi
wi
=
this
.
convertToWrapIn
(
jsonElement
,
Wi
.
class
);
Component
component
=
Wi
.
copier
.
copy
(
wi
);
Component
component
=
Wi
.
copier
.
copy
(
wi
);
emc
.
beginTransaction
(
Component
.
class
);
emc
.
beginTransaction
(
Component
.
class
);
...
...
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionDelete.java
浏览文件 @
85a2734c
...
@@ -4,19 +4,25 @@ import com.x.base.core.container.EntityManagerContainer;
...
@@ -4,19 +4,25 @@ import com.x.base.core.container.EntityManagerContainer;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.entity.annotation.CheckRemoveType
;
import
com.x.base.core.entity.annotation.CheckRemoveType
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.exception.ExceptionAccessDenied
;
import
com.x.base.core.project.exception.ExceptionEntityNotExist
;
import
com.x.base.core.project.exception.ExceptionEntityNotExist
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.component.assemble.control.Business
;
import
com.x.component.core.entity.Component
;
import
com.x.component.core.entity.Component
;
class
ActionDelete
extends
ActionBase
{
class
ActionDelete
extends
ActionBase
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
id
)
throws
Exception
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
flag
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Component
component
=
emc
.
find
(
id
,
Component
.
class
);
Business
business
=
new
Business
(
emc
);
if
(!
business
.
editable
(
effectivePerson
))
{
throw
new
ExceptionAccessDenied
(
effectivePerson
);
}
Component
component
=
emc
.
flag
(
flag
,
Component
.
class
);
if
(
null
==
component
)
{
if
(
null
==
component
)
{
throw
new
ExceptionEntityNotExist
(
id
,
Component
.
class
);
throw
new
ExceptionEntityNotExist
(
flag
,
Component
.
class
);
}
}
emc
.
beginTransaction
(
Component
.
class
);
emc
.
beginTransaction
(
Component
.
class
);
emc
.
remove
(
component
,
CheckRemoveType
.
all
);
emc
.
remove
(
component
,
CheckRemoveType
.
all
);
...
...
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionDeleteAll.java
0 → 100644
浏览文件 @
85a2734c
package
com.x.component.assemble.control.jaxrs.component
;
import
com.x.base.core.container.EntityManagerContainer
;
import
com.x.base.core.container.factory.EntityManagerContainerFactory
;
import
com.x.base.core.entity.annotation.CheckRemoveType
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.exception.ExceptionAccessDenied
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.base.core.project.logger.Logger
;
import
com.x.base.core.project.logger.LoggerFactory
;
import
com.x.component.assemble.control.Business
;
import
com.x.component.core.entity.Component
;
class
ActionDeleteAll
extends
ActionBase
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ActionDeleteAll
.
class
);
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Business
business
=
new
Business
(
emc
);
if
(!
business
.
editable
(
effectivePerson
))
{
throw
new
ExceptionAccessDenied
(
effectivePerson
);
}
emc
.
beginTransaction
(
Component
.
class
);
for
(
Component
o
:
emc
.
listAll
(
Component
.
class
))
{
emc
.
remove
(
o
,
CheckRemoveType
.
all
);
}
emc
.
commit
();
Wo
wo
=
new
Wo
();
wo
.
setValue
(
true
);
result
.
setData
(
wo
);
ApplicationCache
.
notify
(
Component
.
class
);
return
result
;
}
}
public
static
class
Wo
extends
WrapBoolean
{
}
}
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionEdit.java
浏览文件 @
85a2734c
...
@@ -8,21 +8,27 @@ import com.x.base.core.entity.annotation.CheckPersistType;
...
@@ -8,21 +8,27 @@ import com.x.base.core.entity.annotation.CheckPersistType;
import
com.x.base.core.project.bean.WrapCopier
;
import
com.x.base.core.project.bean.WrapCopier
;
import
com.x.base.core.project.bean.WrapCopierFactory
;
import
com.x.base.core.project.bean.WrapCopierFactory
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.exception.ExceptionAccessDenied
;
import
com.x.base.core.project.exception.ExceptionEntityNotExist
;
import
com.x.base.core.project.exception.ExceptionEntityNotExist
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.ActionResult
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.http.EffectivePerson
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.base.core.project.jaxrs.WrapBoolean
;
import
com.x.component.assemble.control.Business
;
import
com.x.component.core.entity.Component
;
import
com.x.component.core.entity.Component
;
class
ActionEdit
extends
ActionBase
{
class
ActionEdit
extends
ActionBase
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
id
,
JsonElement
jsonElement
)
throws
Exception
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
flag
,
JsonElement
jsonElement
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Business
business
=
new
Business
(
emc
);
if
(!
business
.
editable
(
effectivePerson
))
{
throw
new
ExceptionAccessDenied
(
effectivePerson
);
}
Wi
wi
=
this
.
convertToWrapIn
(
jsonElement
,
Wi
.
class
);
Wi
wi
=
this
.
convertToWrapIn
(
jsonElement
,
Wi
.
class
);
Component
component
=
emc
.
f
ind
(
id
,
Component
.
class
);
Component
component
=
emc
.
f
lag
(
flag
,
Component
.
class
);
if
(
null
==
component
)
{
if
(
null
==
component
)
{
throw
new
ExceptionEntityNotExist
(
id
,
Component
.
class
);
throw
new
ExceptionEntityNotExist
(
flag
,
Component
.
class
);
}
}
Wi
.
copier
.
copy
(
wi
,
component
);
Wi
.
copier
.
copy
(
wi
,
component
);
emc
.
beginTransaction
(
Component
.
class
);
emc
.
beginTransaction
(
Component
.
class
);
...
...
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionGet.java
浏览文件 @
85a2734c
...
@@ -12,12 +12,12 @@ import com.x.component.core.entity.Component;
...
@@ -12,12 +12,12 @@ import com.x.component.core.entity.Component;
class
ActionGet
extends
ActionBase
{
class
ActionGet
extends
ActionBase
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
id
)
throws
Exception
{
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
flag
)
throws
Exception
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
try
(
EntityManagerContainer
emc
=
EntityManagerContainerFactory
.
instance
().
create
())
{
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
Wo
>
result
=
new
ActionResult
<>();
Component
component
=
emc
.
f
ind
(
id
,
Component
.
class
);
Component
component
=
emc
.
f
lag
(
flag
,
Component
.
class
);
if
(
null
==
component
)
{
if
(
null
==
component
)
{
throw
new
ExceptionEntityNotExist
(
id
,
Component
.
class
);
throw
new
ExceptionEntityNotExist
(
flag
,
Component
.
class
);
}
}
Wo
wo
=
Wo
.
copier
.
copy
(
component
);
Wo
wo
=
Wo
.
copier
.
copy
(
component
);
result
.
setData
(
wo
);
result
.
setData
(
wo
);
...
...
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ActionListAll.java
浏览文件 @
85a2734c
...
@@ -159,8 +159,8 @@ class ActionListAll extends ActionBase {
...
@@ -159,8 +159,8 @@ class ActionListAll extends ActionBase {
o
.
setVisible
(
true
);
o
.
setVisible
(
true
);
break
;
break
;
case
COMPONENT_ANN:
case
COMPONENT_ANN:
o
.
setName
(
COMPONENT_
ONLINEMEETING
);
o
.
setName
(
COMPONENT_
ANN
);
o
.
setPath
(
COMPONENT_
ONLINEMEETING
);
o
.
setPath
(
COMPONENT_
ANN
);
o
.
setTitle
(
"神经网络"
);
o
.
setTitle
(
"神经网络"
);
o
.
setIconPath
(
"appicon.png"
);
o
.
setIconPath
(
"appicon.png"
);
o
.
setVisible
(
true
);
o
.
setVisible
(
true
);
...
...
o2server/x_component_assemble_control/src/main/java/com/x/component/assemble/control/jaxrs/component/ComponentAction.java
浏览文件 @
85a2734c
...
@@ -52,15 +52,15 @@ public class ComponentAction extends StandardJaxrsAction {
...
@@ -52,15 +52,15 @@ public class ComponentAction extends StandardJaxrsAction {
@JaxrsMethodDescribe
(
value
=
"获取Component对象."
,
action
=
ActionGet
.
class
)
@JaxrsMethodDescribe
(
value
=
"获取Component对象."
,
action
=
ActionGet
.
class
)
@GET
@GET
@Path
(
"{
id
}"
)
@Path
(
"{
flag
}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@PathParam
(
"
id"
)
String
id
)
{
@PathParam
(
"
flag"
)
String
flag
)
{
ActionResult
<
ActionGet
.
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
ActionGet
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
try
{
result
=
new
ActionGet
().
execute
(
effectivePerson
,
id
);
result
=
new
ActionGet
().
execute
(
effectivePerson
,
flag
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
result
.
error
(
e
);
...
@@ -87,15 +87,15 @@ public class ComponentAction extends StandardJaxrsAction {
...
@@ -87,15 +87,15 @@ public class ComponentAction extends StandardJaxrsAction {
@JaxrsMethodDescribe
(
value
=
"更新Component对象."
,
action
=
ActionEdit
.
class
)
@JaxrsMethodDescribe
(
value
=
"更新Component对象."
,
action
=
ActionEdit
.
class
)
@PUT
@PUT
@Path
(
"{
id
}"
)
@Path
(
"{
flag
}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
edit
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
edit
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@PathParam
(
"
id"
)
String
id
,
JsonElement
jsonElement
)
{
@PathParam
(
"
flag"
)
String
flag
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionEdit
.
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
ActionEdit
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
try
{
result
=
new
ActionEdit
().
execute
(
effectivePerson
,
id
,
jsonElement
);
result
=
new
ActionEdit
().
execute
(
effectivePerson
,
flag
,
jsonElement
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
result
.
error
(
e
);
...
@@ -105,15 +105,32 @@ public class ComponentAction extends StandardJaxrsAction {
...
@@ -105,15 +105,32 @@ public class ComponentAction extends StandardJaxrsAction {
@JaxrsMethodDescribe
(
value
=
"删除Component对象."
,
action
=
ActionDelete
.
class
)
@JaxrsMethodDescribe
(
value
=
"删除Component对象."
,
action
=
ActionDelete
.
class
)
@DELETE
@DELETE
@Path
(
"{
id
}"
)
@Path
(
"{
flag
}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@PathParam
(
"
id"
)
String
id
)
{
@PathParam
(
"
flag"
)
String
flag
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
try
{
result
=
new
ActionDelete
().
execute
(
effectivePerson
,
id
);
result
=
new
ActionDelete
().
execute
(
effectivePerson
,
flag
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getDefaultActionResultResponse
(
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除所有Component,还原默认布局."
,
action
=
ActionDeleteAll
.
class
)
@DELETE
@Path
(
"delete/all"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteAll
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
)
{
ActionResult
<
ActionDeleteAll
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionDeleteAll
().
execute
(
effectivePerson
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
result
.
error
(
e
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录