Class IRIDASettingsAjaxController


  • @RestController
    @RequestMapping("/ajax/settings")
    public class IRIDASettingsAjaxController
    extends java.lang.Object
    Handles asynchronous requests for IRIDA settings.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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