permision.java

来自「这是一个轻便的j2ee的web应用框架,是一个在多个项目中运用的实际框架,采用s」· Java 代码 · 共 106 行

JAVA
106
字号
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 + =
减小字号Ctrl + -
显示快捷键?