01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/tags/sakai_2-4-1/samigo-hibernate/src/java/org/sakaiproject/tool/assessment/data/dao/authz/QualifierData.java $
03: * $Id: QualifierData.java 15083 2006-09-20 20:03:55Z lydial@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 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.tool.assessment.data.dao.authz;
21:
22: import org.sakaiproject.tool.assessment.data.ifc.authz.QualifierIfc;
23: import org.sakaiproject.tool.assessment.data.ifc.authz.QualifierIteratorIfc;
24:
25: public class QualifierData implements QualifierIfc {
26: /**
27: *
28: */
29: private static final long serialVersionUID = -8657439480162351350L;
30: // private String qualifierId;
31: private long qualifierId;
32: private String referenceName;
33: private String displayName;
34: private String description;
35: private String qualifierTypeId;
36: private QualifierIteratorIfc parentsIter;
37: private QualifierIteratorIfc childrenIter;
38:
39: /**
40: * Creates a new QualifierData object.
41: */
42: public QualifierData() {
43: }
44:
45: /**
46: * Creates a new QualifierData object.
47: */
48: public QualifierData(String qualifierId, String referenceName,
49: String displayName, String description,
50: String qualifierTypeId) {
51: // this.qualifierId = qualifierId;
52: this .qualifierId = (new Long(qualifierId)).longValue();
53: this .referenceName = referenceName;
54: this .displayName = displayName;
55: this .description = description;
56: this .qualifierTypeId = qualifierTypeId;
57: }
58:
59: public long getQualifierId() {
60: return this .qualifierId;
61: }
62:
63: public void setQualifierId(long id) {
64: this .qualifierId = id;
65: }
66:
67: public String getReferenceName() {
68: return this .referenceName;
69: }
70:
71: public void setReferenceName(String referenceName) {
72: this .referenceName = referenceName;
73: }
74:
75: public String getDisplayName() {
76: return this .displayName;
77: }
78:
79: public void setDisplayName(String display_name) {
80: this .displayName = display_name;
81: }
82:
83: public String getDescription() {
84: return this .description;
85: }
86:
87: public void setDescription(String description) {
88: this .description = description;
89: }
90:
91: public String getQualifierTypeId() {
92: return this .qualifierTypeId;
93: }
94:
95: public void setQualifierTypeId(String qualifierTypeId) {
96: this.qualifierTypeId = qualifierTypeId;
97: }
98:
99: }
|