mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-16 13:30:43 +08:00
role manage
This commit is contained in:
@@ -1,17 +1,14 @@
|
||||
package org.maxkey.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.apache.mybatis.jpa.persistence.JpaBaseDomain;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
|
||||
/*
|
||||
ID varchar(40) not null,
|
||||
UID varchar(40) null,
|
||||
@@ -22,150 +19,120 @@ import org.hibernate.validator.constraints.Length;
|
||||
constraint PK_ROLES primary key clustered (ID)
|
||||
*/
|
||||
|
||||
@Table(name = "ACCOUNTS")
|
||||
public class Accounts extends JpaBaseDomain implements Serializable{
|
||||
@Table(name = "ACCOUNTS")
|
||||
public class Accounts extends JpaBaseDomain implements Serializable {
|
||||
private static final long serialVersionUID = 6829592256223630307L;
|
||||
@Id
|
||||
@Column
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "uuid")
|
||||
private String id;
|
||||
@Column
|
||||
private String uid;
|
||||
@Column
|
||||
private String username;
|
||||
@Column
|
||||
private String displayName;
|
||||
@Column
|
||||
private String appId;
|
||||
@Column
|
||||
private String appName;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 6829592256223630307L;
|
||||
@Id
|
||||
@Column
|
||||
@GeneratedValue(strategy=GenerationType.AUTO,generator="uuid")
|
||||
private String id;
|
||||
@Column
|
||||
private String uid;
|
||||
@Column
|
||||
private String username;
|
||||
@Column
|
||||
private String displayName;
|
||||
@Column
|
||||
private String appId;
|
||||
@Column
|
||||
private String appName;
|
||||
|
||||
@Length(max=60)
|
||||
@Column
|
||||
private String relatedUsername;
|
||||
@Column
|
||||
private String relatedPassword;
|
||||
|
||||
public Accounts(){
|
||||
super();
|
||||
}
|
||||
@Length(max = 60)
|
||||
@Column
|
||||
private String relatedUsername;
|
||||
@Column
|
||||
private String relatedPassword;
|
||||
|
||||
|
||||
public Accounts(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Accounts(String uid,String appId){
|
||||
this.uid = uid;
|
||||
this.appId = appId;
|
||||
}
|
||||
public Accounts() {
|
||||
super();
|
||||
}
|
||||
|
||||
|
||||
public Accounts(String uid,String appId,String password) {
|
||||
this.uid = uid;
|
||||
this.appId = appId;
|
||||
this.relatedPassword=password;
|
||||
}
|
||||
|
||||
public Accounts(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Accounts(String uid, String appId) {
|
||||
this.uid = uid;
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
public Accounts(String uid, String appId, String password) {
|
||||
this.uid = uid;
|
||||
this.appId = appId;
|
||||
this.relatedPassword = password;
|
||||
}
|
||||
|
||||
public String getUid() {
|
||||
return uid;
|
||||
}
|
||||
|
||||
public void setUid(String uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
|
||||
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 getUid() {
|
||||
return uid;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
public void setUid(String uid) {
|
||||
this.uid = uid;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return the id
|
||||
*/
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param id the id to set
|
||||
*/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "AppAccounts [uid=" + uid + ", username=" + username
|
||||
+ ", displayName=" + displayName + ", appId=" + appId
|
||||
+ ", appName=" + appName + ", relatedUsername="
|
||||
+ relatedUsername + ", relatedPassword=" + relatedPassword
|
||||
+ "]";
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "AppAccounts [uid=" + uid + ", username=" + username + ", displayName=" + displayName + ", appId="
|
||||
+ appId + ", appName=" + appName + ", relatedUsername=" + relatedUsername + ", relatedPassword="
|
||||
+ relatedPassword + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,140 +1,141 @@
|
||||
package org.maxkey.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.apache.mybatis.jpa.persistence.JpaBaseDomain;
|
||||
import org.hibernate.validator.constraints.Length;
|
||||
|
||||
@Table(name = "GROUPS")
|
||||
public class Groups extends JpaBaseDomain implements Serializable {
|
||||
|
||||
@Table(name = "GROUPS")
|
||||
public class Groups extends JpaBaseDomain implements Serializable{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 4660258495864814777L;
|
||||
@Id
|
||||
@Column
|
||||
@GeneratedValue(strategy=GenerationType.AUTO,generator="uuid")
|
||||
String id;
|
||||
|
||||
@Length(max=60)
|
||||
@Column
|
||||
private String name;
|
||||
@Column
|
||||
private int isdefault;
|
||||
@Column
|
||||
String description;
|
||||
@Column
|
||||
String createdBy;
|
||||
@Column
|
||||
String createdDate;
|
||||
@Column
|
||||
String modifiedBy;
|
||||
@Column
|
||||
String modifiedDate;
|
||||
@Column
|
||||
String status;
|
||||
|
||||
public Groups() {}
|
||||
|
||||
public Groups(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
private static final long serialVersionUID = 4660258495864814777L;
|
||||
@Id
|
||||
@Column
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "uuid")
|
||||
String id;
|
||||
|
||||
public Groups(String id, String name, int isdefault) {
|
||||
super();
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.isdefault = isdefault;
|
||||
}
|
||||
@Length(max = 60)
|
||||
@Column
|
||||
private String name;
|
||||
@Column
|
||||
private int isdefault;
|
||||
@Column
|
||||
String description;
|
||||
@Column
|
||||
String createdBy;
|
||||
@Column
|
||||
String createdDate;
|
||||
@Column
|
||||
String modifiedBy;
|
||||
@Column
|
||||
String modifiedDate;
|
||||
@Column
|
||||
String status;
|
||||
|
||||
public String getName(){
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Groups() {
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
public Groups(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
/**
|
||||
* Groups.
|
||||
* @param id String
|
||||
* @param name String
|
||||
* @param isdefault int
|
||||
*/
|
||||
public Groups(String id, String name, int isdefault) {
|
||||
super();
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.isdefault = isdefault;
|
||||
}
|
||||
|
||||
public int getIsdefault(){
|
||||
return isdefault;
|
||||
}
|
||||
|
||||
public void setIsdefault(int isdefault) {
|
||||
this.isdefault = isdefault;
|
||||
}
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
public int getIsdefault() {
|
||||
return isdefault;
|
||||
}
|
||||
|
||||
public String getCreatedDate() {
|
||||
return createdDate;
|
||||
}
|
||||
public void setIsdefault(int isdefault) {
|
||||
this.isdefault = isdefault;
|
||||
}
|
||||
|
||||
public void setCreatedDate(String createdDate) {
|
||||
this.createdDate = createdDate;
|
||||
}
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public String getModifiedBy() {
|
||||
return modifiedBy;
|
||||
}
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public void setModifiedBy(String modifiedBy) {
|
||||
this.modifiedBy = modifiedBy;
|
||||
}
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public String getModifiedDate() {
|
||||
return modifiedDate;
|
||||
}
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public void setModifiedDate(String modifiedDate) {
|
||||
this.modifiedDate = modifiedDate;
|
||||
}
|
||||
public String getCreatedDate() {
|
||||
return createdDate;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setCreatedDate(String createdDate) {
|
||||
this.createdDate = createdDate;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
public String getModifiedBy() {
|
||||
return modifiedBy;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Groups [name=" + name + ", isdefault=" + isdefault + "]";
|
||||
}
|
||||
|
||||
public void setModifiedBy(String modifiedBy) {
|
||||
this.modifiedBy = modifiedBy;
|
||||
}
|
||||
|
||||
public String getModifiedDate() {
|
||||
return modifiedDate;
|
||||
}
|
||||
|
||||
public void setModifiedDate(String modifiedDate) {
|
||||
this.modifiedDate = modifiedDate;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
* @see java.lang.Object#toString()
|
||||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Groups [name=" + name + ", isdefault=" + isdefault + "]";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
164
maxkey-core/src/main/java/org/maxkey/domain/Resources.java
Normal file
164
maxkey-core/src/main/java/org/maxkey/domain/Resources.java
Normal file
@@ -0,0 +1,164 @@
|
||||
package org.maxkey.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.apache.mybatis.jpa.persistence.JpaBaseDomain;
|
||||
|
||||
@Table(name = "RESOURCES")
|
||||
public class Resources extends JpaBaseDomain implements Serializable {
|
||||
private static final long serialVersionUID = 2567171742999638608L;
|
||||
@Id
|
||||
@Column
|
||||
@GeneratedValue(strategy = GenerationType.AUTO,generator = "uuid")
|
||||
String id;
|
||||
@Column
|
||||
String name;
|
||||
@Column
|
||||
String appId;
|
||||
@Column
|
||||
String pid;
|
||||
@Column
|
||||
String pname;
|
||||
@Column
|
||||
String resType;
|
||||
@Column
|
||||
String resUrl;
|
||||
@Column
|
||||
String resAction;
|
||||
@Column
|
||||
String status;
|
||||
@Column
|
||||
String description;
|
||||
@Column
|
||||
String createdBy;
|
||||
@Column
|
||||
String createdDate;
|
||||
@Column
|
||||
String modifiedBy;
|
||||
@Column
|
||||
String modifiedDate;
|
||||
|
||||
public Resources() {
|
||||
super();
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getCreatedDate() {
|
||||
return createdDate;
|
||||
}
|
||||
|
||||
public void setCreatedDate(String createdDate) {
|
||||
this.createdDate = createdDate;
|
||||
}
|
||||
|
||||
public String getModifiedBy() {
|
||||
return modifiedBy;
|
||||
}
|
||||
|
||||
public void setModifiedBy(String modifiedBy) {
|
||||
this.modifiedBy = modifiedBy;
|
||||
}
|
||||
|
||||
public String getModifiedDate() {
|
||||
return modifiedDate;
|
||||
}
|
||||
|
||||
public void setModifiedDate(String modifiedDate) {
|
||||
this.modifiedDate = modifiedDate;
|
||||
}
|
||||
|
||||
public String getResType() {
|
||||
return resType;
|
||||
}
|
||||
|
||||
public void setResType(String resType) {
|
||||
this.resType = resType;
|
||||
}
|
||||
|
||||
public String getResUrl() {
|
||||
return resUrl;
|
||||
}
|
||||
|
||||
public void setResUrl(String resUrl) {
|
||||
this.resUrl = resUrl;
|
||||
}
|
||||
|
||||
public String getResAction() {
|
||||
return resAction;
|
||||
}
|
||||
|
||||
public void setResAction(String resAction) {
|
||||
this.resAction = resAction;
|
||||
}
|
||||
|
||||
public String getPid() {
|
||||
return pid;
|
||||
}
|
||||
|
||||
public void setPid(String pid) {
|
||||
this.pid = pid;
|
||||
}
|
||||
|
||||
public String getPname() {
|
||||
return pname;
|
||||
}
|
||||
|
||||
public void setPname(String pname) {
|
||||
this.pname = pname;
|
||||
}
|
||||
|
||||
public String getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(String appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
package org.maxkey.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.apache.mybatis.jpa.persistence.JpaBaseDomain;
|
||||
import org.maxkey.constants.ConstantsStatus;
|
||||
|
||||
@Table(name = "ROLE_PERMISSIONS")
|
||||
public class RolePermissions extends JpaBaseDomain implements Serializable {
|
||||
private static final long serialVersionUID = -8783585691243853899L;
|
||||
|
||||
@Id
|
||||
@Column
|
||||
@GeneratedValue(strategy = GenerationType.AUTO, generator = "uuid")
|
||||
String id;
|
||||
@Column
|
||||
String appId;
|
||||
@Column
|
||||
String roleId;
|
||||
@Column
|
||||
String resourceId;
|
||||
|
||||
int status = ConstantsStatus.ACTIVE;
|
||||
|
||||
public RolePermissions() {
|
||||
}
|
||||
|
||||
public RolePermissions(String appId, String roleId) {
|
||||
this.appId = appId;
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
/**
|
||||
* .
|
||||
* @param appId String
|
||||
* @param roleId String
|
||||
* @param resourceId String
|
||||
*/
|
||||
public RolePermissions(String appId, String roleId, String resourceId) {
|
||||
this.id = this.generateId();
|
||||
this.appId = appId;
|
||||
this.roleId = roleId;
|
||||
this.resourceId = resourceId;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getAppId() {
|
||||
return appId;
|
||||
}
|
||||
|
||||
public void setAppId(String appId) {
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
public String getRoleId() {
|
||||
return roleId;
|
||||
}
|
||||
|
||||
public void setRoleId(String roleId) {
|
||||
this.roleId = roleId;
|
||||
}
|
||||
|
||||
public String getResourceId() {
|
||||
return resourceId;
|
||||
}
|
||||
|
||||
public void setResourceId(String resourceId) {
|
||||
this.resourceId = resourceId;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getUniqueId() {
|
||||
return appId + "_" + roleId + "_" + resourceId;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
105
maxkey-core/src/main/java/org/maxkey/domain/Roles.java
Normal file
105
maxkey-core/src/main/java/org/maxkey/domain/Roles.java
Normal file
@@ -0,0 +1,105 @@
|
||||
package org.maxkey.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import org.apache.mybatis.jpa.persistence.JpaBaseDomain;
|
||||
|
||||
@Table(name = "ROLES")
|
||||
public class Roles extends JpaBaseDomain implements Serializable {
|
||||
private static final long serialVersionUID = -7515832728504943821L;
|
||||
|
||||
@Id
|
||||
@Column
|
||||
@GeneratedValue(strategy = GenerationType.AUTO,generator = "uuid")
|
||||
private String id;
|
||||
@Column
|
||||
private String name;
|
||||
@Column
|
||||
String status;
|
||||
@Column
|
||||
String description;
|
||||
@Column
|
||||
String createdBy;
|
||||
@Column
|
||||
String createdDate;
|
||||
@Column
|
||||
String modifiedBy;
|
||||
@Column
|
||||
String modifiedDate;
|
||||
|
||||
public Roles() {
|
||||
super();
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getCreatedBy() {
|
||||
return createdBy;
|
||||
}
|
||||
|
||||
public void setCreatedBy(String createdBy) {
|
||||
this.createdBy = createdBy;
|
||||
}
|
||||
|
||||
public String getCreatedDate() {
|
||||
return createdDate;
|
||||
}
|
||||
|
||||
public void setCreatedDate(String createdDate) {
|
||||
this.createdDate = createdDate;
|
||||
}
|
||||
|
||||
public String getModifiedBy() {
|
||||
return modifiedBy;
|
||||
}
|
||||
|
||||
public void setModifiedBy(String modifiedBy) {
|
||||
this.modifiedBy = modifiedBy;
|
||||
}
|
||||
|
||||
public String getModifiedDate() {
|
||||
return modifiedDate;
|
||||
}
|
||||
|
||||
public void setModifiedDate(String modifiedDate) {
|
||||
this.modifiedDate = modifiedDate;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -1,109 +1,117 @@
|
||||
package org.maxkey.domain;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.apache.mybatis.jpa.persistence.JpaBaseDomain;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Saml20Metadata.
|
||||
* @author Crystal.Sea
|
||||
*
|
||||
*/
|
||||
public class Saml20Metadata extends JpaBaseDomain implements Serializable{
|
||||
public class Saml20Metadata extends JpaBaseDomain implements Serializable {
|
||||
private static final long serialVersionUID = -403743150268165622L;
|
||||
|
||||
public static final class ContactPersonType {
|
||||
public static final String TECHNICAL = "technical";
|
||||
public static final String SUPPORT = "support";
|
||||
public static final String ADMINISTRATIVE = "administrative";
|
||||
public static final String BILLING = "billing";
|
||||
public static final String OTHER = "other";
|
||||
}
|
||||
|
||||
public final static class ContactPersonType{
|
||||
public final static String TECHNICAL="technical";
|
||||
public final static String SUPPORT="support";
|
||||
public final static String ADMINISTRATIVE="administrative";
|
||||
public final static String BILLING="billing";
|
||||
public final static String OTHER="other";
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -403743150268165622L;
|
||||
private String orgName;
|
||||
private String orgDisplayName;
|
||||
private String orgURL;
|
||||
private String contactType;
|
||||
private String company;
|
||||
private String givenName;
|
||||
private String surName;
|
||||
private String emailAddress;
|
||||
private String telephoneNumber;
|
||||
|
||||
|
||||
private String orgName;
|
||||
private String orgDisplayName;
|
||||
private String orgURL;
|
||||
private String contactType;
|
||||
private String company;
|
||||
private String givenName;
|
||||
private String surName;
|
||||
private String emailAddress;
|
||||
private String telephoneNumber;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public Saml20Metadata() {
|
||||
super();
|
||||
|
||||
}
|
||||
public String getOrgName() {
|
||||
return orgName;
|
||||
}
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
public String getOrgDisplayName() {
|
||||
return orgDisplayName;
|
||||
}
|
||||
public void setOrgDisplayName(String orgDisplayName) {
|
||||
this.orgDisplayName = orgDisplayName;
|
||||
}
|
||||
public String getOrgURL() {
|
||||
return orgURL;
|
||||
}
|
||||
public void setOrgURL(String orgURL) {
|
||||
this.orgURL = orgURL;
|
||||
}
|
||||
public String getContactType() {
|
||||
return contactType;
|
||||
}
|
||||
public void setContactType(String contactType) {
|
||||
this.contactType = contactType;
|
||||
}
|
||||
public String getCompany() {
|
||||
return company;
|
||||
}
|
||||
public void setCompany(String company) {
|
||||
this.company = company;
|
||||
}
|
||||
public String getGivenName() {
|
||||
return givenName;
|
||||
}
|
||||
public void setGivenName(String givenName) {
|
||||
this.givenName = givenName;
|
||||
}
|
||||
public String getSurName() {
|
||||
return surName;
|
||||
}
|
||||
public void setSurName(String surName) {
|
||||
this.surName = surName;
|
||||
}
|
||||
public String getEmailAddress() {
|
||||
return emailAddress;
|
||||
}
|
||||
public void setEmailAddress(String emailAddress) {
|
||||
this.emailAddress = emailAddress;
|
||||
}
|
||||
public String getTelephoneNumber() {
|
||||
return telephoneNumber;
|
||||
}
|
||||
public void setTelephoneNumber(String telephoneNumber) {
|
||||
this.telephoneNumber = telephoneNumber;
|
||||
}
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Saml20Metadata [orgName=" + orgName + ", orgDisplayName="
|
||||
+ orgDisplayName + ", orgURL=" + orgURL + ", contactType="
|
||||
+ contactType + ", company=" + company + ", givenName="
|
||||
+ givenName + ", surName=" + surName + ", emailAddress="
|
||||
+ emailAddress + ", telephoneNumber=" + telephoneNumber + "]";
|
||||
}
|
||||
|
||||
|
||||
public Saml20Metadata() {
|
||||
super();
|
||||
|
||||
}
|
||||
|
||||
public String getOrgName() {
|
||||
return orgName;
|
||||
}
|
||||
|
||||
public void setOrgName(String orgName) {
|
||||
this.orgName = orgName;
|
||||
}
|
||||
|
||||
public String getOrgDisplayName() {
|
||||
return orgDisplayName;
|
||||
}
|
||||
|
||||
public void setOrgDisplayName(String orgDisplayName) {
|
||||
this.orgDisplayName = orgDisplayName;
|
||||
}
|
||||
|
||||
public String getOrgURL() {
|
||||
return orgURL;
|
||||
}
|
||||
|
||||
public void setOrgURL(String orgURL) {
|
||||
this.orgURL = orgURL;
|
||||
}
|
||||
|
||||
public String getContactType() {
|
||||
return contactType;
|
||||
}
|
||||
|
||||
public void setContactType(String contactType) {
|
||||
this.contactType = contactType;
|
||||
}
|
||||
|
||||
public String getCompany() {
|
||||
return company;
|
||||
}
|
||||
|
||||
public void setCompany(String company) {
|
||||
this.company = company;
|
||||
}
|
||||
|
||||
public String getGivenName() {
|
||||
return givenName;
|
||||
}
|
||||
|
||||
public void setGivenName(String givenName) {
|
||||
this.givenName = givenName;
|
||||
}
|
||||
|
||||
public String getSurName() {
|
||||
return surName;
|
||||
}
|
||||
|
||||
public void setSurName(String surName) {
|
||||
this.surName = surName;
|
||||
}
|
||||
|
||||
public String getEmailAddress() {
|
||||
return emailAddress;
|
||||
}
|
||||
|
||||
public void setEmailAddress(String emailAddress) {
|
||||
this.emailAddress = emailAddress;
|
||||
}
|
||||
|
||||
public String getTelephoneNumber() {
|
||||
return telephoneNumber;
|
||||
}
|
||||
|
||||
public void setTelephoneNumber(String telephoneNumber) {
|
||||
this.telephoneNumber = telephoneNumber;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Saml20Metadata [orgName=" + orgName + ", orgDisplayName=" + orgDisplayName + ", orgURL=" + orgURL
|
||||
+ ", contactType=" + contactType + ", company=" + company + ", givenName=" + givenName + ", surName="
|
||||
+ surName + ", emailAddress=" + emailAddress + ", telephoneNumber=" + telephoneNumber + "]";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,78 +3,77 @@ package org.maxkey.web.component;
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* 数控件的节点
|
||||
* 使用HashMap<String,Object> attr存储节点数据
|
||||
* 数控件的节点 使用HashMap<String,Object> attr存储节点数据.
|
||||
*
|
||||
* @author Crystal.Sea
|
||||
*
|
||||
*/
|
||||
public class TreeNode {
|
||||
//TreeNode
|
||||
HashMap<String,Object> attr=new HashMap<String,Object>();
|
||||
// TreeNode
|
||||
HashMap<String, Object> attr = new HashMap<String, Object>();
|
||||
|
||||
public TreeNode() {
|
||||
super();
|
||||
}
|
||||
|
||||
public TreeNode(String id,String name) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
}
|
||||
|
||||
public TreeNode(String id,String name,boolean hasChild) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
attr.put("isParent", hasChild);
|
||||
}
|
||||
|
||||
public TreeNode(String id,String name, String pId) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
attr.put("pId", pId);
|
||||
}
|
||||
|
||||
public TreeNode(String id,String name, String pId, String url) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
attr.put("pId", pId);
|
||||
attr.put("url", url);
|
||||
}
|
||||
|
||||
public TreeNode(String id,String name, String pId, String url, String target) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
attr.put("pId", pId);
|
||||
attr.put("url", url);
|
||||
attr.put("target", target);
|
||||
}
|
||||
|
||||
public void setChecked() {
|
||||
attr.put("checked", true);
|
||||
}
|
||||
|
||||
public void setHasChild() {
|
||||
attr.put("isParent", true);
|
||||
}
|
||||
|
||||
public void setPId(String pId) {
|
||||
attr.put("pId", pId);
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
attr.put("icon", icon);
|
||||
}
|
||||
|
||||
public HashMap<String, Object> getAttr() {
|
||||
return attr;
|
||||
}
|
||||
public TreeNode() {
|
||||
super();
|
||||
}
|
||||
|
||||
public void setAttr(String attrName, Object value) {
|
||||
this.attr .put(attrName, value);
|
||||
}
|
||||
|
||||
public void setAttr(HashMap<String, Object> attr) {
|
||||
this.attr = attr;
|
||||
}
|
||||
|
||||
public TreeNode(String id, String name) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
}
|
||||
|
||||
public TreeNode(String id, String name, boolean hasChild) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
attr.put("isParent", hasChild);
|
||||
}
|
||||
|
||||
public TreeNode(String id, String name, String pId) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
attr.put("pId", pId);
|
||||
}
|
||||
|
||||
public TreeNode(String id, String name, String pId, String url) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
attr.put("pId", pId);
|
||||
attr.put("url", url);
|
||||
}
|
||||
|
||||
public TreeNode(String id, String name, String pId, String url, String target) {
|
||||
attr.put("id", id);
|
||||
attr.put("name", name);
|
||||
attr.put("pId", pId);
|
||||
attr.put("url", url);
|
||||
attr.put("target", target);
|
||||
}
|
||||
|
||||
public void setChecked() {
|
||||
attr.put("checked", true);
|
||||
}
|
||||
|
||||
public void setHasChild() {
|
||||
attr.put("isParent", true);
|
||||
}
|
||||
|
||||
public void setPId(String pId) {
|
||||
attr.put("pId", pId);
|
||||
}
|
||||
|
||||
public void setIcon(String icon) {
|
||||
attr.put("icon", icon);
|
||||
}
|
||||
|
||||
public HashMap<String, Object> getAttr() {
|
||||
return attr;
|
||||
}
|
||||
|
||||
public void setAttr(String attrName, Object value) {
|
||||
this.attr.put(attrName, value);
|
||||
}
|
||||
|
||||
public void setAttr(HashMap<String, Object> attr) {
|
||||
this.attr = attr;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user