I am using GWT (and GWT-Plateform) and GAE, and I would like to have an Admin and a Normal-mode of my application.
I read this post https://turbomanage.wordpress.com/2009/11/19/tips-on-organizing-gwt-modules/#comment-5064 and I would like to see a complete project structure of an application using an Admin and a Normal-mode application. Do you know any sample code of this case (with GWT and GAE if possible…and with GWTP would be perfect) ?
In the link, M. Chandler says that I could have 3 modules (admin, app, common) and just 2 entry point (admin and app). Admin and app inherits common. But I do not know more stuffs such as :
– I am using “Client Bundle” so will it be possible to have my resource folder just inside the “common module”. Will it works ? Do I need just one CSS for the 2 modules (admin and normal-mode) ?
– Does my whole domain model needs to be in the common module ?
Any recommendation about how to structure a code with an Admin module using GWT is welcome.
My current problem is that I do not know how to do this with Eclipse (should I copy paste the “client”, “server”, “share” folders of the “app” package and to add them in a new package named “admin” and then to delete and modify some files ? It seems complicated…or is there just some minimal files and configurations to do ?)
Thanks you,
It’s quite easy…
check this link: https://developers.google.com/appengine/docs/java/config/webxml#Security_and_Authentication
You need two entry points.
Everything for admin mode is unter the path /admin/…
In the web.xml you configure now the security constraints in web.xml:
For the user registration and login control you can use the USERS-Api from Google:
https://developers.google.com/appengine/docs/java/users/overview