01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/trunk/component/src/java/org/sakaiproject/tool/assessment/osid/authz/impl/FunctionImpl.java $
03: * $Id: FunctionImpl.java 9276 2006-05-10 23:04:20Z daisyf@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 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.osid.authz.impl;
21:
22: import org.osid.authorization.Function;
23: import org.osid.shared.Id;
24: import org.osid.shared.Type;
25:
26: public class FunctionImpl implements Function {
27: private Id id;
28: private String referenceName;
29: private String description;
30: private Type functionType;
31: private Id qualifierHierarchyId;
32:
33: public FunctionImpl() {
34: }
35:
36: public FunctionImpl(String referenceName, String description,
37: Type functionType, Id qualifierHierarchyId) {
38: this .referenceName = referenceName;
39: this .description = description;
40: this .functionType = functionType;
41: this .qualifierHierarchyId = qualifierHierarchyId;
42: }
43:
44: public Id getId() {
45: return id;
46: }
47:
48: public String getReferenceName() {
49: return referenceName;
50: }
51:
52: public String getDescription() {
53: return description;
54: }
55:
56: public Type getFunctionType() {
57: return functionType;
58: }
59:
60: public Id getQualifierHierarchyId() {
61: return qualifierHierarchyId;
62: }
63:
64: public void updateDescription(String parm1) {
65: this.description = parm1;
66: }
67:
68: }
|