Sunday, December 30, 2012

Gate Keepers In GWTP for Dummies


Gate Keepers In GWTP for Dummies


Gate Keeper, used to restrict the unauthorized user from the viewing the presenter.
the presenter which are supposed to be protected must use the GateKeeper implementation annotated in there proxy interface.

The implementation class must override canReveal() method of GateKeeper interface.

Annotate Proxy interface of Presenter using @UseGatekeeper with specific GateKeeper implementation class.

Provide a method in Ginjector for accessing the GateKeeper.

SampleGateKeeper getSampleGateKeeper();

Try to access http://localhost:7070/sample/#restrict URL, which will redirected to error page.

Thats it!!!

No comments:

Post a Comment