← Back to team overview

mugle-dev team mailing list archive

[Bug 730086] Re: Add Serializable classes of model to be passed by GWT RPC

 

I was looking at creating custom annotations, that might come in handy to create this generic form.
The link below gives examples of how this can be used:

http://download.oracle.com/javase/1.5.0/docs/guide/language/annotations.html

I would think that we should have an annotation called the @UserLevel
that takes in the Role enum (annotations are allowed to only have
primitives, String, Class, enum and array of those types).

So depending on which Role it is, going from User -> Developer -> Admin,
the info classes can be generated on the run, without us manually having
to do this for every field.

If this seems to be a better approach, please let me know so that I can
start implementing this.

-- 
You received this bug notification because you are a member of MUGLE
Developers, which is subscribed to MUGLE.
https://bugs.launchpad.net/bugs/730086

Title:
  Add Serializable classes of model to be passed by GWT RPC

Status in Melbourne University Game-based Learning Environment:
  New

Bug description:
  Write serializable versions of each of the model classes to be passed
  over by GWT RPC so they can be accessed by the client side of the
  platform;  Should only have getters (and setters ?), and should only
  contain information the client side should be able to see (so there'll
  need to be 2 versions of some of the model classes according to the
  public/private nature denoted in the Platform View)



References