Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
fuyue82
o2oa
提交
acb6270e
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,发现更多精彩内容 >>
提交
acb6270e
编写于
2月 22, 2019
作者:
R
roo00
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete personDetail class
上级
f863e866
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
32 addition
and
31 deletion
+32
-31
o2server/x_console/src/main/java/com/x/server/console/Main.java
...er/x_console/src/main/java/com/x/server/console/Main.java
+9
-20
o2server/x_organization_core_express/src/main/java/com/x/organization/core/express/Organization.java
...in/java/com/x/organization/core/express/Organization.java
+22
-10
o2server/x_organization_core_express/src/main/java/com/x/organization/core/express/PersonDetail.java
...in/java/com/x/organization/core/express/PersonDetail.java
+1
-1
未找到文件。
o2server/x_console/src/main/java/com/x/server/console/Main.java
浏览文件 @
acb6270e
...
...
@@ -43,7 +43,6 @@ import com.x.server.console.action.ActionEraseContentBbs;
import
com.x.server.console.action.ActionEraseContentCms
;
import
com.x.server.console.action.ActionEraseContentLog
;
import
com.x.server.console.action.ActionEraseContentProcessPlatform
;
import
com.x.server.console.action.ActionEraseContentReport
;
import
com.x.server.console.action.ActionRestoreData
;
import
com.x.server.console.action.ActionRestoreStorage
;
import
com.x.server.console.action.ActionSetPassword
;
...
...
@@ -52,6 +51,7 @@ import com.x.server.console.action.ActionShowMemory;
import
com.x.server.console.action.ActionShowOs
;
import
com.x.server.console.action.ActionShowThread
;
import
com.x.server.console.action.ActionUpdate
;
import
com.x.server.console.action.ActionUpdateFile
;
import
com.x.server.console.action.ActionVersion
;
import
com.x.server.console.log.LogTools
;
import
com.x.server.console.server.Servers
;
...
...
@@ -275,7 +275,7 @@ public class Main {
matcher
=
CommandFactory
.
update_pattern
.
matcher
(
cmd
);
if
(
matcher
.
find
())
{
if
(
update
(
matcher
.
group
(
1
)))
{
if
(
update
(
matcher
.
group
(
1
)
,
matcher
.
group
(
2
),
matcher
.
group
(
3
)
))
{
stopAll
();
System
.
exit
(
0
);
}
else
{
...
...
@@ -283,9 +283,9 @@ public class Main {
}
}
matcher
=
CommandFactory
.
fastUpdat
e_pattern
.
matcher
(
cmd
);
matcher
=
CommandFactory
.
updateFil
e_pattern
.
matcher
(
cmd
);
if
(
matcher
.
find
())
{
if
(
fastUpdate
(
matcher
.
group
(
1
)))
{
if
(
updateFile
(
matcher
.
group
(
1
),
matcher
.
group
(
2
),
matcher
.
group
(
3
)))
{
stopAll
();
System
.
exit
(
0
);
}
else
{
...
...
@@ -315,9 +315,6 @@ public class Main {
case
"log"
:
eraseContentLog
(
matcher
.
group
(
2
));
break
;
case
"report"
:
eraseContentReport
(
matcher
.
group
(
2
));
break
;
case
"bbs"
:
eraseContentBbs
(
matcher
.
group
(
2
));
break
;
...
...
@@ -421,18 +418,19 @@ public class Main {
return
true
;
}
private
static
boolean
fastUpdate
(
String
password
)
{
private
static
boolean
update
(
String
password
,
String
backup
,
String
latest
)
{
try
{
return
new
ActionUpdate
().
execute
(
password
,
false
,
true
);
return
new
ActionUpdate
().
execute
(
password
,
BooleanUtils
.
toBoolean
(
backup
),
BooleanUtils
.
toBoolean
(
latest
));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
true
;
}
private
static
boolean
update
(
String
password
)
{
private
static
boolean
update
File
(
String
path
,
String
backup
,
String
password
)
{
try
{
return
new
ActionUpdate
().
execute
(
password
,
true
,
false
);
return
new
ActionUpdate
File
().
execute
(
path
,
BooleanUtils
.
toBoolean
(
backup
),
password
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -885,13 +883,4 @@ public class Main {
return
false
;
}
private
static
boolean
eraseContentReport
(
String
password
)
throws
Exception
{
try
{
return
new
ActionEraseContentReport
().
execute
(
password
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
return
false
;
}
}
\ No newline at end of file
o2server/x_organization_core_express/src/main/java/com/x/organization/core/express/Organization.java
浏览文件 @
acb6270e
...
...
@@ -216,15 +216,27 @@ public class Organization {
}
public
Detail
detail
(
EffectivePerson
effectivePerson
)
throws
Exception
{
Detail
o
=
new
Detail
();
o
.
setPerson
(
effectivePerson
.
getDistinguishedName
());
o
.
setIdentityList
(
identity
().
listWithPerson
(
effectivePerson
));
o
.
setUnitList
(
unit
().
listWithPerson
(
effectivePerson
));
o
.
setUnitAllList
(
unit
().
listWithPersonSupNested
(
effectivePerson
));
o
.
setGroupList
(
group
().
listWithPerson
(
effectivePerson
.
getDistinguishedName
()));
o
.
setRoleList
(
role
().
listWithPerson
(
effectivePerson
));
return
o
;
}
// public PersonDetail detail(EffectivePerson effectivePerson) throws Exception {
// PersonDetail o = new PersonDetail();
// o.setPerson(effectivePerson.getDistinguishedName());
// o.setIdentityList(identity().listWithPerson(effectivePerson));
// o.setUnitList(unit().listWithPerson(effectivePerson));
// o.setUnitAllList(unit().listWithPersonSupNested(effectivePerson));
// o.setGroupList(group().listWithPerson(effectivePerson.getDistinguishedName()));
// o.setRoleList(role().listWithPerson(effectivePerson));
// return o;
// }
//
// public PersonDetail detail(String name) throws Exception {
// PersonDetail o = new PersonDetail();
// String person = this.person().get(name);
// o.setPerson(person);
// o.setIdentityList(identity().listWithPerson(person));
// o.setUnitList(unit().listWithPerson(person));
// o.setUnitAllList(unit().listWithPersonSupNested(person));
// o.setGroupList(group().listWithPerson(person));
// o.setRoleList(role().listWithPerson(person));
// return o;
// }
}
o2server/x_organization_core_express/src/main/java/com/x/organization/core/express/Detail.java
→
o2server/x_organization_core_express/src/main/java/com/x/organization/core/express/
Person
Detail.java
浏览文件 @
acb6270e
...
...
@@ -6,7 +6,7 @@ import org.apache.commons.collections4.list.TreeList;
import
com.x.base.core.project.annotation.FieldDescribe
;
public
class
Detail
{
public
class
Person
Detail
{
@FieldDescribe
(
"当前用户"
)
private
String
person
=
""
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录