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/FunctionData.java $
03: * $Id: FunctionData.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.FunctionIfc;
23:
24: public class FunctionData implements FunctionIfc {
25: /**
26: *
27: */
28: private static final long serialVersionUID = -8873492307746711610L;
29: private long functionId;
30: private String referenceName;
31: private String displayName;
32: private String description;
33: private String functionTypeId;
34:
35: public FunctionData() {
36: }
37:
38: /**
39: * Creates a new FunctionData object.
40: */
41: public FunctionData(String functionId, String referenceName,
42: String displayName, String description,
43: String functionTypeId) {
44: //this.functionId = functionId;
45: this .functionId = (new Long(functionId)).longValue();
46: this .referenceName = referenceName;
47: this .displayName = displayName;
48: this .description = description;
49: this .functionTypeId = functionTypeId;
50: }
51:
52: public long getFunctionId() {
53: return this .functionId;
54: }
55:
56: public void setFunctionId(long id) {
57: this .functionId = id;
58: }
59:
60: public String getReferenceName() {
61: return this .referenceName;
62: }
63:
64: public void setReferenceName(String referenceName) {
65: this .referenceName = referenceName;
66: }
67:
68: public String getDisplayName() {
69: return this .displayName;
70: }
71:
72: public void setDisplayName(String display_name) {
73: this .displayName = display_name;
74: }
75:
76: public String getDescription() {
77: return this .description;
78: }
79:
80: public void setDescription(String description) {
81: this .description = description;
82: }
83:
84: public String getFunctionTypeId() {
85: return this .functionTypeId;
86: }
87:
88: public void setFunctionTypeId(String functionTypeId) {
89: this.functionTypeId = functionTypeId;
90: }
91:
92: }
|