|
|
|
@ -110,10 +110,19 @@ public class PortalContextTreeProvider implements ContextTreeProvider {
|
|
|
|
|
currUser);
|
|
|
|
|
|
|
|
|
|
if (infraNode != null) {
|
|
|
|
|
String scopeGroup="";
|
|
|
|
|
if(gCubeGroup.getGroupName().toUpperCase().endsWith(" GATEWAY")){
|
|
|
|
|
int l=gCubeGroup.getGroupName().length();
|
|
|
|
|
scopeGroup=gCubeGroup.getGroupName().substring(0, l-8);
|
|
|
|
|
} else {
|
|
|
|
|
scopeGroup=gCubeGroup.getGroupName();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StringBuilder gatewayScope=new StringBuilder();
|
|
|
|
|
gatewayScope.append(infrastructureScope);
|
|
|
|
|
gatewayScope.append("/");
|
|
|
|
|
gatewayScope.append(gCubeGroup.getGroupName());
|
|
|
|
|
gatewayScope.append(scopeGroup);
|
|
|
|
|
|
|
|
|
|
ScopeDescriptor infraNodeScopeDescriptor = createRelativeInfraNode(infraNode, gatewayScope.toString());
|
|
|
|
|
if (gatewayChildren != null) {
|
|
|
|
|
gatewayChildren.addFirst(infraNodeScopeDescriptor);
|
|
|
|
@ -163,10 +172,17 @@ public class PortalContextTreeProvider implements ContextTreeProvider {
|
|
|
|
|
GCubeUser currUser = pContext.getCurrentUser(request);
|
|
|
|
|
String portalScope = pContext.getCurrentScope(currentSiteGroupId + "");
|
|
|
|
|
|
|
|
|
|
String scopeGroup="";
|
|
|
|
|
if(gatewayName.toUpperCase().endsWith(" GATEWAY")){
|
|
|
|
|
int l=gatewayName.length();
|
|
|
|
|
scopeGroup=gatewayName.substring(0, l-8);
|
|
|
|
|
} else {
|
|
|
|
|
scopeGroup=gatewayName;
|
|
|
|
|
}
|
|
|
|
|
StringBuilder gatewayScope=new StringBuilder();
|
|
|
|
|
gatewayScope.append(portalScope);
|
|
|
|
|
gatewayScope.append("/");
|
|
|
|
|
gatewayScope.append(gatewayName);
|
|
|
|
|
gatewayScope.append(scopeGroup);
|
|
|
|
|
|
|
|
|
|
InfraNode infraNode = BuildInfraNode.build(portalScope);
|
|
|
|
|
|
|
|
|
|