@Test @FixFor( "MODE-2019" ) public void shouldProvideFilteredEventJournal() throws Exception { Node node1 = getRoot().addNode("node1"); getRoot().addNode("node2"); Node node3 = getRoot().addNode("node3"); session.save(); Thread.sleep(200); EventJournal eventJournal = getObservationManager().getEventJournal(org.modeshape.jcr.api.observation.Event.ALL_EVENTS, null, true, new String[]{node1.getIdentifier(), node3.getIdentifier()}, null); assertPathsInJournal(eventJournal, true, "/testroot/node1", "/testroot/node1/jcr:primaryType", "/testroot/node3", "/testroot/node3/jcr:primaryType"); }
@Override public EventJournal getEventJournal() { return session.repository().journalId() != null ? new JcrEventJournal() : null; }
JcrObservationManager implements ObservationManager { @Override public EventJournal getEventJournal() { return session.repository().journalId() != null ? new JcrEventJournal() : null; } }
JcrObservationManager implements ObservationManager { @Override public EventJournal getEventJournal() { return session.repository().journalId() != null ? new JcrEventJournal() : null; } JcrObservationManager( JcrSession session,
                           Observable repositoryObservable ); }
JcrObservationManager implements ObservationManager { @Override public EventJournal getEventJournal() { return session.repository().journalId() != null ? new JcrEventJournal() : null; } JcrObservationManager( JcrSession session,
                           Observable repositoryObservable ); @Override void addEventListener( EventListener listener,
                                  int eventTypes,
                                  String absPath,
                                  boolean isDeep,
                                  String[] uuid,
                                  String[] nodeTypeName,
                                  boolean noLocal ); @Override EventListenerIterator getRegisteredEventListeners(); @Override void removeEventListener( EventListener listener ); @Override void setUserData( String userData ); @Override EventJournal getEventJournal(); @Override EventJournal getEventJournal( int eventTypes,
                                         String absPath,
                                         boolean isDeep,
                                         String[] uuid,
                                         String[] nodeTypeName ); }
JcrObservationManager implements ObservationManager { @Override public EventJournal getEventJournal() { return session.repository().journalId() != null ? new JcrEventJournal() : null; } JcrObservationManager( JcrSession session,
                           Observable repositoryObservable ); @Override void addEventListener( EventListener listener,
                                  int eventTypes,
                                  String absPath,
                                  boolean isDeep,
                                  String[] uuid,
                                  String[] nodeTypeName,
                                  boolean noLocal ); @Override EventListenerIterator getRegisteredEventListeners(); @Override void removeEventListener( EventListener listener ); @Override void setUserData( String userData ); @Override EventJournal getEventJournal(); @Override EventJournal getEventJournal( int eventTypes,
                                         String absPath,
                                         boolean isDeep,
                                         String[] uuid,
                                         String[] nodeTypeName );  }