01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/syllabus/tags/sakai_2-4-1/syllabus-api/src/java/org/sakaiproject/api/app/syllabus/cover/SyllabusService.java $
03: * $Id: SyllabusService.java 10216 2006-06-06 04:15:49Z ggolden@umich.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.cover;
21:
22: import java.util.List;
23:
24: import org.sakaiproject.component.cover.ComponentManager;
25:
26: public class SyllabusService {
27: public static java.lang.String APPLICATION_ID = org.sakaiproject.api.app.syllabus.SyllabusService.APPLICATION_ID;
28:
29: private static org.sakaiproject.api.app.syllabus.SyllabusService m_instance = null;
30:
31: /**
32: * Access the component instance: special cover only method.
33: *
34: * @return the component instance.
35: */
36: public static org.sakaiproject.api.app.syllabus.SyllabusService getInstance() {
37: if (ComponentManager.CACHE_COMPONENTS) {
38: if (m_instance == null)
39: m_instance = (org.sakaiproject.api.app.syllabus.SyllabusService) ComponentManager
40: .get(org.sakaiproject.api.app.syllabus.SyllabusService.class);
41: return m_instance;
42: } else {
43: return (org.sakaiproject.api.app.syllabus.SyllabusService) ComponentManager
44: .get(org.sakaiproject.api.app.syllabus.SyllabusService.class);
45: }
46: }
47:
48: public static java.lang.String merge(java.lang.String param0,
49: org.w3c.dom.Element param1, java.lang.String param2,
50: java.lang.String param3, java.util.Map param4,
51: java.util.HashMap param5, java.util.Set param6) {
52: org.sakaiproject.api.app.syllabus.SyllabusService service = getInstance();
53: if (service == null)
54: return null;
55:
56: return service.merge(param0, param1, param2, param3, param4,
57: param5, param6);
58: }
59:
60: public static java.lang.String getLabel() {
61: org.sakaiproject.api.app.syllabus.SyllabusService service = getInstance();
62: if (service == null)
63: return null;
64:
65: return service.getLabel();
66: }
67:
68: public static java.lang.String archive(java.lang.String param0,
69: org.w3c.dom.Document param1, java.util.Stack param2,
70: java.lang.String param3, java.util.List param4) {
71: org.sakaiproject.api.app.syllabus.SyllabusService service = getInstance();
72: if (service == null)
73: return null;
74:
75: return service.archive(param0, param1, param2, param3, param4);
76:
77: }
78:
79: public static void importResources(java.lang.String param0,
80: java.lang.String param1, java.util.List param2) {
81: org.sakaiproject.api.app.syllabus.SyllabusService service = getInstance();
82: if (service == null)
83: return;
84:
85: service.importEntities(param0, param1, param2);
86: }
87:
88: public static List getMessages(String id) {
89: org.sakaiproject.api.app.syllabus.SyllabusService service = getInstance();
90: if (service == null)
91: return null;
92:
93: return service.getMessages(id);
94: }
95: }
|