public class PlaceWithGatekeeperWithParams extends PlaceImpl
PlaceWithGatekeeper
which uses a GatekeeperWithParams
and an array of parameters to
protect the Place
.Constructor and Description |
---|
PlaceWithGatekeeperWithParams(String[] nameTokens,
GatekeeperWithParams gatekeeper,
String[] params) |
PlaceWithGatekeeperWithParams(String nameToken,
GatekeeperWithParams gatekeeper,
String[] params) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReveal()
Checks if the associated presenter can be revealed.
|
equals, getNameToken, getNameTokens, hashCode, matchesRequest, toString
public PlaceWithGatekeeperWithParams(String nameToken, GatekeeperWithParams gatekeeper, String[] params)
public PlaceWithGatekeeperWithParams(String[] nameTokens, GatekeeperWithParams gatekeeper, String[] params)
public boolean canReveal()
Place
true
,
but subclasses should override this and check to make sure the current user
has the privileges to see the place. Make sure the places you request in
PlaceManager.revealDefaultPlace()
and
PlaceManager.revealErrorPlace(String)
can reveal themselves,
otherwise your application could get into an infinite loop.Copyright © 2010–2014 Arcbees. All rights reserved.