📄 permision.java
字号:
package com.esimple.service.rbac.po;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
public class Permision implements Serializable {
/** identifier field */
private String permid;
/** nullable persistent field */
private String permtype;
/** nullable persistent field */
private String permname;
/** nullable persistent field */
private String action;
/** nullable persistent field */
private int maxrole;
/** full constructor */
public Permision(String permid, String permtype, String permname, String action, int maxrole) {
this.permid = permid;
this.permtype = permtype;
this.permname = permname;
this.action = action;
this.maxrole = maxrole;
}
/** default constructor */
public Permision() {
}
/** minimal constructor */
public Permision(String permid) {
this.permid = permid;
}
public String getPermid() {
return this.permid;
}
public void setPermid(String permid) {
this.permid = permid;
}
public String getPermtype() {
return this.permtype;
}
public void setPermtype(String permtype) {
this.permtype = permtype;
}
public String getPermname() {
return this.permname;
}
public void setPermname(String permname) {
this.permname = permname;
}
public String getAction() {
return this.action;
}
public void setAction(String action) {
this.action = action;
}
public int getMaxrole() {
return this.maxrole;
}
public void setMaxrole(int maxrole) {
this.maxrole = maxrole;
}
public String toString() {
return new ToStringBuilder(this)
.append("permid", getPermid())
.toString();
}
public boolean equals(Object other) {
if ( !(other instanceof Permision) ) return false;
Permision castOther = (Permision) other;
return new EqualsBuilder()
.append(this.getPermid(), castOther.getPermid())
.isEquals();
}
public int hashCode() {
return new HashCodeBuilder()
.append(getPermid())
.toHashCode();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -