01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/osp/tags/sakai_2-4-1/wizard/api/src/java/org/theospi/portfolio/wizard/taggable/api/WizardActivityProducer.java $
03: * $Id: WizardActivityProducer.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.api;
21:
22: import org.sakaiproject.assignment.taggable.api.TaggableActivity;
23: import org.sakaiproject.assignment.taggable.api.TaggableActivityProducer;
24: import org.sakaiproject.assignment.taggable.api.TaggableItem;
25: import org.theospi.portfolio.matrix.model.WizardPage;
26: import org.theospi.portfolio.matrix.model.WizardPageDefinition;
27:
28: /**
29: * A producer of wizard pages as taggable activities.
30: *
31: * @author The Sakai Foundation.
32: */
33: public interface WizardActivityProducer extends
34: TaggableActivityProducer {
35:
36: /**
37: * The identifier of this producer.
38: */
39: public static final String PRODUCER_ID = WizardActivityProducer.class
40: .getName();
41:
42: /**
43: * Method to wrap the given wizard page definition as a taggable activity.
44: *
45: * @param wizardPageDef
46: * The wizard page definition.
47: * @return The wizard page definition represented as a taggable activity.
48: */
49: public TaggableActivity getActivity(
50: WizardPageDefinition wizardPageDef);
51:
52: /**
53: * Method to wrap the given wizard page as a taggable item.
54: *
55: * @param wizardPage
56: * The wizard page.
57: * @return The wizard page represented as a taggable item.
58: */
59: public TaggableItem getItem(WizardPage wizardPage);
60: }
|