01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/syllabus/tags/sakai_2-4-1/syllabus-api/src/java/org/sakaiproject/api/app/syllabus/SyllabusService.java $
03: * $Id: SyllabusService.java 13031 2006-07-27 19:22:15Z 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 org.sakaiproject.entity.api.Entity;
23: import org.sakaiproject.entity.api.EntityProducer;
24:
25: import java.util.List;
26:
27: public interface SyllabusService extends EntityProducer {
28: /** This string can be used to find the service in the service manager. */
29: public static final String APPLICATION_ID = "sakai:syllabus";
30:
31: public static final String EVENT_SYLLABUS_POST_NEW = "syllabus.post.new";
32:
33: public static final String EVENT_SYLLABUS_POST_CHANGE = "syllabus.post.change";
34:
35: //for adding more logging info and not send out email notification
36: //public static final String EVENT_SYLLABUS_DELETE_POST = "syllabus.delete.posted";
37: public static final String EVENT_SYLLABUS_DELETE_POST = "syllabus.delete";
38:
39: public static final String EVENT_SYLLABUS_READ = "syllabus.read";
40:
41: public static final String EVENT_SYLLABUS_DRAFT_NEW = "syllabus.draft.new";
42:
43: public static final String EVENT_SYLLABUS_DRAFT_CHANGE = "syllabus.draft.change";
44:
45: public static final String REFERENCE_ROOT = Entity.SEPARATOR
46: + "syllabus";
47:
48: public static final String SYLLABUS_SERVICE_NAME = "org.sakaiproject.api.app.syllabus.SyllabusService";
49:
50: //permission convert
51: public static final String PERMISSION_UPDATE = "syllabus.update";
52:
53: public void postNewSyllabus(SyllabusData data);
54:
55: public void postChangeSyllabus(SyllabusData data);
56:
57: public void deletePostedSyllabus(SyllabusData data);
58:
59: public void readSyllabus(SyllabusData data);
60:
61: public void draftNewSyllabus(SyllabusData data);
62:
63: public void draftChangeSyllabus(SyllabusData data);
64:
65: public List getMessages(String id);
66:
67: public void importEntities(String fromSiteId, String toSiteId,
68: List resourceIds);
69:
70: //permission convert
71: public String getEntityReference(SyllabusData sd, String this SiteId);
72:
73: public String getSyllabusApplicationSiteReference(String this SiteId);
74:
75: public boolean checkPermission(String lock, String reference);
76:
77: }
|