Class RolePreferencesController

java.lang.Object
org.openwms.core.http.AbstractWebController
org.openwms.core.preferences.RolePreferencesController

@Validated @MeasuredRestController public class RolePreferencesController extends org.openwms.core.http.AbstractWebController
A RolePreferencesController.
Author:
Heiko Scherrer
  • Field Details

    • preferencesService

      private final PreferencesService preferencesService
    • translator

      private final org.ameba.i18n.Translator translator
    • preferenceVOMapper

      private final PreferenceVOMapper preferenceVOMapper
  • Constructor Details

    • RolePreferencesController

      public RolePreferencesController(org.springframework.context.MessageSource messageSource, PreferencesService preferencesService, org.ameba.i18n.Translator translator, PreferenceVOMapper preferenceVOMapper)
  • Method Details

    • findByRole

      @GetMapping(value="/v1/preferences", params="role") public org.springframework.http.ResponseEntity<List<RolePreferenceVO>> findByRole(@RequestParam("role") @NotBlank @NotBlank String role)
    • findByRoleAndKey

      @GetMapping(value="/v1/preferences", params={"role","key"}) public org.springframework.http.ResponseEntity<RolePreferenceVO> findByRoleAndKey(@RequestParam("role") @NotBlank @NotBlank String role, @RequestParam("key") @NotBlank @NotBlank String key)