Package org.appng.appngizer.controller
Class GroupController
- java.lang.Object
-
- org.appng.appngizer.controller.ControllerBase
-
- org.appng.appngizer.controller.GroupController
-
@RestController public class GroupController extends ControllerBase
-
-
Field Summary
-
Fields inherited from class org.appng.appngizer.controller.ControllerBase
configurer, context, coreService, databaseService, session, templateService
-
-
Constructor Summary
Constructors Constructor Description GroupController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRoles(GroupImpl group, Group fromDomain)
org.springframework.http.ResponseEntity<Group>
createGroup(Group group)
org.springframework.http.ResponseEntity<Void>
deleteGroup(String name)
org.springframework.http.ResponseEntity<Group>
getGroup(String name)
org.springframework.http.ResponseEntity<Groups>
listGroups()
org.springframework.http.ResponseEntity<Group>
updateGroup(String name, Group group)
-
Methods inherited from class org.appng.appngizer.controller.ControllerBase
getDatabaseStatus, getSharedSecret, onBusinessException, onConstraintViolationException
-
-
-
-
Method Detail
-
listGroups
@GetMapping("/group") public org.springframework.http.ResponseEntity<Groups> listGroups()
-
getGroup
@GetMapping("/group/{name:.+}") public org.springframework.http.ResponseEntity<Group> getGroup(@PathVariable("name") String name)
-
createGroup
@PostMapping("/group") public org.springframework.http.ResponseEntity<Group> createGroup(@RequestBody Group group)
-
updateGroup
@PutMapping("/group/{name:.+}") public org.springframework.http.ResponseEntity<Group> updateGroup(@PathVariable("name") String name, @RequestBody Group group)
-
-