View Javadoc
1   /**
2    * Copyright By Grandsoft Company Limited.  
3    * 2012-3-16 下午01:34:57
4    */
5   package gboat2.web.model;
6   
7   import gboat2.base.core.annotation.Field;
8   import gboat2.base.core.annotation.Relation;
9   import gboat2.base.core.annotation.RelationType;
10  import gboat2.base.core.annotation.Relations;
11  
12  /**
13   * 模块权限
14   * @author wangsr
15   * @since jdk1.6
16   * @date 2012-3-16
17   *  
18   */
19  @Relations(base = Authority.class, value = { @Relation(baseColumn = "resId", refer = Resource.class, referColumn = "resId", type = RelationType.LEFT) })
20  public class AuthorityResourceVO extends Resource {
21  
22  	@Field(clazz = Authority.class)
23  	private String authForId;
24  
25  	@Field(clazz = Authority.class)
26  	private String useStatus;
27  
28  	/**
29  	 * 标识权限是否是从别人继承的,在查询出权限的时候设置
30  	 * true: 继承
31  	 * 【不设置】或【false】则是自己的权限
32  	 */
33  	private String inheritFlag;
34  
35  	//权限是从那里接触过来的,可选的值:"group","role"
36  	private String inheritFrom;
37  
38  	public String getAuthForId() {
39  		return authForId;
40  	}
41  
42  	public void setAuthForId(String authForId) {
43  		this.authForId = authForId;
44  	}
45  
46  	public String getUseStatus() {
47  		return useStatus;
48  	}
49  
50  	public void setUseStatus(String useStatus) {
51  		this.useStatus = useStatus;
52  	}
53  
54  	public String getInheritFlag() {
55  		return inheritFlag;
56  	}
57  
58  	public void setInheritFlag(String inheritFlag) {
59  		this.inheritFlag = inheritFlag;
60  	}
61  
62  	public String getInheritFrom() {
63  		return inheritFrom;
64  	}
65  
66  	public void setInheritFrom(String inheritFrom) {
67  		this.inheritFrom = inheritFrom;
68  	}
69  
70  }