public class PlaceRequestSecurityFramework extends Object
SecurityFramework which binds
SecurityContexts to parametrized
com.gwtplatform.mvp.client.proxy.PlaceRequests.
This kind of security framework comes into play when the security context does *not* depend solely on the
name token, but on a combination of name token and place request parameter. A typical example is the
HostJVMPresenter where the security context depends on the selected host. Thus the security context is
bound to #host-jvms;host=slave (instead of #host-jvms).| Constructor and Description |
|---|
PlaceRequestSecurityFramework(SecurityFramework securityFramework,
AccessControlRegistry accessControlMetaData,
com.gwtplatform.mvp.shared.proxy.TokenFormatter tokenFormatter) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCurrentContext(com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest) |
void |
update(com.google.gwt.event.shared.HasHandlers eventSource,
com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)
Loads a previously created security context from the internal cache or creates a one.
|
@Inject public PlaceRequestSecurityFramework(SecurityFramework securityFramework, AccessControlRegistry accessControlMetaData, com.gwtplatform.mvp.shared.proxy.TokenFormatter tokenFormatter)
public void addCurrentContext(com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)
public void update(com.google.gwt.event.shared.HasHandlers eventSource,
com.gwtplatform.mvp.shared.proxy.PlaceRequest placeRequest)
SecurityContextChangedEvent
is fired.eventSource - the source for the SecurityContextChangedEventplaceRequest - the place requestCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.