Class JDBCLoginService

    • Field Detail

      • _config

        protected java.lang.String _config
      • _jdbcDriver

        protected java.lang.String _jdbcDriver
      • _url

        protected java.lang.String _url
      • _userName

        protected java.lang.String _userName
      • _password

        protected java.lang.String _password
      • _userTableKey

        protected java.lang.String _userTableKey
      • _userTablePasswordField

        protected java.lang.String _userTablePasswordField
      • _roleTableRoleField

        protected java.lang.String _roleTableRoleField
      • _userSql

        protected java.lang.String _userSql
      • _roleSql

        protected java.lang.String _roleSql
      • _con

        protected java.sql.Connection _con
    • Constructor Detail

      • JDBCLoginService

        public JDBCLoginService()
      • JDBCLoginService

        public JDBCLoginService​(java.lang.String name)
      • JDBCLoginService

        public JDBCLoginService​(java.lang.String name,
                                java.lang.String config)
      • JDBCLoginService

        public JDBCLoginService​(java.lang.String name,
                                IdentityService identityService,
                                java.lang.String config)
    • Method Detail

      • doStart

        protected void doStart()
                        throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Starts the managed lifecycle beans in the order they were added.
        Overrides:
        doStart in class ContainerLifeCycle
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • getConfig

        public java.lang.String getConfig()
      • setConfig

        public void setConfig​(java.lang.String config)
        Load JDBC connection configuration from properties file.
        Parameters:
        config - Filename or url of user properties file.
      • connectDatabase

        public java.sql.Connection connectDatabase()
                                            throws java.sql.SQLException
        Connect to database with parameters setup by loadConfig()
        Throws:
        java.sql.SQLException
      • doStop

        protected void doStop()
                       throws java.lang.Exception
        Description copied from class: ContainerLifeCycle
        Stops the managed lifecycle beans in the reverse order they were added.
        Overrides:
        doStop in class ContainerLifeCycle
        Throws:
        java.lang.Exception - If there was a problem stopping. Will cause a transition to FAILED state