public class SecurityFrameworkImpl extends Object implements SecurityFramework, org.jboss.ballroom.client.rbac.SecurityContextChangedHandler
SecurityContext per placePlaceManager| Modifier and Type | Field and Description |
|---|---|
protected AccessControlRegistry |
accessControlMetaData |
protected Map<String,org.jboss.ballroom.client.rbac.SecurityContext> |
contextMapping |
protected CoreGUIContext |
coreGUIContext |
protected DispatchAsync |
dispatcher |
protected ContextKeyResolver |
keyResolver |
protected CoreGUIContext |
statementContext |
| Constructor and Description |
|---|
SecurityFrameworkImpl(AccessControlRegistry accessControlMetaData,
DispatchAsync dispatcher,
CoreGUIContext statementContext,
BootstrapContext bootstrap,
com.google.web.bindery.event.shared.EventBus eventBus,
CoreGUIContext coreGUIContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
createSecurityContext(String id,
com.google.gwt.user.client.rpc.AsyncCallback<org.jboss.ballroom.client.rbac.SecurityContext> callback)
Create a security context for a particular place.
|
void |
createSecurityContext(String id,
Set<String> requiredResources,
boolean recursive,
com.google.gwt.user.client.rpc.AsyncCallback<org.jboss.ballroom.client.rbac.SecurityContext> callback)
Create a security context for a particular place.
|
void |
flushContext(String nameToken)
Removes a context and forces re-creation
|
Set<String> |
getFilteredDMRNames(String resourceAddress,
List<String> formItemNames,
org.jboss.ballroom.client.rbac.SecurityContext securityContext) |
Set<String> |
getFilteredJavaNames(Class<?> type,
org.jboss.ballroom.client.rbac.SecurityContext securityContext) |
Set<String> |
getFilteredJavaNames(Class<?> type,
String resourceAddress,
org.jboss.ballroom.client.rbac.SecurityContext securityContext) |
Set<String> |
getReadOnlyDMRNames(String resourceAddress,
List<String> formItemNames,
org.jboss.ballroom.client.rbac.SecurityContext securityContext) |
Set<String> |
getReadOnlyJavaNames(Class<?> type,
org.jboss.ballroom.client.rbac.SecurityContext securityContext) |
Set<String> |
getReadOnlyJavaNames(Class<?> type,
String resourceAddress,
org.jboss.ballroom.client.rbac.SecurityContext securityContext) |
org.jboss.ballroom.client.rbac.SecurityContext |
getSecurityContext() |
org.jboss.ballroom.client.rbac.SecurityContext |
getSecurityContext(String id)
Get the security context associated with the current
com.gwtplatform.mvp.client.proxy.PlaceRequest |
boolean |
hasContext(String id)
Check wether or not a context exists.
|
void |
onSecurityContextChanged(org.jboss.ballroom.client.rbac.SecurityContextChangedEvent event) |
void |
registerWidget(String id,
org.jboss.ballroom.client.rbac.SecurityContextAware widget) |
void |
unregisterWidget(String id) |
protected final AccessControlRegistry accessControlMetaData
protected final DispatchAsync dispatcher
protected final CoreGUIContext statementContext
protected final CoreGUIContext coreGUIContext
protected final ContextKeyResolver keyResolver
@Inject public SecurityFrameworkImpl(AccessControlRegistry accessControlMetaData, DispatchAsync dispatcher, CoreGUIContext statementContext, BootstrapContext bootstrap, com.google.web.bindery.event.shared.EventBus eventBus, CoreGUIContext coreGUIContext)
public org.jboss.ballroom.client.rbac.SecurityContext getSecurityContext()
getSecurityContext in interface org.jboss.ballroom.client.rbac.SecurityServicepublic boolean hasContext(String id)
SecurityFrameworkhasContext in interface SecurityFrameworkpublic org.jboss.ballroom.client.rbac.SecurityContext getSecurityContext(String id)
SecurityFrameworkcom.gwtplatform.mvp.client.proxy.PlaceRequestgetSecurityContext in interface SecurityFrameworkPlaceManagerpublic void registerWidget(String id, org.jboss.ballroom.client.rbac.SecurityContextAware widget)
registerWidget in interface org.jboss.ballroom.client.rbac.SecurityServicepublic void unregisterWidget(String id)
unregisterWidget in interface org.jboss.ballroom.client.rbac.SecurityServicepublic void onSecurityContextChanged(org.jboss.ballroom.client.rbac.SecurityContextChangedEvent event)
onSecurityContextChanged in interface org.jboss.ballroom.client.rbac.SecurityContextChangedHandlerpublic void createSecurityContext(String id, com.google.gwt.user.client.rpc.AsyncCallback<org.jboss.ballroom.client.rbac.SecurityContext> callback)
SecurityFrameworkAccessControl annotation.createSecurityContext in interface SecurityFrameworkpublic void createSecurityContext(String id, Set<String> requiredResources, boolean recursive, com.google.gwt.user.client.rpc.AsyncCallback<org.jboss.ballroom.client.rbac.SecurityContext> callback)
SecurityFrameworkcreateSecurityContext in interface SecurityFrameworkrequiredResources - a list of resources to operate onpublic void flushContext(String nameToken)
SecurityFrameworkflushContext in interface SecurityFrameworkpublic Set<String> getReadOnlyJavaNames(Class<?> type, org.jboss.ballroom.client.rbac.SecurityContext securityContext)
getReadOnlyJavaNames in interface org.jboss.ballroom.client.rbac.SecurityServicepublic Set<String> getReadOnlyJavaNames(Class<?> type, String resourceAddress, org.jboss.ballroom.client.rbac.SecurityContext securityContext)
getReadOnlyJavaNames in interface org.jboss.ballroom.client.rbac.SecurityServicepublic Set<String> getFilteredJavaNames(Class<?> type, String resourceAddress, org.jboss.ballroom.client.rbac.SecurityContext securityContext)
getFilteredJavaNames in interface org.jboss.ballroom.client.rbac.SecurityServicepublic Set<String> getFilteredJavaNames(Class<?> type, org.jboss.ballroom.client.rbac.SecurityContext securityContext)
getFilteredJavaNames in interface org.jboss.ballroom.client.rbac.SecurityServicepublic Set<String> getReadOnlyDMRNames(String resourceAddress, List<String> formItemNames, org.jboss.ballroom.client.rbac.SecurityContext securityContext)
getReadOnlyDMRNames in interface org.jboss.ballroom.client.rbac.SecurityServiceCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.