|
@@ -1,19 +1,19 @@
|
|
/*
|
|
/*
|
|
* Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
|
|
* Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
|
|
- *
|
|
|
|
|
|
+ *
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
* You may obtain a copy of the License at
|
|
- *
|
|
|
|
|
|
+ *
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
- *
|
|
|
|
|
|
+ *
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
* limitations under the License.
|
|
*/
|
|
*/
|
|
-
|
|
|
|
|
|
+
|
|
|
|
|
|
package org.maxkey.entity;
|
|
package org.maxkey.entity;
|
|
|
|
|
|
@@ -27,9 +27,6 @@ import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
import javax.persistence.Table;
|
|
-
|
|
|
|
-import lombok.Getter;
|
|
|
|
-import lombok.Setter;
|
|
|
|
import org.apache.mybatis.jpa.persistence.JpaBaseEntity;
|
|
import org.apache.mybatis.jpa.persistence.JpaBaseEntity;
|
|
import org.hibernate.validator.constraints.Length;
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
|
|
|
@@ -46,13 +43,11 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
*/
|
|
*/
|
|
@Entity
|
|
@Entity
|
|
@Table(name = "MXK_ACCOUNTS")
|
|
@Table(name = "MXK_ACCOUNTS")
|
|
-@Setter
|
|
|
|
-@Getter
|
|
|
|
public class Accounts extends JpaBaseEntity implements Serializable {
|
|
public class Accounts extends JpaBaseEntity implements Serializable {
|
|
private static final long serialVersionUID = 6829592256223630307L;
|
|
private static final long serialVersionUID = 6829592256223630307L;
|
|
-
|
|
|
|
- public static final String DEFAULT_PASSWORD_SUFFIX = UserInfo.DEFAULT_PASSWORD_SUFFIX;
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ public static final String DEFAULT_PASSWORD_SUFFIX = UserInfo.DEFAULT_PASSWORD_SUFFIX;
|
|
|
|
+
|
|
@Id
|
|
@Id
|
|
@Column
|
|
@Column
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "snowflakeid")
|
|
@GeneratedValue(strategy = GenerationType.AUTO, generator = "snowflakeid")
|
|
@@ -81,16 +76,16 @@ public class Accounts extends JpaBaseEntity implements Serializable {
|
|
private String strategyName;
|
|
private String strategyName;
|
|
@Column
|
|
@Column
|
|
private int status;
|
|
private int status;
|
|
-
|
|
|
|
|
|
+
|
|
@Column
|
|
@Column
|
|
private String instId;
|
|
private String instId;
|
|
-
|
|
|
|
|
|
+
|
|
private String instName;
|
|
private String instName;
|
|
-
|
|
|
|
|
|
+
|
|
UserInfo userInfo;
|
|
UserInfo userInfo;
|
|
-
|
|
|
|
|
|
+
|
|
@JsonIgnore
|
|
@JsonIgnore
|
|
- private HashMap<String, OrganizationsCast> orgCast = new HashMap<String, OrganizationsCast>();
|
|
|
|
|
|
+ private HashMap<String,OrganizationsCast> orgCast =new HashMap<String,OrganizationsCast>();
|
|
|
|
|
|
public Accounts() {
|
|
public Accounts() {
|
|
super();
|
|
super();
|
|
@@ -111,13 +106,144 @@ public class Accounts extends JpaBaseEntity implements Serializable {
|
|
this.relatedPassword = password;
|
|
this.relatedPassword = password;
|
|
}
|
|
}
|
|
|
|
|
|
- public void setOrgCast(List<OrganizationsCast> listOrgCast) {
|
|
|
|
- for (OrganizationsCast cast : listOrgCast) {
|
|
|
|
|
|
+ public String getUserId() {
|
|
|
|
+ return userId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setUserId(String userId) {
|
|
|
|
+ this.userId = userId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getUsername() {
|
|
|
|
+ return username;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setUsername(String username) {
|
|
|
|
+ this.username = username;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getDisplayName() {
|
|
|
|
+ return displayName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setDisplayName(String displayName) {
|
|
|
|
+ this.displayName = displayName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getAppId() {
|
|
|
|
+ return appId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setAppId(String appId) {
|
|
|
|
+ this.appId = appId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getAppName() {
|
|
|
|
+ return appName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setAppName(String appName) {
|
|
|
|
+ this.appName = appName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getRelatedUsername() {
|
|
|
|
+ return relatedUsername;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setRelatedUsername(String relatedUsername) {
|
|
|
|
+ this.relatedUsername = relatedUsername;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getRelatedPassword() {
|
|
|
|
+ return relatedPassword;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setRelatedPassword(String relatedPassword) {
|
|
|
|
+ this.relatedPassword = relatedPassword;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public String getId() {
|
|
|
|
+ return id;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public void setId(String id) {
|
|
|
|
+ this.id = id;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public UserInfo getUserInfo() {
|
|
|
|
+ return userInfo;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setUserInfo(UserInfo userInfo) {
|
|
|
|
+ this.userInfo = userInfo;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ public String getCreateType() {
|
|
|
|
+ return createType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCreateType(String createType) {
|
|
|
|
+ this.createType = createType;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getStrategyId() {
|
|
|
|
+ return strategyId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setStrategyId(String strategyId) {
|
|
|
|
+ this.strategyId = strategyId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public int getStatus() {
|
|
|
|
+ return status;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setStatus(int status) {
|
|
|
|
+ this.status = status;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public HashMap<String, OrganizationsCast> getOrgCast() {
|
|
|
|
+ return orgCast;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setOrgCast(HashMap<String, OrganizationsCast> orgCast) {
|
|
|
|
+ this.orgCast = orgCast;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setOrgCast(List <OrganizationsCast> listOrgCast) {
|
|
|
|
+ for(OrganizationsCast cast : listOrgCast) {
|
|
this.orgCast.put(cast.getProvider(), cast);
|
|
this.orgCast.put(cast.getProvider(), cast);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
|
|
|
+ public String getStrategyName() {
|
|
|
|
+ return strategyName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setStrategyName(String strategyName) {
|
|
|
|
+ this.strategyName = strategyName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getInstId() {
|
|
|
|
+ return instId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setInstId(String instId) {
|
|
|
|
+ this.instId = instId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getInstName() {
|
|
|
|
+ return instName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setInstName(String instName) {
|
|
|
|
+ this.instName = instName;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
public String toString() {
|
|
public String toString() {
|
|
return "AppAccounts [uid=" + userId + ", username=" + username + ", displayName=" + displayName + ", appId="
|
|
return "AppAccounts [uid=" + userId + ", username=" + username + ", displayName=" + displayName + ", appId="
|
|
+ appId + ", appName=" + appName + ", relatedUsername=" + relatedUsername + ", relatedPassword="
|
|
+ appId + ", appName=" + appName + ", relatedUsername=" + relatedUsername + ", relatedPassword="
|