Package org.appng.appngizer.controller
Class SubjectController
- java.lang.Object
-
- org.appng.appngizer.controller.ControllerBase
-
- org.appng.appngizer.controller.SubjectController
-
@RestController public class SubjectController extends ControllerBase
-
-
Field Summary
-
Fields inherited from class org.appng.appngizer.controller.ControllerBase
configurer, context, coreService, databaseService, session, templateService
-
-
Constructor Summary
Constructors Constructor Description SubjectController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Subject
addGroups(SubjectImpl subject)
void
assignGroups(String name, Subject subject)
org.springframework.http.ResponseEntity<Subject>
createSubject(Subject subject)
org.springframework.http.ResponseEntity<Void>
deleteSubject(String name)
org.springframework.http.ResponseEntity<Subject>
getSubject(String name)
org.springframework.http.ResponseEntity<Subjects>
listSubjects()
org.springframework.http.ResponseEntity<Subject>
updateSubject(String name, Subject subject)
-
Methods inherited from class org.appng.appngizer.controller.ControllerBase
getDatabaseStatus, getSharedSecret, onBusinessException, onConstraintViolationException
-
-
-
-
Method Detail
-
listSubjects
@GetMapping("/subject") public org.springframework.http.ResponseEntity<Subjects> listSubjects()
-
getSubject
@GetMapping("/subject/{name:.+}") public org.springframework.http.ResponseEntity<Subject> getSubject(@PathVariable("name") String name)
-
addGroups
public Subject addGroups(SubjectImpl subject)
-
createSubject
@PostMapping("/subject") public org.springframework.http.ResponseEntity<Subject> createSubject(@RequestBody Subject subject) throws BusinessException
- Throws:
BusinessException
-
updateSubject
@PutMapping("/subject/{name:.+}") public org.springframework.http.ResponseEntity<Subject> updateSubject(@PathVariable("name") String name, @RequestBody Subject subject) throws BusinessException
- Throws:
BusinessException
-
assignGroups
public void assignGroups(String name, Subject subject) throws BusinessException
- Throws:
BusinessException
-
-