none
This commit is contained in:
parent
e567750d6f
commit
ff6cd1f69c
|
@ -157,11 +157,10 @@ public class StorageHubServiceUtil {
|
||||||
* @param request
|
* @param request
|
||||||
* @return the VRE Folders Id
|
* @return the VRE Folders Id
|
||||||
*/
|
*/
|
||||||
public static String getVREFoldersId(long groupId, HttpServletRequest request) {
|
public static String getVREFoldersId(long groupId, HttpServletRequest request, String currentUsername) {
|
||||||
String toReturn = "";
|
String toReturn = "";
|
||||||
PortalContext pContext = PortalContext.getConfiguration();
|
|
||||||
String currentContext = PortalContext.getConfiguration().getCurrentScope(""+groupId);
|
String currentContext = PortalContext.getConfiguration().getCurrentScope(""+groupId);
|
||||||
String username = pContext.getCurrentUser(request).getUsername();
|
String username = currentUsername;
|
||||||
try {
|
try {
|
||||||
JWTToken umaToken = OIDCUmaUtil.getUMAToken(request, username, currentContext);
|
JWTToken umaToken = OIDCUmaUtil.getUMAToken(request, username, currentContext);
|
||||||
UmaJWTProvider.instance.set(umaToken.getRaw());
|
UmaJWTProvider.instance.set(umaToken.getRaw());
|
||||||
|
|
|
@ -3,7 +3,10 @@
|
||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
||||||
rel="stylesheet">
|
rel="stylesheet">
|
||||||
|
|
||||||
<% pageContext.setAttribute("currentGroup", GroupLocalServiceUtil.getGroup(PortalUtil.getScopeGroupId(request)));
|
<%
|
||||||
|
pageContext.setAttribute("currentGroup", GroupLocalServiceUtil.getGroup(PortalUtil.getScopeGroupId(request)));
|
||||||
|
pageContext.setAttribute("currentUsername", PortalUtil.getUser(request).getScreenName());
|
||||||
|
;
|
||||||
%>
|
%>
|
||||||
<script src="<%=renderRequest.getContextPath()%>/js/datatables.min.js"></script>
|
<script src="<%=renderRequest.getContextPath()%>/js/datatables.min.js"></script>
|
||||||
|
|
||||||
|
@ -42,7 +45,7 @@
|
||||||
</c:when>
|
</c:when>
|
||||||
<c:otherwise>
|
<c:otherwise>
|
||||||
<td>
|
<td>
|
||||||
<%pageContext.setAttribute("vreFoldersId", StorageHubServiceUtil.getVREFoldersId(PortalUtil.getScopeGroupId(request), request));%>
|
<%pageContext.setAttribute("vreFoldersId", StorageHubServiceUtil.getVREFoldersId(PortalUtil.getScopeGroupId(request), request, currentUsername));%>
|
||||||
<c:if test="${not empty vreFoldersId}">
|
<c:if test="${not empty vreFoldersId}">
|
||||||
<div id="vreFoldersDiv" class="ws-recents">
|
<div id="vreFoldersDiv" class="ws-recents">
|
||||||
<a
|
<a
|
||||||
|
|
Loading…
Reference in New Issue