01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/wizard/api-impl/src/java/org/theospi/portfolio/wizard/taggable/impl/WizardActivityImpl.java $
03: * $Id: WizardActivityImpl.java 21095 2007-02-07 18:00:48Z jmpease@syr.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2007 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.theospi.portfolio.wizard.taggable.impl;
21:
22: import org.sakaiproject.assignment.taggable.api.TaggableActivity;
23: import org.sakaiproject.assignment.taggable.api.TaggableActivityProducer;
24: import org.theospi.portfolio.matrix.model.WizardPageDefinition;
25:
26: public class WizardActivityImpl implements TaggableActivity {
27:
28: TaggableActivityProducer producer;
29:
30: WizardPageDefinition def;
31:
32: WizardReference reference;
33:
34: public WizardActivityImpl(WizardPageDefinition def,
35: TaggableActivityProducer producer) {
36: this .def = def;
37: this .producer = producer;
38: reference = new WizardReference(WizardReference.REF_DEF, def
39: .getId().toString());
40: }
41:
42: public Object getObject() {
43: return def;
44: }
45:
46: public String getContext() {
47: return def.getSiteId();
48: }
49:
50: public String getDescription() {
51: return def.getDescription();
52: }
53:
54: public TaggableActivityProducer getProducer() {
55: return producer;
56: }
57:
58: public String getReference() {
59: return reference.toString();
60: }
61:
62: public String getTitle() {
63: return def.getTitle();
64: }
65: }
|