/** * Constructor initializing the event filter with a {@link org.xwiki.observation.event.filter.FixedNameEventFilter}, * meaning that this event will match only events of the same type affecting the same passed name. * * @param name a generic name that uniquely identifies an event type */ public AbstractFilterableEvent(String name) { this.eventFilter = new FixedNameEventFilter(name); }
/** * Constructor initializing the event filter with a {@link org.xwiki.observation.event.filter.FixedNameEventFilter}, * meaning that this event will match only comment events affecting the document matching the passed document name. * * @param documentName the name of the updated document to match * @param identifier the identifier of the comment added/updated/deleted */ public AbstractCommentEvent(String documentName, String identifier) { // TODO: depreciate this constructor and add a constructor taking a document reference instead super(new FixedNameEventFilter(documentName)); this.identifier = identifier; }
/** * Constructor initializing the event filter with a {@link org.xwiki.observation.event.filter.FixedNameEventFilter}, * meaning that this event will match only comment events affecting the document matching the passed document name. * * @param documentName the name of the updated document to match * @param identifier the identifier of the annotation added/updated/deleted */ public AbstractAnnotationEvent(String documentName, String identifier) { // TODO refactor annotation event to take a document reference as constructor and depreciate this constructor super(new FixedNameEventFilter(documentName)); this.identifier = identifier; }
/** * Constructor initializing the event filter with a {@link org.xwiki.observation.event.filter.FixedNameEventFilter}, * meaning that this event will match only attachment events affecting the document matching the passed document * name. * * @param documentName the name of the updated document to match * @param name the name of the attachment added/updated/deleted */ public AbstractAttachmentEvent(String documentName, String name) { // TODO: depreciate this constructor and add a constructor taking a document reference instead super(new FixedNameEventFilter(documentName)); this.name = name; }