Gate Keepers In GWTP for Dummies
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