diff --git a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java index a6169d94f..3b1e16bf7 100644 --- a/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java +++ b/java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java @@ -28,12 +28,27 @@ public abstract class GXWebObjectStub extends HttpServlet protected abstract String IntegratedSecurityPermissionPrefix(); protected abstract String EncryptURLParameters(); + protected ModelContext context; + protected int remoteHandle = -1; + protected transient LocalUtil localUtil; + protected static final int SECURITY_GXOBJECT = 3; protected static final int SECURITY_HIGH = 2; protected static final int SECURITY_LOW = 1; private static final int HTTP_RESPONSE_BUFFER_SIZE = 131072; + public GXWebObjectStub() + { + } + + public GXWebObjectStub(int remoteHandle , ModelContext context) + { + this.remoteHandle = remoteHandle; + this.context = context; + localUtil = Application.getConnectionManager().createUserInformation(Namespace.getNamespace(context.getNAME_SPACE())).getLocalUtil(); + } + private void dumpRequestInfo(HttpContext httpContext) { IHttpServletRequest request = httpContext.getRequest(); diff --git a/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java b/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java index d07de2a39..c83646266 100644 --- a/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java +++ b/java/src/main/java/com/genexus/webpanels/GXWebProcedure.java @@ -21,6 +21,8 @@ public abstract class GXWebProcedure extends GXWebObjectBase { private static final ILogger logger = LogManager.getLogger(GXWebProcedure.class); + + public static final int IN_NEW_UTL = -2; protected abstract void initialize(); @@ -47,11 +49,19 @@ public GXWebProcedure(WebServiceContext wsContext) logger.error("Could not initialize Web Service", e); } } - + public GXWebProcedure(int remoteHandle , ModelContext context) { + this(false, remoteHandle ,context); + } + + public GXWebProcedure(boolean inNewUTL, int remoteHandle , ModelContext context) { super(remoteHandle ,context); - } + + if(inNewUTL) { + this.remoteHandle = IN_NEW_UTL; + } + } protected void initState(ModelContext context, UserInformation ui) {