@RolesAllowed(value="WRITE") public class FeatureResource extends AbstractResource
ff4j, request, securityContext, uriInfo| Constructor and Description |
|---|
FeatureResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteFeature(String id)
Delete feature by its id.
|
javax.ws.rs.core.Response |
operationAddGroup(String id,
String groupName)
Convenient method to update partially the feature: Adding to a group
|
javax.ws.rs.core.Response |
operationDisable(String id)
Convenient method to update partially the feature: Here disabling
|
javax.ws.rs.core.Response |
operationEnable(String id)
Convenient method to update partially the feature: Here enabling
|
javax.ws.rs.core.Response |
operationGrantRole(String id,
String role)
Convenient method to update partially the feature: Here grant a role
|
javax.ws.rs.core.Response |
operationRemoveGroup(String id,
String groupName)
Convenient method to update partially the feature: Removing from a group
|
javax.ws.rs.core.Response |
operationRemoveRole(String id,
String role)
Convenient method to update partially the feature: Here removing a role
|
javax.ws.rs.core.Response |
read(String id)
Allows to retrieve feature by its id.
|
javax.ws.rs.core.Response |
upsertFeature(javax.ws.rs.core.HttpHeaders headers,
String id,
FeatureApiBean fApiBean)
Create the feature if not exist or update it
|
getFeatureStore, getPropertyStore, getRepo, setPropertyStore@RolesAllowed(value="READ") public javax.ws.rs.core.Response read(String id)
featId - target feature identifier@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response upsertFeature(@Context javax.ws.rs.core.HttpHeaders headers, String id, FeatureApiBean fApiBean)
headers - current request headerdata - feature serialized as JSON@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response deleteFeature(String id)
@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response operationEnable(String id)
@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response operationDisable(String id)
@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response operationGrantRole(String id, String role)
@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response operationRemoveRole(String id, String role)
@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response operationAddGroup(String id, String groupName)
@RolesAllowed(value="WRITE") public javax.ws.rs.core.Response operationRemoveGroup(String id, String groupName)
Copyright © 2013–2022 FF4J. All rights reserved.