Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
civitas-digitalis
platform
Commits
0ac9f182
Commit
0ac9f182
authored
Jan 23, 2018
by
Elias Englmeier
Browse files
tmp changes to test server
parent
0689cf89
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/MapModule/bin/MapModule/portlet/MapModulePortlet.class
View file @
0ac9f182
No preview for this file type
modules/MapModule/src/main/java/MapModule/portlet/MapModulePortlet.java
View file @
0ac9f182
...
...
@@ -49,6 +49,7 @@ public class MapModulePortlet extends MVCPortlet {
String
result
=
null
;
User
user
;
if
(
ProjectLocalServiceUtil
.
getProjectByLayoutIdRef
(
themeDisplay
.
getLayout
().
getPrimaryKey
())
!=
null
){
System
.
out
.
println
(
"MM: 1"
);
long
projectId
=
ProjectLocalServiceUtil
.
getProjectByLayoutIdRef
(
themeDisplay
.
getLayout
().
getPrimaryKey
()).
getPrimaryKey
();
try
{
user
=
PortalUtil
.
getUser
(
renderRequest
);
...
...
@@ -73,6 +74,7 @@ public class MapModulePortlet extends MVCPortlet {
}
else
if
(
IdeasLocalServiceUtil
.
getIdeasByLayoutIdRef
(
themeDisplay
.
getLayout
().
getPrimaryKey
())
!=
null
){
System
.
out
.
println
(
"MM: 2"
);
ArrayList
<
Ideas
>
tmp
=
new
ArrayList
<
Ideas
>();
Ideas
i
=
IdeasLocalServiceUtil
.
getIdeasByLayoutIdRef
(
themeDisplay
.
getLayout
().
getPrimaryKey
());
tmp
.
add
(
i
);
...
...
@@ -80,6 +82,7 @@ public class MapModulePortlet extends MVCPortlet {
JSONFactoryUtil
.
looseSerializeDeep
(
tmp
));
}
else
{
System
.
out
.
println
(
"MM: 3"
);
renderRequest
.
setAttribute
(
"allIdeas"
,
JSONFactoryUtil
.
looseSerializeDeep
(
IdeasLocalServiceUtil
.
getAllAccpetedIdeas
()));
}
...
...
Write
Preview
Supports
Markdown
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