@RestController
@RequestMapping(value="/ff4j/store/features/{uid}")
public class FeatureResource
extends Object
| Constructor and Description |
|---|
FeatureResource() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity |
addGroupToFeature(String featureUID,
String groupName) |
org.springframework.http.ResponseEntity<Boolean> |
createOrUpdateFeature(String featureUID,
FeatureApiBean featureApiBean) |
org.springframework.http.ResponseEntity<?> |
deleteFeature(String featureUID) |
org.springframework.http.ResponseEntity |
disableFeature(String featureUID) |
org.springframework.http.ResponseEntity<?> |
enableFeature(String featureUID) |
FeatureApiBean |
getFeatureByUID(String featureUID) |
org.springframework.http.ResponseEntity |
grantRoleToFeature(String featureUID,
String role) |
org.springframework.http.ResponseEntity |
removeGroupFromFeature(String featureUID,
String groupName) |
org.springframework.http.ResponseEntity |
removeRoleFromFeature(String featureUID,
String role) |
@RequestMapping(method=GET,
produces="application/json")
public FeatureApiBean getFeatureByUID(@PathVariable(value="uid")
String featureUID)
@RequestMapping(method=PUT,
consumes="application/json",
produces="application/json")
public org.springframework.http.ResponseEntity<Boolean> createOrUpdateFeature(@PathVariable(value="uid")
String featureUID,
@RequestBody
FeatureApiBean featureApiBean)
@RequestMapping(method=DELETE)
public org.springframework.http.ResponseEntity<?> deleteFeature(@PathVariable(value="uid")
String featureUID)
@RequestMapping(value="/enable",
method=POST)
public org.springframework.http.ResponseEntity<?> enableFeature(@PathVariable(value="uid")
String featureUID)
@RequestMapping(value="/disable",
method=POST)
public org.springframework.http.ResponseEntity disableFeature(@PathVariable(value="uid")
String featureUID)
@RequestMapping(value="/grantrole/{role}",
method=POST)
public org.springframework.http.ResponseEntity grantRoleToFeature(@PathVariable(value="uid")
String featureUID,
@PathVariable(value="role")
String role)
@RequestMapping(value="/removerole/{role}",
method=POST)
public org.springframework.http.ResponseEntity removeRoleFromFeature(@PathVariable(value="uid")
String featureUID,
@PathVariable(value="role")
String role)
@RequestMapping(value="/addGroup/{groupName}",
method=POST)
public org.springframework.http.ResponseEntity addGroupToFeature(@PathVariable(value="uid")
String featureUID,
@PathVariable(value="groupName")
String groupName)
Copyright © 2013–2016 FF4J. All rights reserved.