Class ThemeResource
java.lang.Object
com.flowable.platform.rest.service.api.AbstractPlatformResource
com.flowable.platform.rest.service.api.configuration.ThemeResource
@RestController public class ThemeResource extends AbstractPlatformResource
- Author:
- Filip Hrisafov
-
Field Summary
Fields Modifier and Type Field Description protected ConfigurationServiceconfigurationServiceFields inherited from class com.flowable.platform.rest.service.api.AbstractPlatformResource
additionalAdminUsers, platformSecurityInterceptor -
Constructor Summary
Constructors Constructor Description ThemeResource(ConfigurationService configurationService) -
Method Summary
Modifier and Type Method Description org.springframework.http.ResponseEntity<ThemeResponse>createTheme(ThemeCreateRequest request)protected booleancurrentUserHasThemeManagementAccess()org.springframework.http.ResponseEntity<java.lang.Void>deleteTheme(java.lang.String themeId)ThemeResponsegetDefaultTheme(java.lang.String tenantId)ThemeResponsegetTheme(java.lang.String themeId)protected ThemegetThemeFromRequest(java.lang.String themeId)java.util.List<ThemeResponse>queryThemes(ThemeQueryRequest request)org.springframework.http.ResponseEntity<java.lang.Void>setDefaultTheme(SetDefaultThemeRequest request)org.springframework.http.ResponseEntity<ThemeResponse>updateTheme(java.lang.String themeId, ThemeUpdateRequest request)protected voidvalidateAccessToTheme(Theme theme)Methods inherited from class com.flowable.platform.rest.service.api.AbstractPlatformResource
currentUserHasAdminRights, currentUserIsSuperAdmin, setAdditionalAdminUsers, setPlatformSecurityInterceptor
-
Field Details
-
Constructor Details
-
Method Details
-
getTheme
@GetMapping("/configuration/themes/{themeId}") public ThemeResponse getTheme(@PathVariable java.lang.String themeId) -
updateTheme
@PutMapping("/configuration/themes/{themeId}") public org.springframework.http.ResponseEntity<ThemeResponse> updateTheme(@PathVariable java.lang.String themeId, @RequestBody ThemeUpdateRequest request) -
deleteTheme
@DeleteMapping("/configuration/themes/{themeId}") public org.springframework.http.ResponseEntity<java.lang.Void> deleteTheme(@PathVariable java.lang.String themeId) -
queryThemes
@GetMapping("/configuration/themes") public java.util.List<ThemeResponse> queryThemes(@ModelAttribute ThemeQueryRequest request) -
createTheme
@PostMapping("/configuration/themes") public org.springframework.http.ResponseEntity<ThemeResponse> createTheme(@RequestBody ThemeCreateRequest request) -
setDefaultTheme
@PostMapping("/configuration/themes-default") public org.springframework.http.ResponseEntity<java.lang.Void> setDefaultTheme(@RequestBody SetDefaultThemeRequest request) -
getDefaultTheme
@GetMapping("/configuration/themes-default") public ThemeResponse getDefaultTheme(@RequestParam(required=false) java.lang.String tenantId) -
getThemeFromRequest
-
validateAccessToTheme
-
currentUserHasThemeManagementAccess
protected boolean currentUserHasThemeManagementAccess()
-