@RolesAllowed(value="WRITE") public class FeatureResource extends AbstractResource
ff4j, request, securityContext, securityContextHolder, uriInfoHEADER_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 |
|---|
FeatureResource()
Defaut constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteFeature(java.lang.String id)
Delete feature by its id.
|
javax.ws.rs.core.Response |
operationAddGroup(java.lang.String id,
java.lang.String groupName)
Convenient method to update partially the feature: Adding to a group
|
javax.ws.rs.core.Response |
operationDisable(java.lang.String id)
Convenient method to update partially the feature: Here disabling
|
javax.ws.rs.core.Response |
operationEnable(java.lang.String id)
Convenient method to update partially the feature: Here enabling
|
javax.ws.rs.core.Response |
operationGrantRole(java.lang.String id,
java.lang.String role)
Convenient method to update partially the feature: Here grant a role
|
javax.ws.rs.core.Response |
operationRemoveGroup(java.lang.String id,
java.lang.String groupName)
Convenient method to update partially the feature: Removing from a group
|
javax.ws.rs.core.Response |
operationRemoveRole(java.lang.String id,
java.lang.String role)
Convenient method to update partially the feature: Here removing a role
|
javax.ws.rs.core.Response |
read(java.lang.String id)
Allows to retrieve feature by its id.
|
javax.ws.rs.core.Response |
upsertFeature(javax.ws.rs.core.HttpHeaders headers,
java.lang.String id,
FeatureApiBean fApiBean)
Create the feature if not exist or update it
|
getFeatureStore, getRepo, holdSecurityContext@RolesAllowed(value="READ") public javax.ws.rs.core.Response read(java.lang.String id)
featId - target feature identifier@RolesAllowed(value="WRITE")
public javax.ws.rs.core.Response upsertFeature(@Context
javax.ws.rs.core.HttpHeaders headers,
java.lang.String id,
FeatureApiBean fApiBean)
headers - current request headerdata - feature serialized as JSON@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response deleteFeature(java.lang.String id)
@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response operationEnable(java.lang.String id)
@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response operationDisable(java.lang.String id)
@RolesAllowed(value="WRITE")
public javax.ws.rs.core.Response operationGrantRole(java.lang.String id,
java.lang.String role)
@RolesAllowed(value="WRITE")
public javax.ws.rs.core.Response operationRemoveRole(java.lang.String id,
java.lang.String role)
@RolesAllowed(value="WRITE")
public javax.ws.rs.core.Response operationAddGroup(java.lang.String id,
java.lang.String groupName)
@RolesAllowed(value="WRITE")
public javax.ws.rs.core.Response operationRemoveGroup(java.lang.String id,
java.lang.String groupName)
Copyright © 2013-2015 Ff4J. All Rights Reserved.