01: /*
02: * This program is free software; you can redistribute it and/or modify
03: * it under the terms of the GNU General Public License as published by
04: * the Free Software Foundation; either version 2 of the License, or
05: * (at your option) any later version.
06: *
07: * This program is distributed in the hope that it will be useful,
08: * but WITHOUT ANY WARRANTY; without even the implied warranty of
09: * 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;
19:
20: /**
21: * 用户操作权限,对应dlog_siteuser的一条记录
22: * @author Liudong
23: */
24: public class UserRole implements Serializable {
25:
26: int id;
27: SiteForm site;
28: UserForm user;
29: int role;
30:
31: public UserRole() {
32: }
33:
34: public UserRole(SiteForm site, UserForm user, int role) {
35: this .site = site;
36: this .user = user;
37: this .role = role;
38: }
39:
40: public int getRole() {
41: return role;
42: }
43:
44: public void setRole(int role) {
45: this .role = role;
46: }
47:
48: public SiteForm getSite() {
49: return site;
50: }
51:
52: public void setSite(SiteForm site) {
53: this .site = site;
54: }
55:
56: public UserForm getUser() {
57: return user;
58: }
59:
60: public void setUser(UserForm user) {
61: this .user = user;
62: }
63:
64: public int getId() {
65: return id;
66: }
67:
68: public void setId(int id) {
69: this.id = id;
70: }
71: }
|