Commit 4392b123 by gechengyang

AA

parent 18bdfe40
......@@ -18,6 +18,10 @@ public class NoUiRequest {
private Map<String, ?> dataMap = new HashMap<String, Object>();
private Map<String, ?> saveDisplayMap = new HashMap<String, Object>();
public NoUiRequest() {
}
public NoUiRequest(HttpServletRequest request, String mappingUrl, Map<String, ?> requestData) {
String tokenId = request.getHeader("token");
String userId = request.getHeader("userId");
......
......@@ -14,6 +14,7 @@ import org.sss.common.model.IFactory;
import org.sss.common.model.IFilter;
import org.sss.common.model.II18n;
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.NoUiPresentation;
import org.sss.util.ContainerUtils;
......@@ -52,7 +53,8 @@ public class NoUiUtils {
log.debug("serviceName:" + str1);
if (!ContainerUtils.isEmpty(str1)) {
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];
log.debug("userName:" + str2);
localContext.setAuth(new DefaultLoginContext(str2));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment