public abstract class AbstractResource extends java.lang.Object implements FF4jWebConstants
| Modifier and Type | Field and Description |
|---|---|
protected FF4j |
ff4j
Access to Features through store.
|
protected javax.ws.rs.core.Request |
request
current request.
|
protected javax.ws.rs.core.SecurityContext |
securityContext
security context is included within resources to get permissions.
|
static java.lang.ThreadLocal<FF4jSecurityContext> |
securityContextHolder
Put current security context as threadlocal to be reused by the AuthenticationProvider.
|
protected javax.ws.rs.core.UriInfo |
uriInfo
rest url.
|
HEADER_AUTHORIZATION, LOCATION, MANIFEST_FILE, MANIFEST_VERSION, OPERATION_ADDGROUP, OPERATION_CHECK, OPERATION_DISABLE, OPERATION_ENABLE, OPERATION_GRANTROLE, OPERATION_REMOVEGROUP, OPERATION_REMOVEROLE, PARAM_AUTHKEY, PARAM_END, PARAM_NBPOINTS, PARAM_START, PARAM_UID, POST_PARAMNAME_CUSTOM_PREFIX, POST_PARAMNAME_FEATURE_UID, RESOURCE_BAR, RESOURCE_CACHE, RESOURCE_FEATURES, RESOURCE_FF4J, RESOURCE_GROUPS, RESOURCE_MONITORING, RESOURCE_PIE, RESOURCE_SECURITY, RESOURCE_STORE, ROLE_READ, ROLE_WRITE| Constructor and Description |
|---|
AbstractResource() |
| Modifier and Type | Method and Description |
|---|---|
FeatureStore |
getFeatureStore()
Getter accessor for attribute 'store'.
|
EventRepository |
getRepo()
Getter accessor for attribute 'repo'.
|
void |
holdSecurityContext()
Return custom FF4J Security Context.
|
@Context protected FF4j ff4j
@Context protected javax.ws.rs.core.UriInfo uriInfo
@Context protected javax.ws.rs.core.Request request
@Context protected javax.ws.rs.core.SecurityContext securityContext
public static final java.lang.ThreadLocal<FF4jSecurityContext> securityContextHolder
public EventRepository getRepo()
public FeatureStore getFeatureStore()
public void holdSecurityContext()
Copyright © 2013-2015 Ff4J. All Rights Reserved.