Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
b8ee8e2f
o2oa
项目概览
fuyue82
/
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,发现更多精彩内容 >>
提交
b8ee8e2f
编写于
2月 03, 2021
作者:
O
o2sword
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
内容管理模块mockPut、mockDelete
上级
b057c09f
变更
25
展开全部
隐藏空白更改
内联
并排
Showing
25 changed file
with
2648 addition
and
333 deletion
+2648
-333
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/appdict/AppDictAction.java
...m/x/cms/assemble/control/jaxrs/appdict/AppDictAction.java
+366
-1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/appdictdesign/AppDictDesignAction.java
...mble/control/jaxrs/appdictdesign/AppDictDesignAction.java
+37
-1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/appinfo/AppInfoAction.java
...m/x/cms/assemble/control/jaxrs/appinfo/AppInfoAction.java
+108
-24
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/appinfo/AppInfoAnonymousAction.java
...ssemble/control/jaxrs/appinfo/AppInfoAnonymousAction.java
+26
-4
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/categoryinfo/CategoryInfoAction.java
...semble/control/jaxrs/categoryinfo/CategoryInfoAction.java
+168
-37
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/categoryinfo/CategoryInfoAnonymousAction.java
...ntrol/jaxrs/categoryinfo/CategoryInfoAnonymousAction.java
+44
-21
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/comment/DocumentCommentInfoAction.java
...mble/control/jaxrs/comment/DocumentCommentInfoAction.java
+99
-20
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/data/DataAction.java
...ava/com/x/cms/assemble/control/jaxrs/data/DataAction.java
+405
-1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentAction.java
...x/cms/assemble/control/jaxrs/document/DocumentAction.java
+279
-1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentAction2.java
.../cms/assemble/control/jaxrs/document/DocumentAction2.java
+333
-63
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentAnonymousAction.java
...emble/control/jaxrs/document/DocumentAnonymousAction.java
+60
-16
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentCipherAction.java
...assemble/control/jaxrs/document/DocumentCipherAction.java
+46
-0
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentViewRecordAction.java
...mble/control/jaxrs/document/DocumentViewRecordAction.java
+31
-16
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/file/FileAction.java
...ava/com/x/cms/assemble/control/jaxrs/file/FileAction.java
+38
-2
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/fileinfo/FileInfoAction.java
...x/cms/assemble/control/jaxrs/fileinfo/FileInfoAction.java
+74
-36
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/form/FormAction.java
...ava/com/x/cms/assemble/control/jaxrs/form/FormAction.java
+89
-0
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/input/InputAction.java
...a/com/x/cms/assemble/control/jaxrs/input/InputAction.java
+92
-25
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/output/OutputAction.java
...com/x/cms/assemble/control/jaxrs/output/OutputAction.java
+20
-1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/queryview/QueryViewAction.java
...cms/assemble/control/jaxrs/queryview/QueryViewAction.java
+32
-8
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/queryviewdesign/QueryViewDesignAction.java
.../control/jaxrs/queryviewdesign/QueryViewDesignAction.java
+85
-13
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/script/ScriptAction.java
...com/x/cms/assemble/control/jaxrs/script/ScriptAction.java
+36
-0
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/templateform/TemplateFormAction.java
...semble/control/jaxrs/templateform/TemplateFormAction.java
+36
-1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/view/ViewAction.java
...ava/com/x/cms/assemble/control/jaxrs/view/ViewAction.java
+65
-24
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/viewcategory/ViewCategoryAction.java
...semble/control/jaxrs/viewcategory/ViewCategoryAction.java
+20
-1
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/viewfieldconfig/ViewFieldConfigAction.java
.../control/jaxrs/viewfieldconfig/ViewFieldConfigAction.java
+59
-17
未找到文件。
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/appdict/AppDictAction.java
浏览文件 @
b8ee8e2f
此差异已折叠。
点击以展开。
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/appdictdesign/AppDictDesignAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -102,6 +102,24 @@ public class AppDictDesignAction extends BaseAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新数据字典以及数据."
,
action
=
ActionEdit
.
class
)
@POST
@Path
(
"{id}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
putMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"标识"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionEdit
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionEdit
().
execute
(
effectivePerson
,
id
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除指定的数据字典以及数据字典数据."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{id}"
)
...
...
@@ -120,6 +138,24 @@ public class AppDictDesignAction extends BaseAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除指定的数据字典以及数据字典数据."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"标识"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionDelete
().
execute
(
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"分页列示数据字典对象."
,
action
=
ActionListPaging
.
class
)
@POST
@Path
(
"list/paging/{page}/size/{size}"
)
...
...
@@ -139,4 +175,4 @@ public class AppDictDesignAction extends BaseAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/appinfo/AppInfoAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -54,7 +54,7 @@ public class AppInfoAction extends StandardJaxrsAction {
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -69,6 +69,26 @@ public class AppInfoAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除指定的栏目信息(如果栏目下仍存在分类信息,则不可删除)。"
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionDelete
().
execute
(
request
,
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionAppInfoProcess
(
e
,
"根据ID删除CMS应用信息对象发生未知异常,ID:"
+
id
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取栏目访问控制信息."
,
action
=
ActionQueryGetControl
.
class
)
@GET
@Path
(
"{id}/control"
)
...
...
@@ -90,13 +110,13 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据栏目ID删除指定栏目内所有的信息文档。"
,
action
=
ActionEraseDocumentWithAppInfo
.
class
)
@DELETE
@Path
(
"erase/app/{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
eraseWithAppId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
eraseWithAppId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionEraseDocumentWithAppInfo
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -111,12 +131,32 @@ public class AppInfoAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据栏目ID删除指定栏目内所有的信息文档。"
,
action
=
ActionEraseDocumentWithAppInfo
.
class
)
@GET
@Path
(
"erase/app/{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
eraseWithAppIdMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionEraseDocumentWithAppInfo
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionEraseDocumentWithAppInfo
().
execute
(
request
,
id
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionAppInfoProcess
(
e
,
"根据栏目ID删除所有的信息文档发生未知异常,ID:"
+
id
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据标识获取信息栏目信息对象."
,
action
=
ActionGet
.
class
)
@GET
@Path
(
"{flag}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"flag"
)
String
flag
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
BaseAction
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -170,7 +210,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限查看的所有信息栏目信息列表."
,
action
=
ActionListWhatICanViewArticle
.
class
)
@GET
@Path
(
"list/user/view"
)
...
...
@@ -190,7 +230,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限查看的所有信息栏目信息列表."
,
action
=
ActionListWhatICanViewData
.
class
)
@GET
@Path
(
"list/user/view/data"
)
...
...
@@ -210,7 +250,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限查看的所有信息栏目信息列表."
,
action
=
ActionListWhatICanViewData_WithAppType
.
class
)
@GET
@Path
(
"list/user/view/data/type/{appType}"
)
...
...
@@ -231,7 +271,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限查看的所有栏目信息列表."
,
action
=
ActionListWhatICanViewAllDocType_WithAppType
.
class
)
@GET
@Path
(
"list/user/view/all/type/{appType}"
)
...
...
@@ -252,7 +292,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限查看的所有栏目信息列表."
,
action
=
ActionListWhatICanViewAllDocType
.
class
)
@GET
@Path
(
"list/user/view/all"
)
...
...
@@ -292,7 +332,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限发布的所有信息栏目信息列表."
,
action
=
ActionListWhatICanPublish_WithAppType
.
class
)
@GET
@Path
(
"list/user/publish/type/{appType}"
)
...
...
@@ -313,7 +353,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限发布的所有信息栏目信息列表."
,
action
=
ActionGetPublishableAppInfo
.
class
)
@GET
@Path
(
"get/user/publish/{appId}"
)
...
...
@@ -354,7 +394,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取所有可管理的栏目分类信息列表."
,
action
=
ActionListAllManageableAppType
.
class
)
@GET
@Path
(
"list/appType/manager"
)
...
...
@@ -374,7 +414,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限管理的所有信息栏目信息列表."
,
action
=
ActionListWhatICanManage
.
class
)
@GET
@Path
(
"list/manage"
)
...
...
@@ -394,7 +434,7 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据栏目类别名称获取用户有权限管理的所有信息栏目信息列表."
,
action
=
ActionListWhatICanManage_WithAppType
.
class
)
@GET
@Path
(
"list/manage/type/{appType}"
)
...
...
@@ -440,9 +480,9 @@ public class AppInfoAction extends StandardJaxrsAction {
@Path
(
"filter/list/{id}/next/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
...
...
@@ -457,14 +497,36 @@ public class AppInfoAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示根据过滤条件的信息栏目信息,下一页."
,
action
=
ActionListNextWithFilter
.
class
)
@POST
@Path
(
"filter/list/{id}/next/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionListNextWithFilter
().
execute
(
request
,
effectivePerson
,
id
,
count
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionAppInfoProcess
(
e
,
"查询栏目信息对象时发生异常"
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示根据过滤条件的信息栏目信息,上一页."
,
action
=
ActionListPrevWithFilter
.
class
)
@PUT
@Path
(
"filter/list/{id}/prev/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listPrevWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
public
void
listPrevWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListPrevWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
...
...
@@ -478,14 +540,36 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示根据过滤条件的信息栏目信息,上一页."
,
action
=
ActionListPrevWithFilter
.
class
)
@POST
@Path
(
"filter/list/{id}/prev/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listPrevWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListPrevWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionListPrevWithFilter
().
execute
(
request
,
effectivePerson
,
id
,
count
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionAppInfoProcess
(
e
,
"查询栏目信息对象时发生异常"
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"上传或者替换栏目的图标内容,可以指定压缩大小 ."
,
action
=
ActionAppIconUpload
.
class
)
@POST
@Path
(
"{appId}/icon/size/{size}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
MULTIPART_FORM_DATA
)
public
void
changeIcon
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
changeIcon
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
@JaxrsParameterDescribe
(
"最大宽度"
)
@PathParam
(
"size"
)
Integer
size
,
@FormDataParam
(
FILE_FIELD
)
final
byte
[]
bytes
,
...
...
@@ -500,4 +584,4 @@ public class AppInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/appinfo/AppInfoAnonymousAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -50,9 +50,9 @@ public class AppInfoAnonymousAction extends StandardJaxrsAction {
@Path
(
"filter/list/{id}/next/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListNextWithFilterAnonymous
.
Wo
>>
result
=
new
ActionResult
<>();
...
...
@@ -66,4 +66,26 @@ public class AppInfoAnonymousAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
@JaxrsMethodDescribe
(
value
=
"列示根据过滤条件的信息栏目信息,下一页."
,
action
=
ActionListNextWithFilterAnonymous
.
class
)
@POST
@Path
(
"filter/list/{id}/next/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListNextWithFilterAnonymous
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionListNextWithFilterAnonymous
().
execute
(
request
,
effectivePerson
,
id
,
count
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionAppInfoProcess
(
e
,
"查询栏目信息对象时发生异常"
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/categoryinfo/CategoryInfoAction.java
浏览文件 @
b8ee8e2f
此差异已折叠。
点击以展开。
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/categoryinfo/CategoryInfoAnonymousAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -26,13 +26,13 @@ import java.util.List;
public
class
CategoryInfoAnonymousAction
extends
StandardJaxrsAction
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
CategoryInfoAnonymousAction
.
class
);
@JaxrsMethodDescribe
(
value
=
"根据Flag获取分类信息对象."
,
action
=
ActionGetAnonymous
.
class
)
@GET
@Path
(
"{flag}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目标识"
)
@PathParam
(
"flag"
)
String
flag
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionGetAnonymous
.
Wo
>
result
=
null
;
...
...
@@ -46,16 +46,16 @@ public class CategoryInfoAnonymousAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示根据过滤条件的信息分类,下一页."
,
action
=
ActionListNextWithFilterAnonymous
.
class
)
@PUT
@Path
(
"filter/list/{id}/next/{count}/app/{appId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListNextWithFilterAnonymous
.
Wo
>>
result
=
null
;
...
...
@@ -69,14 +69,37 @@ public class CategoryInfoAnonymousAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示根据过滤条件的信息分类,下一页."
,
action
=
ActionListNextWithFilterAnonymous
.
class
)
@POST
@Path
(
"filter/list/{id}/next/{count}/app/{appId}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListNextWithFilterAnonymous
.
Wo
>>
result
=
null
;
try
{
result
=
new
ActionListNextWithFilterAnonymous
().
execute
(
request
,
effectivePerson
,
id
,
count
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionCategoryInfoProcess
(
e
,
"列示根据过滤条件的信息分类时发生异常。"
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有查看访问文章信息的所有分类列表."
,
action
=
ActionListWhatICanView_Article
.
class
)
@GET
@Path
(
"list/view/app/{appId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listViewableCategoryInfo_Article
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
public
void
listViewableCategoryInfo_Article
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListWhatICanView_Article
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -89,14 +112,14 @@ public class CategoryInfoAnonymousAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有查看访问数据信息的所有分类列表."
,
action
=
ActionListWhatICanView_Data
.
class
)
@GET
@Path
(
"list/view/app/{appId}/data"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listViewableCategoryInfo_Data
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
public
void
listViewableCategoryInfo_Data
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListWhatICanView_Data
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -109,14 +132,14 @@ public class CategoryInfoAnonymousAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有查看访问信息的所有分类列表."
,
action
=
ActionListWhatICanView_AllType
.
class
)
@GET
@Path
(
"list/view/app/{appId}/all"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listViewableCategoryInfo_AllType
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
public
void
listViewableCategoryInfo_AllType
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListWhatICanView_AllType
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -129,14 +152,14 @@ public class CategoryInfoAnonymousAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取用户有权限发布信息的所有分类列表."
,
action
=
ActionListWhatICanPublish
.
class
)
@GET
@Path
(
"list/publish/app/{appId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listPublishableCategoryInfo
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
public
void
listPublishableCategoryInfo
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListWhatICanPublish
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -148,5 +171,5 @@ public class CategoryInfoAnonymousAction extends StandardJaxrsAction{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/comment/DocumentCommentInfoAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -44,15 +44,15 @@ public class DocumentCommentInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示评论信息,按页码分页."
,
action
=
ActionListPageWithFilter
.
class
)
@PUT
@Path
(
"list/{page}/size/{size}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listPageWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"page"
)
Integer
page
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"size"
)
Integer
size
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"page"
)
Integer
page
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"size"
)
Integer
size
,
@JaxrsParameterDescribe
(
"查询过滤条件"
)
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionListPageWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
...
...
@@ -64,15 +64,35 @@ public class DocumentCommentInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示评论信息,按页码分页."
,
action
=
ActionListPageWithFilter
.
class
)
@POST
@Path
(
"list/{page}/size/{size}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listPageWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"page"
)
Integer
page
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"size"
)
Integer
size
,
@JaxrsParameterDescribe
(
"查询过滤条件"
)
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionListPageWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionListPageWithFilter
().
execute
(
request
,
effectivePerson
,
page
,
size
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示评论信息,上一页."
,
action
=
ActionListPrevWithFilter
.
class
)
@PUT
@Path
(
"list/{id}/prev/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listPrevWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"查询过滤条件"
)
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionListPrevWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
...
...
@@ -84,15 +104,35 @@ public class DocumentCommentInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示评论信息,上一页."
,
action
=
ActionListPrevWithFilter
.
class
)
@POST
@Path
(
"list/{id}/prev/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listPrevWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"查询过滤条件"
)
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionListPrevWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionListPrevWithFilter
().
execute
(
request
,
effectivePerson
,
id
,
count
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示评论信息,下一页."
,
action
=
ActionListNextWithFilter
.
class
)
@PUT
@Path
(
"list/{id}/next/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"查询过滤条件"
)
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionListNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
...
...
@@ -104,13 +144,33 @@ public class DocumentCommentInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示评论信息,下一页."
,
action
=
ActionListNextWithFilter
.
class
)
@POST
@Path
(
"list/{id}/next/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息数据的ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"查询过滤条件"
)
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionListNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionListNextWithFilter
().
execute
(
request
,
effectivePerson
,
id
,
count
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"创建或者更新一个评论信息."
,
action
=
ActionSave
.
class
)
@POST
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
save
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
save
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"需要保存的评论信息"
)
JsonElement
jsonElement
)
{
ActionResult
<
ActionSave
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
...
...
@@ -122,14 +182,14 @@ public class DocumentCommentInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据标识删除评论信息."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"标识"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
...
...
@@ -141,13 +201,32 @@ public class DocumentCommentInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据标识删除评论信息."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"标识"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionDelete
().
execute
(
request
,
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"文档评论点赞."
,
action
=
ActionPersistCommend
.
class
)
@GET
@Path
(
"{id}/commend"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_commend
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
persist_commend
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"评论ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistCommend
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -163,13 +242,13 @@ public class DocumentCommentInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"取消文档评论点赞."
,
action
=
ActionPersistUnCommend
.
class
)
@GET
@Path
(
"{id}/uncommend"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_unCommend
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
persist_unCommend
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"评论ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistUnCommend
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -185,4 +264,4 @@ public class DocumentCommentInfoAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/data/DataAction.java
浏览文件 @
b8ee8e2f
此差异已折叠。
点击以展开。
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -53,6 +53,30 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"变更指定文档的分类信息."
,
action
=
ActionPersistChangeCategory
.
class
)
@POST
@Path
(
"category/change/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_changeCategoryMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistChangeCategory
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
try
{
result
=
new
ActionPersistChangeCategory
().
execute
(
request
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"指修改指定文档的数据。"
,
action
=
ActionPersistBatchModifyData
.
class
)
@PUT
@Path
(
"batch/data/modify"
)
...
...
@@ -75,6 +99,28 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"指修改指定文档的数据。"
,
action
=
ActionPersistBatchModifyData
.
class
)
@POST
@Path
(
"batch/data/modify/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_batchDataModifyMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistBatchModifyData
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
try
{
result
=
new
ActionPersistBatchModifyData
().
execute
(
request
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据导入批次号查询导入状态信息."
,
action
=
ActionQueryImportStatusWithName
.
class
)
@GET
@Path
(
"batch/{batchName}/status"
)
...
...
@@ -213,6 +259,29 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"查询符合过滤条件的已发布的信息数量."
,
action
=
ActionQueryCountWithFilter
.
class
)
@POST
@Path
(
"filter/count/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
query_countDocumentWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionQueryCountWithFilter
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
try
{
result
=
new
ActionQueryCountWithFilter
().
execute
(
request
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除信息发布文档信息."
,
action
=
ActionPersistDeleteDocument
.
class
)
@DELETE
@Path
(
"{id}"
)
...
...
@@ -232,6 +301,25 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除信息发布文档信息."
,
action
=
ActionPersistDeleteDocument
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistDeleteDocument
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionPersistDeleteDocument
().
execute
(
request
,
id
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据批次号删除信息发布文档信息."
,
action
=
ActionPersistDeleteWithBatch
.
class
)
@DELETE
@Path
(
"batch/{batchId}"
)
...
...
@@ -252,6 +340,26 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据批次号删除信息发布文档信息."
,
action
=
ActionPersistDeleteWithBatch
.
class
)
@GET
@Path
(
"batch/{batchId}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_deleteWithBatchNameMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"batchId"
)
String
batchId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistDeleteWithBatch
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionPersistDeleteWithBatch
().
execute
(
request
,
batchId
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID归档信息发布文档信息."
,
action
=
ActionPersistArchive
.
class
)
@GET
@Path
(
"achive/{id}"
)
...
...
@@ -296,6 +404,31 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据文档ID正式发布文档,并且使用Message通知所有的阅读者。"
,
action
=
ActionPersistPublishAndNotify
.
class
)
@POST
@Path
(
"publish/{id}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_publishAndNotifyMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistPublishAndNotify
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
try
{
result
=
new
ActionPersistPublishAndNotify
().
execute
(
request
,
id
,
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"直接发布信息内容,创建新的信息发布文档并且直接发布."
,
action
=
ActionPersistPublishContent
.
class
)
@PUT
@Path
(
"publish/content"
)
...
...
@@ -321,6 +454,31 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"直接发布信息内容,创建新的信息发布文档并且直接发布."
,
action
=
ActionPersistPublishContent
.
class
)
@POST
@Path
(
"publish/content/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_publishContentMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistPublishContent
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
System
.
out
.
println
(
"please wait, system try to publish content......"
);
try
{
result
=
new
ActionPersistPublishContent
().
execute
(
request
,
jsonElement
,
effectivePerson
);
System
.
out
.
println
(
"system publish content successful!"
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID取消信息内容发布状态,修改为草稿."
,
action
=
ActionPersistPublishCancel
.
class
)
@PUT
@Path
(
"publish/{id}/cancel"
)
...
...
@@ -340,6 +498,25 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID取消信息内容发布状态,修改为草稿."
,
action
=
ActionPersistPublishCancel
.
class
)
@POST
@Path
(
"publish/{id}/cancel/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
persist_publishCancelMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistPublishCancel
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionPersistPublishCancel
().
execute
(
request
,
id
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合过滤条件的已发布的信息内容, 下一页."
,
action
=
ActionQueryListNextWithFilter
.
class
)
@PUT
@Path
(
"filter/list/{id}/next/{count}"
)
...
...
@@ -365,6 +542,31 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合过滤条件的已发布的信息内容, 下一页."
,
action
=
ActionQueryListNextWithFilter
.
class
)
@POST
@Path
(
"filter/list/{id}/next/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
query_listNextWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
try
{
result
=
new
ActionQueryListNextWithFilter
().
execute
(
request
,
id
,
count
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合过滤条件的已发布的信息内容, 上一页."
,
action
=
ActionQueryListPrevWithFilter
.
class
)
@PUT
@Path
(
"filter/list/{id}/prev/{count}"
)
...
...
@@ -390,6 +592,31 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合过滤条件的已发布的信息内容, 上一页."
,
action
=
ActionQueryListPrevWithFilter
.
class
)
@POST
@Path
(
"filter/list/{id}/prev/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
query_listPrevWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListPrevWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
try
{
result
=
new
ActionQueryListPrevWithFilter
().
execute
(
request
,
id
,
count
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合过滤条件的草稿信息内容, 下一页."
,
action
=
ActionQueryListDraftNextWithFilter
.
class
)
@PUT
@Path
(
"draft/list/{id}/next/{count}"
)
...
...
@@ -416,6 +643,32 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合过滤条件的草稿信息内容, 下一页."
,
action
=
ActionQueryListDraftNextWithFilter
.
class
)
@POST
@Path
(
"draft/list/{id}/next/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
query_listDraftNextWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListDraftNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
try
{
result
=
new
ActionQueryListDraftNextWithFilter
().
execute
(
request
,
id
,
count
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据信息发布文档ID查询文档第一张图片信息列表."
,
action
=
ActionQueryGetFirstPicture
.
class
)
@GET
@Path
(
"pictures/{id}/first"
)
...
...
@@ -619,6 +872,31 @@ public class DocumentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"分页查询符合过滤条件的已发布的信息内容."
,
action
=
ActionQueryListWithFilterPaging
.
class
)
@POST
@Path
(
"filter/list/{page}/size/{size}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
query_listWithFilterPagingMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"分页"
)
@PathParam
(
"page"
)
Integer
page
,
@JaxrsParameterDescribe
(
"数量"
)
@PathParam
(
"size"
)
Integer
size
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListWithFilterPaging
.
Wo
>>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
)
{
try
{
result
=
new
ActionQueryListWithFilterPaging
().
execute
(
request
,
page
,
size
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取文件访问控制信息."
,
action
=
ActionQueryGetControl
.
class
)
@GET
@Path
(
"{id}/control"
)
...
...
@@ -728,4 +1006,4 @@ public class DocumentAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentAction2.java
浏览文件 @
b8ee8e2f
此差异已折叠。
点击以展开。
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentAnonymousAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -3,12 +3,7 @@ package com.x.cms.assemble.control.jaxrs.document;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.GET
;
import
javax.ws.rs.PUT
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.PathParam
;
import
javax.ws.rs.Produces
;
import
javax.ws.rs.*
;
import
javax.ws.rs.container.AsyncResponse
;
import
javax.ws.rs.container.Suspended
;
import
javax.ws.rs.core.Context
;
...
...
@@ -29,15 +24,15 @@ import com.x.base.core.project.logger.LoggerFactory;
@Path
(
"anonymous/document"
)
@JaxrsDescribe
(
"信息发布信息文档管理"
)
public
class
DocumentAnonymousAction
extends
StandardJaxrsAction
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
DocumentAnonymousAction
.
class
);
@JaxrsMethodDescribe
(
value
=
"根据ID访问信息发布文档信息对象详细信息,包括附件列表,数据信息."
,
action
=
ActionQueryViewDocument
.
class
)
@GET
@Path
(
"{id}/view"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
view
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
view
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionQueryViewDocument
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -50,15 +45,15 @@ public class DocumentAnonymousAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合过滤条件的已发布的信息内容, 下一页."
,
action
=
ActionQueryListNextWithFilter
.
class
)
@PUT
@Path
(
"filter/list/{id}/next/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
public
void
listNextWithFilter
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
...
...
@@ -76,12 +71,37 @@ public class DocumentAnonymousAction extends StandardJaxrsAction{
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合过滤条件的已发布的信息内容, 下一页."
,
action
=
ActionQueryListNextWithFilter
.
class
)
@POST
@Path
(
"filter/list/{id}/next/{count}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionQueryListNextWithFilter
().
execute
(
request
,
id
,
count
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据信息发布文档ID查询文档第一张图片信息列表."
,
action
=
ActionQueryGetFirstPicture
.
class
)
@GET
@Path
(
"pictures/{id}/first"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listFirstPictures
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
listFirstPictures
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionQueryGetFirstPicture
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -103,7 +123,7 @@ public class DocumentAnonymousAction extends StandardJaxrsAction{
@Path
(
"pictures/{id}/all"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listAllPictures
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
listAllPictures
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListAllPictures
.
Wo
>>
result
=
new
ActionResult
<>();
...
...
@@ -144,4 +164,28 @@ public class DocumentAnonymousAction extends StandardJaxrsAction{
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
@JaxrsMethodDescribe
(
value
=
"分页查询符合过滤条件的已发布的信息内容."
,
action
=
ActionQueryListWithFilterPaging
.
class
)
@POST
@Path
(
"filter/list/{page}/size/{size}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
query_listWithFilterPagingMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"分页"
)
@PathParam
(
"page"
)
Integer
page
,
@JaxrsParameterDescribe
(
"数量"
)
@PathParam
(
"size"
)
Integer
size
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListWithFilterPaging
.
Wo
>>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionQueryListWithFilterPaging
().
execute
(
request
,
page
,
size
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentCipherAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -49,6 +49,28 @@ public class DocumentCipherAction extends StandardJaxrsAction{
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"直接发布文档信息."
,
action
=
ActionPersistPublishByWorkFlow
.
class
)
@POST
@Path
(
"publish/content/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
publishContentByWorkFlowMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionPersistPublishByWorkFlow
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionPersistPublishByWorkFlow
().
execute
(
request
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"分页查询符合过滤条件的已发布的信息内容(管理员和Ciper使用)."
,
action
=
ActionQueryListWithFilterPagingAdmin
.
class
)
@PUT
@Path
(
"filter/list/{page}/size/{size}"
)
...
...
@@ -73,6 +95,30 @@ public class DocumentCipherAction extends StandardJaxrsAction{
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"分页查询符合过滤条件的已发布的信息内容(管理员和Ciper使用)."
,
action
=
ActionQueryListWithFilterPagingAdmin
.
class
)
@POST
@Path
(
"filter/list/{page}/size/{size}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
query_listWithFilterPagingMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"分页"
)
@PathParam
(
"page"
)
Integer
page
,
@JaxrsParameterDescribe
(
"数量"
)
@PathParam
(
"size"
)
Integer
size
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListWithFilterPagingAdmin
.
Wo
>>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionQueryListWithFilterPagingAdmin
().
execute
(
request
,
page
,
size
,
jsonElement
,
effectivePerson
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"查询某用户是否有阅读文档的权限."
,
action
=
ActionQueryPermissionReadDocument
.
class
)
@GET
@Path
(
"{id}/permission/read/person/{person}"
)
...
...
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/document/DocumentViewRecordAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -3,12 +3,7 @@ package com.x.cms.assemble.control.jaxrs.document;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.GET
;
import
javax.ws.rs.PUT
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.PathParam
;
import
javax.ws.rs.Produces
;
import
javax.ws.rs.*
;
import
javax.ws.rs.container.AsyncResponse
;
import
javax.ws.rs.container.Suspended
;
import
javax.ws.rs.core.Context
;
...
...
@@ -29,17 +24,17 @@ import com.x.base.core.project.logger.LoggerFactory;
@Path
(
"viewrecord"
)
@JaxrsDescribe
(
"信息访问日志管理"
)
public
class
DocumentViewRecordAction
extends
StandardJaxrsAction
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
DocumentViewRecordAction
.
class
);
@JaxrsMethodDescribe
(
value
=
"根据文档ID获取该文档的访问用户记录信息,按时间倒序,前50条."
,
action
=
ActionQueryListViewRecordByFilterNext
.
class
)
@GET
@Path
(
"document/{docId}/filter/list/{id}/next/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listByDocumentFilterNext
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
public
void
listByDocumentFilterNext
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListViewRecordByFilterNext
.
Wo
>>
result
=
null
;
...
...
@@ -59,7 +54,7 @@ public class DocumentViewRecordAction extends StandardJaxrsAction{
@Path
(
"person/{name}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listByPerson
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
listByPerson
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"用户姓名"
)
@PathParam
(
"name"
)
String
name
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionQueryListViewRecordByPerson
.
Wo
>>
result
=
null
;
...
...
@@ -73,13 +68,13 @@ public class DocumentViewRecordAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"从指定的文档ID列表中判断未读过的文档ID列表."
,
action
=
ActionQueryListUnReadDocIds
.
class
)
@PUT
@Path
(
"unread"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listUnReadIds
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
listUnReadIds
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionQueryListUnReadDocIds
.
Wo
>
result
=
null
;
...
...
@@ -93,5 +88,25 @@ public class DocumentViewRecordAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
@JaxrsMethodDescribe
(
value
=
"从指定的文档ID列表中判断未读过的文档ID列表."
,
action
=
ActionQueryListUnReadDocIds
.
class
)
@POST
@Path
(
"unread/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listUnReadIdsMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionQueryListUnReadDocIds
.
Wo
>
result
=
null
;
try
{
result
=
new
ActionQueryListUnReadDocIds
().
execute
(
request
,
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionServiceLogic
(
e
,
"系统从指定的文档ID列表中判断未读过的文档ID列表时发生未知异常。"
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/file/FileAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -119,6 +119,24 @@ public class FileAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新文件."
,
action
=
ActionEdit
.
class
)
@POST
@Path
(
"{id}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
updateMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"标识"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionEdit
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionEdit
().
execute
(
effectivePerson
,
id
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除文件."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{flag}"
)
...
...
@@ -137,6 +155,24 @@ public class FileAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除文件."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{flag}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"标识"
)
@PathParam
(
"flag"
)
String
flag
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionDelete
().
execute
(
effectivePerson
,
flag
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据应用列示文件."
,
action
=
ActionListWithApp
.
class
)
@GET
@Path
(
"list/appInfo/{appInfoFlag}"
)
...
...
@@ -263,5 +299,5 @@ public class FileAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/fileinfo/FileInfoAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -28,13 +28,13 @@ import java.util.List;
public
class
FileInfoAction
extends
StandardJaxrsAction
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
FileInfoAction
.
class
);
@JaxrsMethodDescribe
(
value
=
"获取全部的文件或者附件列表."
,
action
=
ActionListAll
.
class
)
@GET
@Path
(
"list/all"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listAllFileInfo
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
)
{
public
void
listAllFileInfo
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListAll
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -46,14 +46,14 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取指定文档的全部附件信息列表."
,
action
=
ActionListByDocId
.
class
)
@GET
@Path
(
"list/document/{documentId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listFileInfoByDocumentId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"documentId"
)
String
documentId
)
{
public
void
listFileInfoByDocumentId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"documentId"
)
String
documentId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListByDocId
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -65,14 +65,14 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID获取fileInfo对象."
,
action
=
ActionGet
.
class
)
@GET
@Path
(
"{id}/document/{documentId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件信息ID"
)
@PathParam
(
"id"
)
String
id
,
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件信息ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"信息文档ID"
)
@PathParam
(
"documentId"
)
String
documentId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionGet
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -85,13 +85,13 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除FileInfo应用信息对象."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件信ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -104,14 +104,33 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除FileInfo应用信息对象."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件信ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionDelete
().
execute
(
request
,
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"将图片附件转为base64编码."
,
action
=
ActionImageToBase64
.
class
)
@GET
@Path
(
"{id}/binary/base64/{size}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
imageToBase64
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件信息ID"
)
@PathParam
(
"id"
)
String
id
,
public
void
imageToBase64
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件信息ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"最大宽高"
)
@PathParam
(
"size"
)
String
size
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
WrapOutString
>
result
=
new
ActionResult
<>();
...
...
@@ -124,13 +143,13 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID下载指定附件"
,
action
=
ActionFileDownload
.
class
)
@GET
@Path
(
"download/document/{id}"
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
attachmentDownLoad
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件标识"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionFileDownload
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
...
...
@@ -147,8 +166,8 @@ public class FileInfoAction extends StandardJaxrsAction{
@GET
@Path
(
"download/document/{id}/stream"
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
attachmentDownloadStream
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
attachmentDownloadStream
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件标识"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionFileDownloadStream
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
...
...
@@ -160,7 +179,7 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新附件访问权限."
,
action
=
ActionFileEdit
.
class
)
@PUT
@Path
(
"edit/{id}/doc/{docId}"
)
...
...
@@ -179,15 +198,34 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新附件访问权限."
,
action
=
ActionFileEdit
.
class
)
@POST
@Path
(
"edit/{id}/doc/{docId}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
editPermissionMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"附件ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionFileEdit
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionFileEdit
().
execute
(
request
,
effectivePerson
,
id
,
docId
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"为文档信息上传附件."
,
action
=
ActionFileUpload
.
class
)
@POST
@Path
(
"upload/document/{docId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
MULTIPART_FORM_DATA
)
public
void
attachmentUpload
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
public
void
attachmentUpload
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
@JaxrsParameterDescribe
(
"位置"
)
@FormDataParam
(
"site"
)
String
site
,
@JaxrsParameterDescribe
(
"附件名称"
)
@FormDataParam
(
FILENAME_FIELD
)
String
fileName
,
@FormDataParam
(
FILE_FIELD
)
final
byte
[]
bytes
,
...
...
@@ -202,16 +240,16 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"为文档信息替换附件."
,
action
=
ActionFileUpdate
.
class
)
@POST
@Path
(
"update/document/{docId}/attachment/{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
MULTIPART_FORM_DATA
)
public
void
attachmentUpdate
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
@JaxrsParameterDescribe
(
"附件ID"
)
@PathParam
(
"id"
)
String
id
,
public
void
attachmentUpdate
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
@JaxrsParameterDescribe
(
"附件ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"位置"
)
@FormDataParam
(
"site"
)
String
site
,
@JaxrsParameterDescribe
(
"附件名称"
)
@FormDataParam
(
FILENAME_FIELD
)
String
fileName
,
@FormDataParam
(
FILE_FIELD
)
final
byte
[]
bytes
,
...
...
@@ -231,9 +269,9 @@ public class FileInfoAction extends StandardJaxrsAction{
@Path
(
"upload/document/{docId}/callback/{callback}"
)
@Produces
(
HttpMediaType
.
TEXT_HTML_UTF_8
)
@Consumes
(
MediaType
.
MULTIPART_FORM_DATA
)
public
void
attachmentUploadCallback
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
public
void
attachmentUploadCallback
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
@JaxrsParameterDescribe
(
"回调函数名"
)
@PathParam
(
"callback"
)
String
callback
,
@JaxrsParameterDescribe
(
"位置"
)
@FormDataParam
(
"site"
)
String
site
,
@JaxrsParameterDescribe
(
"附件名称"
)
@FormDataParam
(
FILENAME_FIELD
)
String
fileName
,
...
...
@@ -249,16 +287,16 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"为文档信息上传附件(带回调)."
,
action
=
ActionFileUpdateCallback
.
class
)
@POST
@Path
(
"update/document/{docId}/attachment/{id}/callback/{callback}"
)
@Produces
(
HttpMediaType
.
TEXT_HTML_UTF_8
)
@Consumes
(
MediaType
.
MULTIPART_FORM_DATA
)
public
void
attachmentUpdateCallback
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
@JaxrsParameterDescribe
(
"附件ID"
)
@PathParam
(
"id"
)
String
id
,
public
void
attachmentUpdateCallback
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"文档ID"
)
@PathParam
(
"docId"
)
String
docId
,
@JaxrsParameterDescribe
(
"附件ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"回调函数名"
)
@PathParam
(
"callback"
)
String
callback
,
@JaxrsParameterDescribe
(
"位置"
)
@FormDataParam
(
"site"
)
String
site
,
@JaxrsParameterDescribe
(
"附件名称"
)
@FormDataParam
(
FILENAME_FIELD
)
String
fileName
,
...
...
@@ -274,4 +312,4 @@ public class FileInfoAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/form/FormAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -146,6 +146,29 @@ public class FormAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新表单信息对象."
,
action
=
ActionSave
.
class
)
@POST
@Path
(
"{id}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
putMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"表单ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionSave
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionSave
().
execute
(
request
,
effectivePerson
,
id
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除表单信息对象."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{id}"
)
...
...
@@ -166,6 +189,26 @@ public class FormAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除表单信息对象."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"表单ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
WrapOutId
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionDelete
().
execute
(
request
,
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionServiceLogic
(
e
,
"系统在根据ID删除表单时发生异常。"
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示满足过滤条件的表单信息,下一页."
,
action
=
ActionListNextWithFilter
.
class
)
@PUT
@Path
(
"filter/list/{id}/next/{count}/app/{appId}"
)
...
...
@@ -189,6 +232,29 @@ public class FormAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示满足过滤条件的表单信息,下一页."
,
action
=
ActionListNextWithFilter
.
class
)
@POST
@Path
(
"filter/list/{id}/next/{count}/app/{appId}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNextWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListNextWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionListNextWithFilter
().
execute
(
request
,
effectivePerson
,
id
,
count
,
appId
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionServiceLogic
(
e
,
"系统在查询所有CMS表单时发生异常。"
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示满足过滤条件的表单信息,上一页."
,
action
=
ActionListPrevWithFilter
.
class
)
@PUT
@Path
(
"filter/list/{id}/prev/{count}/app/{appId}"
)
...
...
@@ -212,6 +278,29 @@ public class FormAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示满足过滤条件的表单信息,上一页."
,
action
=
ActionListPrevWithFilter
.
class
)
@POST
@Path
(
"filter/list/{id}/prev/{count}/app/{appId}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listPrevWithFilterMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListPrevWithFilter
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionListPrevWithFilter
().
execute
(
request
,
effectivePerson
,
id
,
count
,
appId
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
Exception
exception
=
new
ExceptionServiceLogic
(
e
,
"系统在查询所有CMS表单时发生异常。"
);
result
.
error
(
exception
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据指定的栏目获取栏目下所有表单包含的字段字段信息."
,
action
=
ActionListFormFieldWithAppInfo
.
class
)
@GET
@Path
(
"list/formfield/appInfo/{appId}"
)
...
...
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/input/InputAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -3,10 +3,7 @@ package com.x.cms.assemble.control.jaxrs.input;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.ws.rs.Consumes
;
import
javax.ws.rs.PUT
;
import
javax.ws.rs.Path
;
import
javax.ws.rs.Produces
;
import
javax.ws.rs.*
;
import
javax.ws.rs.container.AsyncResponse
;
import
javax.ws.rs.container.Suspended
;
import
javax.ws.rs.core.Context
;
...
...
@@ -29,26 +26,6 @@ public class InputAction extends StandardJaxrsAction {
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
InputAction
.
class
);
// @JaxrsMethodDescribe(value = "对比数据.", action = ActionCompare.class)
// @POST
// @Consumes(MediaType.MULTIPART_FORM_DATA)
// @Produces(HttpMediaType.APPLICATION_JSON_UTF_8)
// public void upload(@Suspended final AsyncResponse asyncResponse, @Context
// HttpServletRequest request,
// @FormDataParam(FILE_FIELD) final byte[] bytes,
// @JaxrsParameterDescribe(".xapp文件") @FormDataParam(FILE_FIELD) final
// FormDataContentDisposition disposition) {
// ActionResult<ActionUpload.Wo> result = new ActionResult<>();
// EffectivePerson effectivePerson = this.effectivePerson(request);
// try {
// result = new ActionUpload().execute(effectivePerson, bytes, disposition);
// } catch (Exception e) {
// logger.error(e, effectivePerson, request, null);
// result.error(e);
// }
// asyncResponse.resume(ResponseFactory.getEntityTagActionResultResponse(request, result));
// }
@JaxrsMethodDescribe
(
value
=
"上传对比数据内容."
,
action
=
ActionCompare
.
class
)
@PUT
@Path
(
"compare"
)
...
...
@@ -67,6 +44,24 @@ public class InputAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"上传对比数据内容."
,
action
=
ActionCompare
.
class
)
@POST
@Path
(
"compare/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
compareMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionCompare
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionCompare
().
execute
(
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"准备覆盖栏目."
,
action
=
ActionPrepareCover
.
class
)
@PUT
@Path
(
"prepare/cover"
)
...
...
@@ -85,6 +80,24 @@ public class InputAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"准备覆盖栏目."
,
action
=
ActionPrepareCover
.
class
)
@POST
@Path
(
"prepare/cover/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
prepareCoverMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionPrepareCover
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionPrepareCover
().
execute
(
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"覆盖栏目."
,
action
=
ActionCover
.
class
)
@PUT
@Path
(
"cover"
)
...
...
@@ -103,6 +116,24 @@ public class InputAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"覆盖栏目."
,
action
=
ActionCover
.
class
)
@POST
@Path
(
"cover/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
coverMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionCover
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionCover
().
execute
(
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"准备创建栏目."
,
action
=
ActionPrepareCreate
.
class
)
@PUT
@Path
(
"prepare/create"
)
...
...
@@ -121,6 +152,24 @@ public class InputAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"准备创建栏目."
,
action
=
ActionPrepareCreate
.
class
)
@POST
@Path
(
"prepare/create/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
prepareCreateMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionPrepareCreate
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionPrepareCreate
().
execute
(
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"创建栏目."
,
action
=
ActionCreate
.
class
)
@PUT
@Path
(
"create"
)
...
...
@@ -139,4 +188,22 @@ public class InputAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
@JaxrsMethodDescribe
(
value
=
"创建栏目."
,
action
=
ActionCreate
.
class
)
@POST
@Path
(
"create/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
createMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionCreate
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionCreate
().
execute
(
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/output/OutputAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -47,6 +47,25 @@ public class OutputAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"选择栏目结构."
,
action
=
ActionSelect
.
class
)
@POST
@Path
(
"{appInfoFlag}/select/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
selectMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目标识"
)
@PathParam
(
"appInfoFlag"
)
String
appInfoFlag
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionSelect
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionSelect
().
execute
(
effectivePerson
,
appInfoFlag
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"查看所有栏目."
,
action
=
ActionList
.
class
)
@GET
@Path
(
"list"
)
...
...
@@ -64,4 +83,4 @@ public class OutputAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/queryview/QueryViewAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -39,7 +39,7 @@ public class QueryViewAction extends BaseAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示指定栏目中所有当前用户可见的数据视图信息."
,
action
=
ActionList
.
class
)
@GET
@Path
(
"list/application/flag/{applicationFlag}"
)
...
...
@@ -62,7 +62,7 @@ public class QueryViewAction extends BaseAction {
@Path
(
"flag/{flag}/application/flag/{applicationFlag}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
flag
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
flag
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"数据视图信息标识"
)
@PathParam
(
"flag"
)
String
flag
)
{
ActionResult
<
ActionFlag
.
Wo
>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -74,20 +74,44 @@ public class QueryViewAction extends BaseAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"执行指定栏目中指定数据视图查询."
,
action
=
ActionExecute
.
class
)
@PUT
@Path
(
"flag/{flag}/application/flag/{appId}/execute"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
execute
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"数据视图信息标识"
)
@PathParam
(
"flag"
)
String
flag
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
public
void
execute
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"数据视图信息标识"
)
@PathParam
(
"flag"
)
String
flag
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
JsonElement
jsonElement
)
{
ActionResult
<
Query
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionExecute
().
execute
(
request
,
effectivePerson
,
flag
,
appId
,
jsonElement
);
}
catch
(
Throwable
th
)
{
th
.
printStackTrace
();
result
.
error
(
th
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"执行指定栏目中指定数据视图查询."
,
action
=
ActionExecute
.
class
)
@POST
@Path
(
"flag/{flag}/application/flag/{appId}/execute/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
executeMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"数据视图信息标识"
)
@PathParam
(
"flag"
)
String
flag
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
,
JsonElement
jsonElement
)
{
ActionResult
<
Query
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionExecute
().
execute
(
request
,
effectivePerson
,
flag
,
appId
,
jsonElement
);
...
...
@@ -99,4 +123,4 @@ public class QueryViewAction extends BaseAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/queryviewdesign/QueryViewDesignAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -28,8 +28,8 @@ public class QueryViewDesignAction extends BaseAction {
@Path
(
"list/{id}/next/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listNext
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
public
void
listNext
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
)
{
ActionResult
<
List
<
ActionListNext
.
Wo
>>
result
=
new
ActionResult
<>();
...
...
@@ -47,8 +47,8 @@ public class QueryViewDesignAction extends BaseAction {
@Path
(
"list/{id}/prev/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
standardListPrev
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
public
void
standardListPrev
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"最后一条信息ID,如果是第一页,则可以用(0)代替"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页显示的条目数量"
)
@PathParam
(
"count"
)
Integer
count
)
{
ActionResult
<
List
<
ActionListPrev
.
Wo
>>
result
=
new
ActionResult
<>();
...
...
@@ -66,7 +66,7 @@ public class QueryViewDesignAction extends BaseAction {
@Path
(
"flag/{flag}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
flag
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
flag
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息标识"
)
@PathParam
(
"flag"
)
String
flag
)
{
ActionResult
<
ActionFlag
.
Wo
>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -84,7 +84,7 @@ public class QueryViewDesignAction extends BaseAction {
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息ID"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionGet
.
Wo
>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -114,7 +114,7 @@ public class QueryViewDesignAction extends BaseAction {
result
.
error
(
th
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
...
...
@@ -123,8 +123,8 @@ public class QueryViewDesignAction extends BaseAction {
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
update
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息ID"
)
@PathParam
(
"id"
)
String
id
,
public
void
update
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionUpdate
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
...
...
@@ -141,12 +141,35 @@ public class QueryViewDesignAction extends BaseAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新数据视图设计信息."
,
action
=
ActionUpdate
.
class
)
@POST
@Path
(
"{id}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
updateMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionUpdate
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionUpdate
().
execute
(
effectivePerson
,
id
,
jsonElement
);
}
catch
(
Throwable
th
)
{
th
.
printStackTrace
();
result
.
error
(
th
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除数据视图设计信息."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息ID"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -159,6 +182,24 @@ public class QueryViewDesignAction extends BaseAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除数据视图设计信息."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息ID"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
try
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
result
=
new
ActionDelete
().
execute
(
effectivePerson
,
id
);
}
catch
(
Throwable
th
)
{
th
.
printStackTrace
();
result
.
error
(
th
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据应用列示视图设计信息."
,
action
=
ActionListWithApplication
.
class
)
@GET
@Path
(
"list/application/{applicationId}"
)
...
...
@@ -182,13 +223,44 @@ public class QueryViewDesignAction extends BaseAction {
@Path
(
"flag/{flag}/simulate"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
simulate
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
simulate
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息标识"
)
@PathParam
(
"flag"
)
String
flag
,
JsonElement
jsonElement
)
{
ActionResult
<
Query
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
WrapInQueryViewExecute
wrapIn
=
null
;
Boolean
check
=
true
;
try
{
wrapIn
=
this
.
convertToWrapIn
(
jsonElement
,
WrapInQueryViewExecute
.
class
);
}
catch
(
Exception
e
)
{
check
=
false
;
Exception
exception
=
new
ExceptionWrapInConvert
(
e
,
jsonElement
);
result
.
error
(
exception
);
e
.
printStackTrace
();
}
if
(
check
){
try
{
result
=
new
ActionSimulate
().
execute
(
effectivePerson
,
flag
,
wrapIn
);
}
catch
(
Throwable
th
)
{
th
.
printStackTrace
();
result
.
error
(
th
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"模拟执行视图设计信息."
,
action
=
ActionSimulate
.
class
)
@POST
@Path
(
"flag/{flag}/simulate/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
simulateMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"视图信息标识"
)
@PathParam
(
"flag"
)
String
flag
,
JsonElement
jsonElement
)
{
ActionResult
<
Query
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
WrapInQueryViewExecute
wrapIn
=
null
;
Boolean
check
=
true
;
try
{
wrapIn
=
this
.
convertToWrapIn
(
jsonElement
,
WrapInQueryViewExecute
.
class
);
}
catch
(
Exception
e
)
{
...
...
@@ -207,4 +279,4 @@ public class QueryViewDesignAction extends BaseAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/script/ScriptAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -87,6 +87,24 @@ public class ScriptAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新脚本信息."
,
action
=
ActionUpdate
.
class
)
@POST
@Path
(
"{id}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
putMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"脚本信息ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
ActionResult
<
ActionUpdate
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionUpdate
().
execute
(
effectivePerson
,
id
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除脚本信息."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{id}"
)
...
...
@@ -105,6 +123,24 @@ public class ScriptAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"删除脚本信息."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"脚本信息ID"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionDelete
().
execute
(
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示指定栏目中的所有脚本."
,
action
=
ActionListWithApplication
.
class
)
@GET
@Path
(
"list/app/{flag}"
)
...
...
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/templateform/TemplateFormAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -88,6 +88,23 @@ public class TemplateFormAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"按表单模板分类名称列示模版表单."
,
action
=
ActionListWithCategory
.
class
)
@POST
@Path
(
"list/category/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listWithCategoryMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
ActionResult
<
List
<
ActionListWithCategory
.
Wo
>>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionListWithCategory
().
execute
(
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
jsonElement
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取模版表单内容."
,
action
=
ActionGet
.
class
)
@GET
@Path
(
"{id}"
)
...
...
@@ -139,4 +156,22 @@ public class TemplateFormAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
@JaxrsMethodDescribe
(
value
=
"删除模版表单."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"标识"
)
@PathParam
(
"id"
)
String
id
)
{
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
result
=
new
ActionDelete
().
execute
(
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
result
.
error
(
e
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/view/ViewAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -33,15 +33,15 @@ import com.x.base.core.project.logger.LoggerFactory;
@Path
(
"view"
)
@JaxrsDescribe
(
"信息列表管理"
)
public
class
ViewAction
extends
StandardJaxrsAction
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ViewAction
.
class
);
@JaxrsMethodDescribe
(
value
=
"获取全部的信息列表."
,
action
=
ActionListAll
.
class
)
@GET
@Path
(
"list/all"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listAllView
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
)
{
public
void
listAllView
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListAll
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -53,14 +53,14 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取指定栏目ID的全部信息列表."
,
action
=
ActionListByApp
.
class
)
@GET
@Path
(
"list/app/{appId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listViewByAppId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
public
void
listViewByAppId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"栏目ID"
)
@PathParam
(
"appId"
)
String
appId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListByApp
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -72,14 +72,14 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取指定表单ID的全部信息列表."
,
action
=
ActionListByForm
.
class
)
@GET
@Path
(
"list/form/{formId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listViewByFormId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"表单ID"
)
@PathParam
(
"formId"
)
String
formId
)
{
public
void
listViewByFormId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"表单ID"
)
@PathParam
(
"formId"
)
String
formId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListByForm
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -91,14 +91,14 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取指定分类的全部视图信息列表."
,
action
=
ActionListByCategory
.
class
)
@GET
@Path
(
"list/category/{categoryId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listViewByCategoryId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"分类ID"
)
@PathParam
(
"categoryId"
)
String
categoryId
)
{
public
void
listViewByCategoryId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"分类ID"
)
@PathParam
(
"categoryId"
)
String
categoryId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListByCategory
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -110,13 +110,13 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID获取信息列表对象."
,
action
=
ActionGet
.
class
)
@GET
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列表ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionGet
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -129,7 +129,7 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"创建列表信息."
,
action
=
ActionSave
.
class
)
@POST
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
...
...
@@ -149,13 +149,13 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新信息列表."
,
action
=
ActionSave
.
class
)
@PUT
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
put
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
put
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列表ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionSave
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -171,13 +171,35 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新信息列表."
,
action
=
ActionSave
.
class
)
@POST
@Path
(
"{id}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
putMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列表ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionSave
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionSave
().
execute
(
request
,
effectivePerson
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除信息对象."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列表ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -190,15 +212,34 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除信息对象."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列表ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionDelete
().
execute
(
request
,
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"列示符合条件的视图数据列表,下一页."
,
action
=
ActionListNextPageViewData
.
class
)
@POST
@Path
(
"viewdata/list/{id}/next/{count}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
nextPageViewDataList
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"上一页最后一条ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
public
void
nextPageViewDataList
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"上一页最后一条ID"
)
@PathParam
(
"id"
)
String
id
,
@JaxrsParameterDescribe
(
"每页条目数量"
)
@PathParam
(
"count"
)
Integer
count
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListNextPageViewData
.
Wo
>>
result
=
new
ActionResult
<>();
...
...
@@ -214,4 +255,4 @@ public class ViewAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/viewcategory/ViewCategoryAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -147,4 +147,23 @@ public class ViewCategoryAction extends StandardJaxrsAction {
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
@JaxrsMethodDescribe
(
value
=
"根据ID删除列表信息对象."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列表分类关联信息ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionDelete
().
execute
(
request
,
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/jaxrs/viewfieldconfig/ViewFieldConfigAction.java
浏览文件 @
b8ee8e2f
...
...
@@ -32,15 +32,15 @@ import com.x.base.core.project.logger.LoggerFactory;
@Path
(
"viewfieldconfig"
)
@JaxrsDescribe
(
"列表列信息配置"
)
public
class
ViewFieldConfigAction
extends
StandardJaxrsAction
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ViewFieldConfigAction
.
class
);
@JaxrsMethodDescribe
(
value
=
"获取全部的展示列配置信息列表."
,
action
=
ActionListAll
.
class
)
@GET
@Path
(
"list/all"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listAllView
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
)
{
public
void
listAllView
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListAll
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -52,14 +52,14 @@ public class ViewFieldConfigAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"获取指定列表的全部展示列配置信息列表."
,
action
=
ActionListByViewId
.
class
)
@GET
@Path
(
"list/view/{viewId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
listViewFieldConfigByViewId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列表ID"
)
@PathParam
(
"viewId"
)
String
viewId
)
{
public
void
listViewFieldConfigByViewId
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列表ID"
)
@PathParam
(
"viewId"
)
String
viewId
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
List
<
ActionListByViewId
.
Wo
>>
result
=
new
ActionResult
<>();
try
{
...
...
@@ -71,13 +71,13 @@ public class ViewFieldConfigAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID获取列表列信息配置对象."
,
action
=
ActionGet
.
class
)
@GET
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
get
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列配置ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionGet
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -97,9 +97,9 @@ public class ViewFieldConfigAction extends StandardJaxrsAction{
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
post
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionSave
.
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
ActionSave
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionSave
().
execute
(
request
,
effectivePerson
,
null
,
jsonElement
);
...
...
@@ -109,7 +109,7 @@ public class ViewFieldConfigAction extends StandardJaxrsAction{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
...
...
@@ -118,12 +118,35 @@ public class ViewFieldConfigAction extends StandardJaxrsAction{
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
put
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
put
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列配置ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionSave
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionSave
().
execute
(
request
,
effectivePerson
,
id
,
jsonElement
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"更新列表列信息配置对象."
,
action
=
ActionSave
.
class
)
@POST
@Path
(
"{id}/mockputtopost"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
putMockPutToPost
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列配置ID"
)
@PathParam
(
"id"
)
String
id
,
JsonElement
jsonElement
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionSave
.
Wo
>
result
=
new
ActionResult
<>();
Boolean
check
=
true
;
if
(
check
){
try
{
result
=
new
ActionSave
().
execute
(
request
,
effectivePerson
,
id
,
jsonElement
);
...
...
@@ -135,13 +158,13 @@ public class ViewFieldConfigAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"根据ID删除列表列信息配置对象."
,
action
=
ActionDelete
.
class
)
@DELETE
@Path
(
"{id}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
public
void
delete
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列配置ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
...
...
@@ -154,5 +177,24 @@ public class ViewFieldConfigAction extends StandardJaxrsAction{
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
\ No newline at end of file
@JaxrsMethodDescribe
(
value
=
"根据ID删除列表列信息配置对象."
,
action
=
ActionDelete
.
class
)
@GET
@Path
(
"{id}/mockdeletetoget"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
@Consumes
(
MediaType
.
APPLICATION_JSON
)
public
void
deleteMockDeleteToGet
(
@Suspended
final
AsyncResponse
asyncResponse
,
@Context
HttpServletRequest
request
,
@JaxrsParameterDescribe
(
"列配置ID"
)
@PathParam
(
"id"
)
String
id
)
{
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
ActionResult
<
ActionDelete
.
Wo
>
result
=
new
ActionResult
<>();
try
{
result
=
new
ActionDelete
().
execute
(
request
,
effectivePerson
,
id
);
}
catch
(
Exception
e
)
{
result
=
new
ActionResult
<>();
result
.
error
(
e
);
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
}
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录