@RestController public class RoleController extends ControllerBase
Constructor and Description |
---|
RoleController() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPermissionsAndSave(String app,
Role role,
RoleImpl appRole) |
org.springframework.http.ResponseEntity<Role> |
createRole(String app,
Role role) |
org.springframework.http.ResponseEntity<Void> |
deleteRole(String app,
String name) |
org.springframework.http.ResponseEntity<Role> |
getRole(String app,
String name) |
org.springframework.http.ResponseEntity<Roles> |
listRoles(String app) |
org.springframework.http.ResponseEntity<Role> |
updateRole(String app,
String name,
Role role) |
destroy, getDatabaseStatus, getSharedSecret, initMessaging, onBusinessException, updateSiteMap
@GetMapping(value="/application/{app}/role") public org.springframework.http.ResponseEntity<Roles> listRoles(@PathVariable(value="app") String app)
@GetMapping(value="/application/{app}/role/{name}") public org.springframework.http.ResponseEntity<Role> getRole(@PathVariable(value="app") String app, @PathVariable(value="name") String name)
@PostMapping(value="/application/{app}/role") public org.springframework.http.ResponseEntity<Role> createRole(@PathVariable(value="app") String app, @RequestBody Role role)
@PutMapping(value="/application/{app}/role/{name}") public org.springframework.http.ResponseEntity<Role> updateRole(@PathVariable(value="app") String app, @PathVariable(value="name") String name, @RequestBody Role role)
@DeleteMapping(value="/application/{app}/role/{name}") public org.springframework.http.ResponseEntity<Void> deleteRole(@PathVariable(value="app") String app, @PathVariable(value="name") String name) throws BusinessException
BusinessException
Copyright © 2011–2020 aiticon GmbH. All rights reserved.