Class IRIDASettingsAjaxController
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.web.settings.IRIDASettingsAjaxController
-
@RestController @RequestMapping("/ajax/settings") public class IRIDASettingsAjaxController extends java.lang.Object
Handles asynchronous requests for IRIDA settings.
-
-
Constructor Summary
Constructors Constructor Description IRIDASettingsAjaxController(UISettingsService service)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.Boolean>
getEmailConfigured()
Get if email is configured.org.springframework.http.ResponseEntity<java.util.List<Locale>>
getLocales()
Get a list of all locales.org.springframework.http.ResponseEntity<java.util.List<Role>>
getSystemRoles(java.util.Locale locale)
Get a list of all system roles.
-
-
-
Constructor Detail
-
IRIDASettingsAjaxController
@Autowired public IRIDASettingsAjaxController(UISettingsService service)
-
-
Method Detail
-
getLocales
@RequestMapping("/locales") public org.springframework.http.ResponseEntity<java.util.List<Locale>> getLocales()
Get a list of all locales.- Returns:
- list of locales
-
getSystemRoles
@RequestMapping("/roles") public org.springframework.http.ResponseEntity<java.util.List<Role>> getSystemRoles(java.util.Locale locale)
Get a list of all system roles.- Parameters:
locale
- -Locale
of the current user- Returns:
- list of system roles
-
getEmailConfigured
@RequestMapping("/emailConfigured") public org.springframework.http.ResponseEntity<java.lang.Boolean> getEmailConfigured()
Get if email is configured.- Returns:
- if email is configured
-
-