01: /*******************************************************************************
02: * Copyright (c) 2006 The Regents of the University of California, The MIT Corporation
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: ******************************************************************************/package org.sakaiproject.tool.gradebook.facades.sakai2impl;
16:
17: import org.sakaiproject.tool.gradebook.facades.EventTrackingService;
18: import org.sakaiproject.event.api.Event;
19:
20: /**
21: * Author:Louis Majanja <louis@media.berkeley.edu>
22: * Date: Feb 22, 2007
23: * Time: 3:35:45 PM
24: *
25: * a sakai implementation of the EventTrackingService facade
26: */
27: public class EventTrackingServiceSakai2Impl implements
28: EventTrackingService {
29:
30: private org.sakaiproject.event.api.EventTrackingService eventTrackingService;
31:
32: /**
33: *
34: * @param message
35: * @param objectReference
36: */
37: public void postEvent(String message, String objectReference) {
38: Event event = eventTrackingService.newEvent(message,
39: objectReference, true);
40: eventTrackingService.post(event);
41: }
42:
43: /**
44: *
45: * @return
46: */
47: public org.sakaiproject.event.api.EventTrackingService getEventTrackingService() {
48: return eventTrackingService;
49: }
50:
51: /**
52: *
53: * @param eventTrackingService
54: */
55: public void setEventTrackingService(
56: org.sakaiproject.event.api.EventTrackingService eventTrackingService) {
57: this.eventTrackingService = eventTrackingService;
58: }
59: }
|