01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/access/trunk/access-impl/impl/src/java/org/sakaiproject/access/tool/AccessServlet.java $
03: * $Id: AccessServlet.java 17063 2006-10-11 19:48:42Z jimeng@umich.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.hbm.privacy;
21:
22: public class PrivacyRecordImpl {
23: private Long surrogateKey;
24: private Integer lockId;
25: private String contextId;
26: private String recordType;
27: private String userId;
28: private boolean viewable;
29:
30: public PrivacyRecordImpl() {
31:
32: }
33:
34: public PrivacyRecordImpl(String userId, String contextId,
35: String recordType, boolean viewable) {
36: this .userId = userId;
37: this .contextId = contextId;
38: this .recordType = recordType;
39: this .viewable = viewable;
40: }
41:
42: public String getContextId() {
43: return contextId;
44: }
45:
46: public Integer getLockId() {
47: return lockId;
48: }
49:
50: public String getRecordType() {
51: return recordType;
52: }
53:
54: public String getUserId() {
55: return userId;
56: }
57:
58: public boolean getViewable() {
59: return viewable;
60: }
61:
62: public void setContextId(String contextId) {
63: this .contextId = contextId;
64: }
65:
66: public void setLockId(Integer lockId) {
67: this .lockId = lockId;
68: }
69:
70: public void setRecordType(String recordType) {
71: this .recordType = recordType;
72: }
73:
74: public void setUserId(String userId) {
75: this .userId = userId;
76: }
77:
78: public void setViewable(boolean viewable) {
79: this .viewable = viewable;
80: }
81:
82: public Long getSurrogateKey() {
83: return surrogateKey;
84: }
85:
86: public void setSurrogateKey(Long surrogateKey) {
87: this.surrogateKey = surrogateKey;
88: }
89:
90: }
|