Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gechengyang
nouiWithSpringMVC
Commits
98654e0b
Commit
98654e0b
authored
Oct 07, 2020
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善数据安全框架
parent
a20df4c4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
2 deletions
+27
-2
NoUiRequest.java
...va/org/sss/presentation/noui/api/request/NoUiRequest.java
+19
-0
AbstractCommonController.java
...resentation/noui/controller/AbstractCommonController.java
+0
-0
DataSecurityUtil.java
...java/org/sss/presentation/noui/util/DataSecurityUtil.java
+0
-0
security.properties
src/main/resources/security.properties
+8
-2
No files found.
src/main/java/org/sss/presentation/noui/api/request/NoUiRequest.java
View file @
98654e0b
...
...
@@ -19,6 +19,8 @@ public class NoUiRequest {
private
Map
<
String
,
?>
dataMap
=
new
HashMap
<
String
,
Object
>();
private
Map
<
String
,
?>
saveDisplayMap
=
new
HashMap
<
String
,
Object
>();
private
boolean
isSecurity
=
false
;
private
String
reqUrl
;
private
String
trnName
;
public
NoUiRequest
()
{
...
...
@@ -34,6 +36,15 @@ public class NoUiRequest {
this
.
userId
=
userId
;
this
.
terminalType
=
terminalType
;
this
.
mappingUrl
=
mappingUrl
;
String
[]
mappingArgs
=
mappingUrl
.
split
(
"/"
);
if
(
mappingArgs
.
length
>
1
){
this
.
trnName
=
mappingArgs
[
mappingArgs
.
length
-
2
];
if
(
request
.
getRequestURI
().
indexOf
(
this
.
trnName
)>
0
){
this
.
reqUrl
=
request
.
getRequestURI
().
substring
(
request
.
getRequestURI
().
indexOf
(
this
.
trnName
)-
1
);
}
else
{
this
.
reqUrl
=
mappingUrl
;
}
}
if
(!
StringUtil
.
isEmpty
(
security
)){
this
.
isSecurity
=
true
;
}
...
...
@@ -125,4 +136,12 @@ public class NoUiRequest {
public
boolean
isSecurity
()
{
return
isSecurity
;
}
public
String
getReqUrl
()
{
return
reqUrl
;
}
public
String
getTrnName
()
{
return
trnName
;
}
}
src/main/java/org/sss/presentation/noui/controller/AbstractCommonController.java
View file @
98654e0b
This diff is collapsed.
Click to expand it.
src/main/java/org/sss/presentation/noui/util/DataSecurityUtil.java
View file @
98654e0b
This diff is collapsed.
Click to expand it.
src/main/resources/security.properties
View file @
98654e0b
#安全开关(ON:开;OFF:关)
switch
=
ON
#客户管理——查询
/dblpty/
sel_encode
=
\\
ptyp
\\
ptylst[]
\\
inr
#客户管理——修改
dbepty
=
\\
ptygrp
\\
rec
\\
inr,
\\
ptygrp
\\
rec
\\
extkey
/dbepty/
init_decode
=
\\
ptygrp
\\
rec
\\
inr
/dbepty/
init_encode
=
\\
ptygrp
\\
rec
\\
inr,
\\
ptygrp
\\
rec
\\
extkey
/dbepty/
sav_decode
=
\\
ptygrp
\\
rec
\\
inr,
\\
ptygrp
\\
rec
\\
extkey
#客户管理——删除
dbdpty
=
\\
ptygrp
\\
rec
\\
inr
/dbdpty/
init_decode
=
\\
ptygrp
\\
rec
\\
inr
/dbdpty/
init_encode
=
\\
ptygrp
\\
rec
\\
inr
/dbdpty/
sav_decode
=
\\
ptygrp
\\
rec
\\
inr
#
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment