Class DBUserCheck


  • public class DBUserCheck
    extends java.lang.Object
    Hook run by the context. This hook examines the database for the well known user info on creation and provides them to the Spring context via getRoles().
    Since:
    5.0.0-beta2
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger log  
    • Constructor Summary

      Constructors 
      Constructor Description
      DBUserCheck​(ome.util.SqlAction sql, ome.system.PreferenceContext prefs, ReadOnlyStatus readOnly)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ome.system.Roles getRoles()  
      ome.system.Roles load()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        public static final org.slf4j.Logger log
    • Constructor Detail

      • DBUserCheck

        public DBUserCheck​(ome.util.SqlAction sql,
                           ome.system.PreferenceContext prefs,
                           ReadOnlyStatus readOnly)
                    throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • getRoles

        public ome.system.Roles getRoles()
      • load

        public ome.system.Roles load()
                              throws java.lang.Exception
        Throws:
        java.lang.Exception