Hello,
I am extending IDACall to make sure my role based authorization can work with Spring Security on the client-side. Pretty much as explained in the Getting Started Guide I do this:
But my compiler in Eclipse says (smartgwtee2.3 evaluation):
Is this removed from the IDACall class? How should I work-around this? Is the Getting Started Guide perhaps not up to date?
I am extending IDACall to make sure my role based authorization can work with Spring Security on the client-side. Pretty much as explained in the Getting Started Guide I do this:
Code:
package ....; import java.io.IOException; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.isomorphic.rpc.RPCManager; import com.isomorphic.servlet.IDACall; import com.isomorphic.servlet.RequestContext; public class SecureIDACall extends IDACall { public void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //TODO derive this from Spring Security Boolean b = true; //TODO derive this from Spring Security String roles = "ROLE_ADMINISTRATOR, ROLE_USER"; if (roles != null) { try { RequestContext context = RequestContext.instance(this, request, response); RPCManager rpc = new RPCManager(request, response); rpc.setAuthenticated(b); rpc.setUserRoles(roles); // call processRPCTransaction() to iterate through all RPCRequests and // DSRequests and execute them processRPCTransaction(rpc, context); } catch (Throwable e) { handleError(response, e); } } else { super.processRequest(request, response); } } }
Code:
The method processRPCTransaction(RPCManager, RequestContext) is undefined for the type SecureIDACall SecureIDACall.java /Persons/src/nl/sytematic/projects/Persons/server/security line 41 Java Problem
Comment