Package 

Class GroupResource

  • All Implemented Interfaces:

    @RestController()@RequestMapping(value = {"/api/ff4j/store/groups/{groupName}"}) 
    public final class GroupResource
    
                        

    Created by Paul

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final GroupServices groupServices
    • Constructor Summary

      Constructors 
      Constructor Description
      GroupResource(GroupServices groupServices)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final GroupServices getGroupServices()
      final Collection<FeatureApiBean> getFeaturesByGroup(@PathVariable(value = "groupName") String groupName)
      final Unit enableGroup(@PathVariable(value = "groupName") String groupName)
      final Unit disableGroup(@PathVariable(value = "groupName") String groupName)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GroupResource

        GroupResource(GroupServices groupServices)
    • Method Detail

      • getFeaturesByGroup

        @GetMapping(produces = {"application/json"}) final Collection<FeatureApiBean> getFeaturesByGroup(@PathVariable(value = "groupName") String groupName)
      • enableGroup

        @PostMapping(value = {"/enable"}, produces = {"application/json"}) final Unit enableGroup(@PathVariable(value = "groupName") String groupName)
      • disableGroup

        @PostMapping(value = {"/disable"}, produces = {"application/json"}) final Unit disableGroup(@PathVariable(value = "groupName") String groupName)