costimuraru / tadedon

Automatically exported from code.google.com/p/tadedon
0 stars 0 forks source link

new ncdc-gwt-rpc module supporting guice on server side #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It should also contain support for parameters annotated with:

@RequestSequence - may be useful for logging
@CookieId - unique session Id copied as one of parameter for security see gwt 
security for details

Original issue reported on code.google.com by hsh...@gmail.com on 2 Jul 2010 at 2:37

GoogleCodeExporter commented 8 years ago
Something like:

public interface TransferManager {

  @RolesAllowed("accountant")
  private void transferMoney(String sourceAccount, String destinationAccount);

}

public interface TransferManagerService { //RPC server

  private void transferMoney
                            (@RequestSequence requestSequence,
                             @SessionId String sessionId,
                             String sourceAccount,
                             String destinationAccount);

}

Two first parameters should be passed transparently and used only for logging 
(see MDC and NDC of log4j and logback) and validation.

Original comment by hsh...@gmail.com on 2 Jul 2010 at 2:48

GoogleCodeExporter commented 8 years ago

Original comment by mori...@xemantic.com on 27 Mar 2012 at 10:26