Hello,
Here are some ideas that could help you find out how to solve this.
Create an object in the database that would map email address to it's
role. Something similar to:
UserEntity
User user; // or email that is logge
String role; // role name
So the information in this table may look similar to:
user: student...@gmail.com, Student
user: mr.simp...@gmail.com, Faculty
user: facultyad...@gmail.com, Admin
You can add this information through some admin page or manually from
GAE's admin panel.
After you have this information for the current user, then it's not so
hard to implement custom rendering logic for rendering only required fields
by using the role name. For server side security you can use AOP
interceptors to detect whether the requested action can be executed by
that user.
Hope this information will help you. Good luck.
Regards
Miroslav
Jeevan wrote:
hello all,
am developing app called cloud based teaching system.
Initially it accepts the google account user name and password for the
user.
I am thinking of provide 3 different level of authentication.
1)Student
2)Faculty
3)Admin
Admin can add faculty and remove faculty and can do all maintaince
stufss.
Faculty can add and remove students,blogs,docs,groups.
Student can only view blogs and docs.
Now is it possible to take decision based on their email id's.
if yes then how to do it.
am doing this as ma final year engineering project.
please support me.....
--
You received this message because you are subscribed to the Google Groups "Google
App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.