Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KnowageLabs
Knowage-Server
Commits
47cb4535
Commit
47cb4535
authored
May 27, 2022
by
Marco Balestri
Browse files
[KNOWAGE-6708] Adds support for different type of documents
parent
aa5cd2b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
knowage-core/src/main/java/it/eng/spagobi/commons/serializer/v3/MenuListJSONSerializerForREST.java
View file @
47cb4535
...
...
@@ -794,12 +794,26 @@ public class MenuListJSONSerializerForREST implements Serializer {
private
String
getDocumentLink
(
BIObject
document
)
{
String
documentLabel
=
document
.
getLabel
();
String
engineLabel
=
document
.
getEngineLabel
();
String
enginePath
;
if
(
document
.
getEngineLabel
()
!=
null
&&
document
.
getEngineLabel
().
equals
(
"knowageolapengine"
))
enginePath
=
"olap"
;
else
switch
(
engineLabel
)
{
case
"knowagedossierengine"
:
enginePath
=
"dossier"
;
break
;
case
"knowagegisengine"
:
enginePath
=
"map"
;
break
;
case
"knowagekpiengine"
:
enginePath
=
"kpi"
;
break
;
case
"knowageofficeengine"
:
enginePath
=
"office-doc"
;
break
;
default
:
enginePath
=
"document-composite"
;
return
"/document-browser/"
+
enginePath
+
"/"
+
documentLabel
;
break
;
}
return
String
.
format
(
"/%s/%s"
,
enginePath
,
documentLabel
);
}
private
void
setPropertiesForAdminWithUrlMenu
(
Menu
childElem
,
Locale
locale
,
JSONObject
temp2
,
String
path
)
throws
JSONException
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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