@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) |
getDatabaseStatus, getSharedSecret, onBusinessException
@RequestMapping(value="/application/{app}/role", method=GET) public org.springframework.http.ResponseEntity<Roles> listRoles(@PathVariable(value="app") String app)
@RequestMapping(value="/application/{app}/role/{name}", method=GET) public org.springframework.http.ResponseEntity<Role> getRole(@PathVariable(value="app") String app, @PathVariable(value="name") String name)
@RequestMapping(value="/application/{app}/role", method=POST) public org.springframework.http.ResponseEntity<Role> createRole(@PathVariable(value="app") String app, @RequestBody Role role)
@RequestMapping(value="/application/{app}/role/{name}", method=PUT) public org.springframework.http.ResponseEntity<Role> updateRole(@PathVariable(value="app") String app, @PathVariable(value="name") String name, @RequestBody Role role)
@RequestMapping(value="/application/{app}/role/{name}", method=DELETE) public org.springframework.http.ResponseEntity<Void> deleteRole(@PathVariable(value="app") String app, @PathVariable(value="name") String name) throws BusinessException
BusinessException
Copyright © 2011–2017 aiticon GmbH. All rights reserved.