@Override public List<Event> getEvents() { return Collections.<Event>singletonList(new DocumentCreatingEvent()); }
@Override public List<Event> getEvents() { return Collections.<Event>singletonList(new DocumentCreatingEvent()); }
@Override public List<Event> getEvents() { return Collections.<Event>singletonList(new DocumentCreatingEvent()); }
@Override public List<Event> getEvents() { return Collections.<Event>singletonList(new DocumentCreatingEvent()); }
@Override public List<Event> getEvents() { // The list of events this listener listens to return Arrays.<Event> asList(new DocumentCreatingEvent(), new DocumentUpdatingEvent()); }
@Override public List<Event> getEvents() { // The list of events this listener listens to return Arrays.<Event>asList(new DocumentCreatingEvent(), new DocumentUpdatingEvent()); }
@Override public List<Event> getEvents() { // The list of events this listener listens to return Arrays.<Event>asList(new DocumentCreatingEvent(), new DocumentUpdatingEvent()); }
@Override public List<Event> getEvents() { // The list of events this listener listens to return Arrays.<Event> asList(new DocumentCreatingEvent(), new DocumentUpdatingEvent()); }
@Override public List<Event> getEvents() { // The list of events this listener listens to return Arrays.<Event> asList(new DocumentCreatingEvent(), new DocumentUpdatingEvent()); }
@Override public List<Event> getEvents() { // The list of events this listener listens to return Arrays.<Event> asList(new DocumentCreatingEvent(), new DocumentUpdatingEvent()); }
@Override public List<Event> getEvents() { // The list of events this listener listens to return Arrays.<Event>asList(new DocumentCreatingEvent(), new DocumentUpdatingEvent()); }
@Override public List<Event> getEvents() { // The list of events this listener listens to return Arrays.<Event>asList(new DocumentCreatingEvent(), new DocumentUpdatingEvent()); }
/** Default constructor, sets up the listener name and the list of events to subscribe to. */ public DeprecatedPhenotypeUpdaterEventListener() { super("deprecated-phenotype-updater", new DocumentCreatingEvent(), new DocumentUpdatingEvent()); this.fieldsToFix = new HashSet<String>(); this.fieldsToFix.add("phenotype"); this.fieldsToFix.add("extended_phenotype"); this.fieldsToFix.add("negative_phenotype"); this.fieldsToFix.add("extended_negative_phenotype"); this.fieldsToFix.add("prenatal_phenotype"); this.fieldsToFix.add("extended_prenatal_phenotype"); this.fieldsToFix.add("negative_prenatal_phenotype"); this.fieldsToFix.add("extended_negative_prenatal_phenotype"); }
XWikiDocChangeNotificationInterface.EVENT_NEW, context); if (om != null) { om.notify(new DocumentCreatingEvent(doc.getDocumentReference()), doc, context);