KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > dlog4j > formbean > UserRole


1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  */

16 package dlog4j.formbean;
17
18 import java.io.Serializable JavaDoc;
19
20 /**
21  * 用户操作权限,对应dlog_siteuser的一条记录
22  * @author Liudong
23  */

24 public class UserRole implements Serializable JavaDoc {
25
26     int id;
27     SiteForm site;
28     UserForm user;
29     int role;
30     
31     public UserRole() {
32     }
33     public UserRole(SiteForm site, UserForm user, int role) {
34         this.site = site;
35         this.user = user;
36         this.role = role;
37     }
38
39     public int getRole() {
40         return role;
41     }
42     public void setRole(int role) {
43         this.role = role;
44     }
45     public SiteForm getSite() {
46         return site;
47     }
48     public void setSite(SiteForm site) {
49         this.site = site;
50     }
51     public UserForm getUser() {
52         return user;
53     }
54     public void setUser(UserForm user) {
55         this.user = user;
56     }
57     public int getId() {
58         return id;
59     }
60     public void setId(int id) {
61         this.id = id;
62     }
63 }
64
Popular Tags