|  |  |  | 
|---|
|  |  |  | package doumeemes.config.shiro; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import doumeemes.core.model.LoginUserInfo; | 
|---|
|  |  |  | import org.apache.shiro.authc.UsernamePasswordToken; | 
|---|
|  |  |  | import org.springframework.stereotype.Component; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | Integer companyId; | 
|---|
|  |  |  | Boolean isDdLogin; | 
|---|
|  |  |  | Boolean isWxLogin; | 
|---|
|  |  |  | LoginUserInfo updateUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int updateFlag; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public ShiroToken() { | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | this.companyId = companyId; | 
|---|
|  |  |  | this.isDdLogin = isDdLogin; | 
|---|
|  |  |  | this.isWxLogin = isWxLogin; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public ShiroToken(LoginUserInfo user,int updateFlag) { | 
|---|
|  |  |  | super(user.getUsername(), "", false, (String)null); | 
|---|
|  |  |  | this.updateUser = user; | 
|---|
|  |  |  | this.updateFlag = updateFlag; | 
|---|
|  |  |  | this.isDdLogin = true; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Boolean getDdLogin() { | 
|---|
|  |  |  | 
|---|
|  |  |  | public void setCompanyId(Integer companyId) { | 
|---|
|  |  |  | this.companyId = companyId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public LoginUserInfo getUpdateUser() { | 
|---|
|  |  |  | return updateUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setUpdateUser(LoginUserInfo updateUser) { | 
|---|
|  |  |  | this.updateUser = updateUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getUpdateFlag() { | 
|---|
|  |  |  | return updateFlag; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setUpdateFlag(int updateFlag) { | 
|---|
|  |  |  | this.updateFlag = updateFlag; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|