Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions java/src/main/java/com/genexus/webpanels/GXWebObjectStub.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
14 changes: 12 additions & 2 deletions java/src/main/java/com/genexus/webpanels/GXWebProcedure.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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)
{
Expand Down