@Test @FixFor( "MODE-2019" ) public void shouldProvideFullEventJournal() throws Exception { Node node1 = getRoot().addNode("node1"); node1.setProperty("prop1", "value"); node1.setProperty("prop2", "value2"); Node node2 = getRoot().addNode("node2"); session.save(); Thread.sleep(100); node1.setProperty("prop2", "edited value"); node1.setProperty("prop1", (String) null); node2.remove(); session.save(); Thread.sleep(100); EventJournal eventJournal = getObservationManager().getEventJournal(); assertPathsInJournal(eventJournal, false, "/testroot/node1", "/testroot/node1/jcr:primaryType", "/testroot/node1/prop1", "/testroot/node1/prop2", "/testroot/node2/jcr:primaryType", "/testroot/node2/jcr:primaryType", "/testroot/node1/prop2", "/testroot/node1/prop1", "/testroot/node1/prop2"); }
@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 );  }