01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/syllabus/tags/sakai_2-4-1/syllabus-api/src/java/org/sakaiproject/api/app/syllabus/SyllabusManager.java $
03: * $Id: SyllabusManager.java 8802 2006-05-03 15:06:26Z cwen@iupui.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 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.api.app.syllabus;
21:
22: import java.util.Set;
23:
24: public interface SyllabusManager {
25: /**
26: * creates an SyllabusItem
27: */
28: public SyllabusItem createSyllabusItem(String userId,
29: String contextId, String redirectURL);
30:
31: public SyllabusItem getSyllabusItemByUserAndContextIds(
32: final String userId, final String contextId);
33:
34: public void saveSyllabusItem(SyllabusItem item);
35:
36: public void addSyllabusToSyllabusItem(
37: final SyllabusItem syllabusItem,
38: final SyllabusData syllabusData);
39:
40: public void removeSyllabusFromSyllabusItem(
41: final SyllabusItem syllabusItem,
42: final SyllabusData syllabusData);
43:
44: public SyllabusData createSyllabusDataObject(String title,
45: Integer position, String assetId, String view,
46: String status, String emailNotification);
47:
48: public void removeSyllabusDataObject(SyllabusData o);
49:
50: public Set getSyllabiForSyllabusItem(final SyllabusItem syllabusItem);
51:
52: public void swapSyllabusDataPositions(
53: final SyllabusItem syllabusItem, final SyllabusData d1,
54: final SyllabusData d2);
55:
56: public void saveSyllabus(SyllabusData data);
57:
58: public Integer findLargestSyllabusPosition(
59: final SyllabusItem syllabusItem);
60:
61: public SyllabusItem getSyllabusItemByContextId(
62: final String contextId);
63:
64: public SyllabusData getSyllabusData(final String dataId);
65:
66: public SyllabusAttachment createSyllabusAttachmentObject(
67: String attachId, String name);
68:
69: public void saveSyllabusAttachment(SyllabusAttachment attach);
70:
71: public void addSyllabusAttachToSyllabusData(
72: final SyllabusData syllabusData,
73: final SyllabusAttachment syllabusAttach);
74:
75: public void removeSyllabusAttachmentObject(SyllabusAttachment o);
76:
77: public void removeSyllabusAttachSyllabusData(
78: final SyllabusData syllabusData,
79: final SyllabusAttachment syllabusAttach);
80:
81: public Set getSyllabusAttachmentsForSyllabusData(
82: final SyllabusData syllabusData);
83:
84: public SyllabusAttachment getSyllabusAttachment(
85: final String syllabusAttachId);
86:
87: //public SyllabusAttachment creatSyllabusAttachmentResource(String attachId, String name);
88: }
|