Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_42566577
o2oa
提交
ea727bad
o2oa
项目概览
weixin_42566577
/
o2oa
与 Fork 源项目一致
Fork自
浙江兰德纵横网络技术股份有限公司 / o2oa
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ea727bad
编写于
7月 30, 2020
作者:
O
o2null
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/#253' into 'develop'
登录页面单独进行判断 See merge request o2oa/o2oa!1291
上级
aaedd85b
bf833b5a
变更
13
展开全部
隐藏空白更改
内联
并排
Showing
13 changed file
with
35 addition
and
1370 deletion
+35
-1370
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/ActionGet.java
...a/com/x/portal/assemble/surface/jaxrs/page/ActionGet.java
+1
-1
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/ActionGetMobile.java
...x/portal/assemble/surface/jaxrs/page/ActionGetMobile.java
+1
-1
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/ActionGetWithPortal.java
...rtal/assemble/surface/jaxrs/page/ActionGetWithPortal.java
+3
-3
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/ActionGetWithPortalMobile.java
...ssemble/surface/jaxrs/page/ActionGetWithPortalMobile.java
+2
-2
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/BaseAction.java
.../com/x/portal/assemble/surface/jaxrs/page/BaseAction.java
+8
-0
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/ActionGet.java
...s/com/x/portal/assemble/surface/jaxrs/page/ActionGet.java
+1
-1
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/ActionGetMobile.java
...x/portal/assemble/surface/jaxrs/page/ActionGetMobile.java
+1
-1
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/ActionGetWithPortal.java
...rtal/assemble/surface/jaxrs/page/ActionGetWithPortal.java
+3
-3
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/ActionGetWithPortalMobile.java
...ssemble/surface/jaxrs/page/ActionGetWithPortalMobile.java
+2
-2
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/BaseAction.java
.../com/x/portal/assemble/surface/jaxrs/page/BaseAction.java
+8
-0
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/ActionUploadWithWork.java
...semble/surface/jaxrs/attachment/ActionUploadWithWork.java
+2
-2
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/AttachmentAction.java
...m/assemble/surface/jaxrs/attachment/AttachmentAction.java
+3
-3
o2server/x_teamwork_assemble_control/src/main/webapp/jest
o2server/x_teamwork_assemble_control/src/main/webapp/jest
+0
-1351
未找到文件。
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/ActionGet.java
浏览文件 @
ea727bad
...
...
@@ -26,7 +26,7 @@ class ActionGet extends BaseAction {
if
(
null
==
portal
)
{
throw
new
ExceptionPortalNotExist
(
page
.
getPortal
());
}
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
id
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/ActionGetMobile.java
浏览文件 @
ea727bad
...
...
@@ -26,7 +26,7 @@ class ActionGetMobile extends BaseAction {
if
(
null
==
portal
)
{
throw
new
ExceptionPortalNotExist
(
page
.
getPortal
());
}
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
id
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/ActionGetWithPortal.java
浏览文件 @
ea727bad
...
...
@@ -27,16 +27,16 @@ class ActionGetWithPortal extends BaseAction {
if
((
null
!=
element
)
&&
(
null
!=
element
.
getObjectValue
()))
{
wo
=
(
Wo
)
element
.
getObjectValue
();
Portal
portal
=
business
.
portal
().
pick
(
wo
.
getPortal
());
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
flag
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
}
else
{
Portal
portal
=
business
.
portal
().
pick
(
portalFlag
);
Portal
portal
=
business
.
portal
().
pick
(
portalFlag
);
if
(
null
==
portal
)
{
throw
new
ExceptionPortalNotExist
(
portalFlag
);
}
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
flag
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/ActionGetWithPortalMobile.java
浏览文件 @
ea727bad
...
...
@@ -27,7 +27,7 @@ class ActionGetWithPortalMobile extends BaseAction {
if
((
null
!=
element
)
&&
(
null
!=
element
.
getObjectValue
()))
{
wo
=
(
Wo
)
element
.
getObjectValue
();
Portal
portal
=
business
.
portal
().
pick
(
wo
.
getPortal
());
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
flag
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
@@ -36,7 +36,7 @@ class ActionGetWithPortalMobile extends BaseAction {
if
(
null
==
portal
)
{
throw
new
ExceptionPortalNotExist
(
portalFlag
);
}
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
flag
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
o2server/x_portal_assemble_surface/src/main/java/com/x/portal/assemble/surface/jaxrs/page/BaseAction.java
浏览文件 @
ea727bad
package
com.x.portal.assemble.surface.jaxrs.page
;
import
org.apache.commons.lang3.StringUtils
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.config.Config
;
import
com.x.base.core.project.jaxrs.StandardJaxrsAction
;
import
com.x.portal.core.entity.Page
;
...
...
@@ -10,4 +13,9 @@ abstract class BaseAction extends StandardJaxrsAction {
Ehcache
pageCache
=
ApplicationCache
.
instance
().
getCache
(
Page
.
class
);
protected
boolean
isNotLoginPage
(
String
id
)
throws
Exception
{
return
!(
Config
.
portal
().
getIndexPage
().
getEnable
()
&&
StringUtils
.
equals
(
id
,
Config
.
portal
().
getIndexPage
().
getPage
()));
}
}
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/ActionGet.java
浏览文件 @
ea727bad
...
...
@@ -26,7 +26,7 @@ class ActionGet extends BaseAction {
if
(
null
==
portal
)
{
throw
new
ExceptionPortalNotExist
(
page
.
getPortal
());
}
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
id
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/ActionGetMobile.java
浏览文件 @
ea727bad
...
...
@@ -26,7 +26,7 @@ class ActionGetMobile extends BaseAction {
if
(
null
==
portal
)
{
throw
new
ExceptionPortalNotExist
(
page
.
getPortal
());
}
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
id
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/ActionGetWithPortal.java
浏览文件 @
ea727bad
...
...
@@ -27,16 +27,16 @@ class ActionGetWithPortal extends BaseAction {
if
((
null
!=
element
)
&&
(
null
!=
element
.
getObjectValue
()))
{
wo
=
(
Wo
)
element
.
getObjectValue
();
Portal
portal
=
business
.
portal
().
pick
(
wo
.
getPortal
());
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
flag
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
}
else
{
Portal
portal
=
business
.
portal
().
pick
(
portalFlag
);
Portal
portal
=
business
.
portal
().
pick
(
portalFlag
);
if
(
null
==
portal
)
{
throw
new
ExceptionPortalNotExist
(
portalFlag
);
}
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
flag
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/ActionGetWithPortalMobile.java
浏览文件 @
ea727bad
...
...
@@ -27,7 +27,7 @@ class ActionGetWithPortalMobile extends BaseAction {
if
((
null
!=
element
)
&&
(
null
!=
element
.
getObjectValue
()))
{
wo
=
(
Wo
)
element
.
getObjectValue
();
Portal
portal
=
business
.
portal
().
pick
(
wo
.
getPortal
());
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
flag
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
@@ -36,7 +36,7 @@ class ActionGetWithPortalMobile extends BaseAction {
if
(
null
==
portal
)
{
throw
new
ExceptionPortalNotExist
(
portalFlag
);
}
if
(
!
business
.
portal
().
visible
(
effectivePerson
,
portal
))
{
if
(
isNotLoginPage
(
flag
)
&&
(!
business
.
portal
().
visible
(
effectivePerson
,
portal
)
))
{
throw
new
ExceptionPortalAccessDenied
(
effectivePerson
.
getDistinguishedName
(),
portal
.
getName
(),
portal
.
getId
());
}
...
...
o2server/x_portal_assemble_surface/src/main/webapp/describe/sources/com/x/portal/assemble/surface/jaxrs/page/BaseAction.java
浏览文件 @
ea727bad
package
com.x.portal.assemble.surface.jaxrs.page
;
import
org.apache.commons.lang3.StringUtils
;
import
com.x.base.core.project.cache.ApplicationCache
;
import
com.x.base.core.project.config.Config
;
import
com.x.base.core.project.jaxrs.StandardJaxrsAction
;
import
com.x.portal.core.entity.Page
;
...
...
@@ -10,4 +13,9 @@ abstract class BaseAction extends StandardJaxrsAction {
Ehcache
pageCache
=
ApplicationCache
.
instance
().
getCache
(
Page
.
class
);
protected
boolean
isNotLoginPage
(
String
id
)
throws
Exception
{
return
!(
Config
.
portal
().
getIndexPage
().
getEnable
()
&&
StringUtils
.
equals
(
id
,
Config
.
portal
().
getIndexPage
().
getPage
()));
}
}
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/ActionUpload.java
→
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/ActionUpload
WithWork
.java
浏览文件 @
ea727bad
...
...
@@ -25,9 +25,9 @@ import org.glassfish.jersey.media.multipart.FormDataContentDisposition;
import
javax.servlet.http.HttpServletRequest
;
class
ActionUpload
extends
BaseAction
{
class
ActionUpload
WithWork
extends
BaseAction
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ActionUpload
.
class
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
ActionUpload
WithWork
.
class
);
ActionResult
<
Wo
>
execute
(
EffectivePerson
effectivePerson
,
String
workId
,
String
site
,
String
fileName
,
byte
[]
bytes
,
FormDataContentDisposition
disposition
,
String
extraParam
)
throws
Exception
{
...
...
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/attachment/AttachmentAction.java
浏览文件 @
ea727bad
...
...
@@ -364,7 +364,7 @@ public class AttachmentAction extends StandardJaxrsAction {
asyncResponse
.
resume
(
ResponseFactory
.
getEntityTagActionResultResponse
(
request
,
result
));
}
@JaxrsMethodDescribe
(
value
=
"上传附件."
,
action
=
ActionUpload
.
class
)
@JaxrsMethodDescribe
(
value
=
"上传附件."
,
action
=
ActionUpload
WithWork
.
class
)
@POST
@Path
(
"upload/work/{workId}"
)
@Produces
(
HttpMediaType
.
APPLICATION_JSON_UTF_8
)
...
...
@@ -376,7 +376,7 @@ public class AttachmentAction extends StandardJaxrsAction {
@JaxrsParameterDescribe
(
"天印扩展字段"
)
@FormDataParam
(
"extraParam"
)
String
extraParam
,
@FormDataParam
(
FILE_FIELD
)
byte
[]
bytes
,
@FormDataParam
(
FILE_FIELD
)
final
FormDataContentDisposition
disposition
)
{
ActionResult
<
ActionUpload
.
Wo
>
result
=
new
ActionResult
<>();
ActionResult
<
ActionUpload
WithWork
.
Wo
>
result
=
new
ActionResult
<>();
EffectivePerson
effectivePerson
=
this
.
effectivePerson
(
request
);
try
{
if
(
StringUtils
.
isEmpty
(
extraParam
))
{
...
...
@@ -392,7 +392,7 @@ public class AttachmentAction extends StandardJaxrsAction {
}
}
}
result
=
new
ActionUpload
().
execute
(
effectivePerson
,
workId
,
site
,
fileName
,
bytes
,
disposition
,
result
=
new
ActionUpload
WithWork
().
execute
(
effectivePerson
,
workId
,
site
,
fileName
,
bytes
,
disposition
,
extraParam
);
}
catch
(
Exception
e
)
{
logger
.
error
(
e
,
effectivePerson
,
request
,
null
);
...
...
o2server/x_teamwork_assemble_control/src/main/webapp/jest
已删除
100644 → 0
浏览文件 @
aaedd85b
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录