public static org.sakaiproject.event.api.NotificationEdit addTransientNotification() { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return null; return service.addTransientNotification(); }
public static List<org.sakaiproject.event.api.Notification> findNotifications(java.lang.String param0, java.lang.String param1) { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return null; return service.findNotifications(param0, param1); }
public void destroy() { if ( notificationService != null && notification != null ) { notificationService.removeNotification(notification); } }
public static org.sakaiproject.event.api.NotificationEdit addNotification() { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return null; return service.addNotification(); }
public static void cancelEdit(org.sakaiproject.event.api.NotificationEdit param0) { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return; service.cancelEdit(param0); }
public static org.sakaiproject.event.api.NotificationEdit addNotification() { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return null; return service.addNotification(); }
public static void cancelEdit(org.sakaiproject.event.api.NotificationEdit param0) { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return; service.cancelEdit(param0); }
public static org.sakaiproject.event.api.NotificationEdit addTransientNotification() { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return null; return service.addTransientNotification(); }
public void destroy() { if ( notificationService != null && notification != null ) { notificationService.removeNotification(notification); } }
public static List<org.sakaiproject.event.api.Notification> findNotifications(java.lang.String param0, java.lang.String param1) { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return null; return service.findNotifications(param0, param1); }
/** * Registered this {@link NotificationAction} with the * {@link NotificationService}. Typically invoked by DI framework. */ public void init() { NotificationEdit notification = notificationService.addTransientNotification(); // we're only interested in being notified of site deletions notification.setFunction(SiteService.SECURE_REMOVE_SITE); // reiterate that we're only interested in site deletions (likely overkill) notification.setResourceFilter(SiteService.REFERENCE_ROOT); // assign this object as the actual action to be fired on site deletions notification.setAction(this); }
public static void removeNotification(org.sakaiproject.event.api.NotificationEdit param0) { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return; service.removeNotification(param0); }
public void notifySiteParticipant(String filter) { List<Notification> notifications = notificationService().findNotifications( "gradebook.updateItemScore", filter); for (Notification notification : notifications) { String eventDataString = notification.getProperties().getProperty("SAKAI:conditionEventState"); Event event = eventTrackingService().newEvent( "cond+" + notification.getFunction(), notification.getResourceFilter() + eventDataString, false); NotificationAction action = notification.getAction(); action.notify(notification, event); } }
@Override public void registerEventCallbacks(NotificationService notificationService) { // register a transient notification for resources this.notificationService = notificationService; this.notification = notificationService.addTransientNotification(); // we don't care about create evets this.notification.addFunction(TAG_UPDATE_EVENT); this.notification.addFunction(TAG_DELETE_EVENT); this.notification.addFunction(TAGCOLLECTION_UPDATE_EVENT); this.notification.addFunction(TAGCOLLECTION_DELETE_EVENT); this.notification.setAction(this); }
public static void removeNotification(org.sakaiproject.event.api.NotificationEdit param0) { org.sakaiproject.event.api.NotificationService service = getInstance(); if (service == null) return; service.removeNotification(param0); }
@Override public void registerEventCallbacks(NotificationService notificationService) { // register a transient notification for resources this.notificationService = notificationService; this.notification = notificationService.addTransientNotification(); // we don't care about create evets this.notification.addFunction(TAG_UPDATE_EVENT); this.notification.addFunction(TAG_DELETE_EVENT); this.notification.addFunction(TAGCOLLECTION_UPDATE_EVENT); this.notification.addFunction(TAGCOLLECTION_DELETE_EVENT); this.notification.setAction(this); }
notification = notificationService.addTransientNotification();
NotificationEdit notify = notificationService.addTransientNotification();
NotificationEdit edit = m_notificationService.addTransientNotification(); edit.setAction(siteEmailNotificationContent); NotificationEdit dbNoti = m_notificationService.addTransientNotification();