GAE: TidBits on Security

GAE
TidBits on Security web.xml can be use to define security for an application. security-constraint section is used to define constraints. The following XML is used to prevent /prefs from accessing without user login <pre> <security-constraint> <web-resource-collection> <web-resource-name>prefs</web-resource-name> <url-pattern>/prefs</url-pattern> </web-resource-collection> <auth-constraint> <role-name>*</role-name> </auth-constraint> </security-constraint> </pre> A... more →
Posted in: GAE

GAE : Tidbits on datastore

GAE
Google App Engine Datastore Datastore is used to store Entities. Entities belong to a Kind, which is used to group related entities. Kind  is like a Table in relation database Entity is like a row in relational database. Each Entity has a Key which is unique across all entities. General components of a Key :  {Name of the Kind} + {App assigned String or a number} How a Key is generated Get handle to the  DatastoreService DatastoreService ds = DatastoreServiceFactory.getDatastoreService; Create... more →
Posted in: GAE

GAE: Tidbits on UserService

GAE
GAE : UserService Google UserService is used to check whether the user has logged in and also to get the details of the logged in user. UserServiceFactory is a Factory class to to get handle to a UserService UserService provide information to force the user to login, logout and also to get the details of the user. userService.getCurrentUser() =>  gives information about the current user. The createLoginURL() and createLogoutURL() methods of the UserService generate URLs that go to Google Accounts     import... more →
Posted in: GAE