Package pro.taskana.common.rest
Class TaskanaEngineController
- java.lang.Object
-
- pro.taskana.common.rest.TaskanaEngineController
-
@RestController @EnableHypermediaSupport(type=HAL) public class TaskanaEngineController extends Object
Controller for TaskanaEngine related tasks.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<VersionRepresentationModel>currentVersion()Get the current application version.org.springframework.http.ResponseEntity<List<String>>getClassificationCategories(String type)This endpoint retrieves the configured classification categories for a specific classification type.org.springframework.http.ResponseEntity<Map<String,List<String>>>getClassificationCategoriesByTypeMap()This endpoint retrieves all configured classification categories grouped by each classification type.org.springframework.http.ResponseEntity<List<String>>getClassificationTypes()This endpoint retrieves the configured classification types.org.springframework.http.ResponseEntity<TaskanaUserInfoRepresentationModel>getCurrentUserInfo()This endpoint computes all information of the current user.org.springframework.http.ResponseEntity<List<String>>getDomains()This endpoint retrieves all configured Domains.org.springframework.http.ResponseEntity<Boolean>getIsHistoryProviderEnabled()This endpoint checks if the history module is in use.
-
-
-
Method Detail
-
getDomains
@GetMapping(path="/api/v1/domains") public org.springframework.http.ResponseEntity<List<String>> getDomains()
This endpoint retrieves all configured Domains.- Returns:
- An array with the domain-names as strings
-
getClassificationCategories
@GetMapping(path="/api/v1/classification-categories") public org.springframework.http.ResponseEntity<List<String>> getClassificationCategories(@RequestParam(required=false) String type)
This endpoint retrieves the configured classification categories for a specific classification type.- Parameters:
type- the classification type whose categories should be determined. If not specified all classification categories will be returned.- Returns:
- the classification categories for the requested type.
-
getClassificationTypes
@GetMapping(path="/api/v1/classification-types") public org.springframework.http.ResponseEntity<List<String>> getClassificationTypes()
This endpoint retrieves the configured classification types.- Returns:
- the configured classification types.
-
getClassificationCategoriesByTypeMap
@GetMapping(path="/api/v1/classifications-by-type") public org.springframework.http.ResponseEntity<Map<String,List<String>>> getClassificationCategoriesByTypeMap()
This endpoint retrieves all configured classification categories grouped by each classification type.- Returns:
- the configured classification categories
-
getCurrentUserInfo
@GetMapping(path="/api/v1/current-user-info") public org.springframework.http.ResponseEntity<TaskanaUserInfoRepresentationModel> getCurrentUserInfo()
This endpoint computes all information of the current user.- Returns:
- the information of the current user.
-
getIsHistoryProviderEnabled
@GetMapping(path="/api/v1/history-provider-enabled") public org.springframework.http.ResponseEntity<Boolean> getIsHistoryProviderEnabled()
This endpoint checks if the history module is in use.- Returns:
- true, when the history is enabled, otherwise false
-
currentVersion
@GetMapping(path="/api/v1/version") public org.springframework.http.ResponseEntity<VersionRepresentationModel> currentVersion()
Get the current application version.- Returns:
- The current version.
-
-