类 ExternalUserPersistServiceImpl

  • 所有已实现的接口:
    UserPersistService

    @Conditional(com.alibaba.nacos.config.server.configuration.ConditionOnExternalStorage.class)
    @Component
    public class ExternalUserPersistServiceImpl
    extends java.lang.Object
    implements UserPersistService
    Implemetation of ExternalUserPersistServiceImpl.
    作者:
    liaochuntao
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      private org.springframework.jdbc.core.JdbcTemplate jt  
      private com.alibaba.nacos.config.server.service.repository.extrnal.ExternalStoragePersistServiceImpl persistService  
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void createUser​(java.lang.String username, java.lang.String password)
      Execute create user operation.
      void deleteUser​(java.lang.String username)
      Execute delete user operation.
      User findUserByUsername​(java.lang.String username)
      Execute find user by username operation.
      java.util.List<java.lang.String> findUserLikeUsername​(java.lang.String username)
      fuzzy query user by username.
      com.alibaba.nacos.config.server.model.Page<User> getUsers​(int pageNo, int pageSize)
      get users by page.
      protected void init()  
      void updateUserPassword​(java.lang.String username, java.lang.String password)
      Execute update user password operation.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • persistService

        @Autowired
        private com.alibaba.nacos.config.server.service.repository.extrnal.ExternalStoragePersistServiceImpl persistService
      • jt

        private org.springframework.jdbc.core.JdbcTemplate jt
    • 构造器详细资料

      • ExternalUserPersistServiceImpl

        public ExternalUserPersistServiceImpl()
    • 方法详细资料

      • init

        @PostConstruct
        protected void init()
      • createUser

        public void createUser​(java.lang.String username,
                               java.lang.String password)
        Execute create user operation.
        指定者:
        createUser 在接口中 UserPersistService
        参数:
        username - username string value.
        password - password string value.
      • deleteUser

        public void deleteUser​(java.lang.String username)
        Execute delete user operation.
        指定者:
        deleteUser 在接口中 UserPersistService
        参数:
        username - username string value.
      • updateUserPassword

        public void updateUserPassword​(java.lang.String username,
                                       java.lang.String password)
        Execute update user password operation.
        指定者:
        updateUserPassword 在接口中 UserPersistService
        参数:
        username - username string value.
        password - password string value.
      • findUserByUsername

        public User findUserByUsername​(java.lang.String username)
        Execute find user by username operation.
        指定者:
        findUserByUsername 在接口中 UserPersistService
        参数:
        username - username string value.
        返回:
        User model.
      • getUsers

        public com.alibaba.nacos.config.server.model.Page<User> getUsers​(int pageNo,
                                                                         int pageSize)
        从接口复制的说明: UserPersistService
        get users by page.
        指定者:
        getUsers 在接口中 UserPersistService
        参数:
        pageNo - pageNo
        pageSize - pageSize
        返回:
        user page info
      • findUserLikeUsername

        public java.util.List<java.lang.String> findUserLikeUsername​(java.lang.String username)
        从接口复制的说明: UserPersistService
        fuzzy query user by username.
        指定者:
        findUserLikeUsername 在接口中 UserPersistService
        参数:
        username - username
        返回:
        usernames