function.java

来自「动态实现基于角色的权限管理Acegi+hibernate」· Java 代码 · 共 80 行

JAVA
80
字号
package sample.mappings.function;

import java.util.HashSet;
import java.util.Set;

import sample.mappings.MisBean;
import sample.mappings.module.Module;

/**
 * @author Toez
 * 
 */
public class Function extends MisBean {

    private String name;
    private String parentName;
    private String url;
    private String protectFunction;
    private String note;
    private Module module;

    private Set roles = new HashSet();

    public Module getModule() {
        return module;
    }

    public void setModule(Module module) {
        this.module = module;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getProtectFunction() {
        return protectFunction;
    }

    public void setProtectFunction(String protectFunction) {
        this.protectFunction = protectFunction;
    }

    public Set getRoles() {
        return roles;
    }

    public void setRoles(Set roles) {
        this.roles = roles;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?