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
4392b123
Commit
4392b123
authored
Mar 08, 2019
by
gechengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AA
parent
18bdfe40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
+7
-1
NoUiRequest.java
...va/org/sss/presentation/noui/api/request/NoUiRequest.java
+4
-0
NoUiUtils.java
src/main/java/org/sss/presentation/noui/util/NoUiUtils.java
+3
-1
No files found.
src/main/java/org/sss/presentation/noui/api/request/NoUiRequest.java
View file @
4392b123
...
@@ -18,6 +18,10 @@ public class NoUiRequest {
...
@@ -18,6 +18,10 @@ public class NoUiRequest {
private
Map
<
String
,
?>
dataMap
=
new
HashMap
<
String
,
Object
>();
private
Map
<
String
,
?>
dataMap
=
new
HashMap
<
String
,
Object
>();
private
Map
<
String
,
?>
saveDisplayMap
=
new
HashMap
<
String
,
Object
>();
private
Map
<
String
,
?>
saveDisplayMap
=
new
HashMap
<
String
,
Object
>();
public
NoUiRequest
()
{
}
public
NoUiRequest
(
HttpServletRequest
request
,
String
mappingUrl
,
Map
<
String
,
?>
requestData
)
{
public
NoUiRequest
(
HttpServletRequest
request
,
String
mappingUrl
,
Map
<
String
,
?>
requestData
)
{
String
tokenId
=
request
.
getHeader
(
"token"
);
String
tokenId
=
request
.
getHeader
(
"token"
);
String
userId
=
request
.
getHeader
(
"userId"
);
String
userId
=
request
.
getHeader
(
"userId"
);
...
...
src/main/java/org/sss/presentation/noui/util/NoUiUtils.java
View file @
4392b123
...
@@ -14,6 +14,7 @@ import org.sss.common.model.IFactory;
...
@@ -14,6 +14,7 @@ import org.sss.common.model.IFactory;
import
org.sss.common.model.IFilter
;
import
org.sss.common.model.IFilter
;
import
org.sss.common.model.II18n
;
import
org.sss.common.model.II18n
;
import
org.sss.common.model.IModuleSession
;
import
org.sss.common.model.IModuleSession
;
import
org.sss.presentation.noui.api.request.NoUiRequest
;
import
org.sss.presentation.noui.context.NoUiContext
;
import
org.sss.presentation.noui.context.NoUiContext
;
import
org.sss.presentation.noui.context.NoUiPresentation
;
import
org.sss.presentation.noui.context.NoUiPresentation
;
import
org.sss.util.ContainerUtils
;
import
org.sss.util.ContainerUtils
;
...
@@ -52,7 +53,8 @@ public class NoUiUtils {
...
@@ -52,7 +53,8 @@ public class NoUiUtils {
log
.
debug
(
"serviceName:"
+
str1
);
log
.
debug
(
"serviceName:"
+
str1
);
if
(!
ContainerUtils
.
isEmpty
(
str1
))
{
if
(!
ContainerUtils
.
isEmpty
(
str1
))
{
NoUiContext
localContext
=
new
NoUiContext
();
NoUiContext
localContext
=
new
NoUiContext
();
localContext
.
setGui
(
new
NoUiPresentation
(
localContext
));
NoUiRequest
noUiRequest
=
new
NoUiRequest
();
localContext
.
setGui
(
new
NoUiPresentation
(
localContext
,
noUiRequest
));
String
str2
=
(
userNames
==
null
)
||
(
userNames
.
length
<=
i
)
||
(
ContainerUtils
.
isEmpty
(
userNames
[
i
]))
?
userName
:
userNames
[
i
];
String
str2
=
(
userNames
==
null
)
||
(
userNames
.
length
<=
i
)
||
(
ContainerUtils
.
isEmpty
(
userNames
[
i
]))
?
userName
:
userNames
[
i
];
log
.
debug
(
"userName:"
+
str2
);
log
.
debug
(
"userName:"
+
str2
);
localContext
.
setAuth
(
new
DefaultLoginContext
(
str2
));
localContext
.
setAuth
(
new
DefaultLoginContext
(
str2
));
...
...
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