@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); }
@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 void init() { m_relativeAccessPoint = REFERENCE_ROOT; NotificationEdit edit = notificationService.addTransientNotification(); edit.setFunction(EVENT_SYLLABUS_POST_NEW); edit.addFunction(EVENT_SYLLABUS_POST_CHANGE); edit.addFunction(EVENT_SYLLABUS_DELETE_POST); edit.addFunction(EVENT_SYLLABUS_READ); edit.addFunction(EVENT_SYLLABUS_DRAFT_NEW); edit.addFunction(EVENT_SYLLABUS_DRAFT_CHANGE); edit.setResourceFilter(getAccessPoint(true)); edit.setAction(new SiteEmailNotificationSyllabus()); entityManager.registerEntityProducer(this, REFERENCE_ROOT); functionManager.registerFunction(SECURE_ADD_ITEM); functionManager.registerFunction(SECURE_BULK_ADD_ITEM); functionManager.registerFunction(SECURE_BULK_EDIT_ITEM); functionManager.registerFunction(SECURE_REDIRECT); }
edit.addFunction(RWikiObjectService.EVENT_RESOURCE_WRITE); edit.addFunction(RWikiObjectService.EVENT_RESOURCE_READ);
edit.addFunction(eventId(SECURE_UPDATE_OWN)); edit.addFunction(eventId(SECURE_UPDATE_ANY));
edit.addFunction(EVENT_RESOURCE_WRITE); dbNoti.addFunction(EVENT_RESOURCE_WRITE);