@Test public void testIsWatched() throws Exception { TestPirasoRequest request = mockPirasoRequest("test", "a1"); assertFalse(registry.isWatched(request)); User user = registry.createOrGetUser(request); ResponseLoggerService service = mockService(request.getRemoteAddr(), true); registry.associate(user, service); assertTrue(registry.isWatched(request)); }
public boolean isWatched(PirasoEntryPoint request) throws IOException { return CollectionUtils.isNotEmpty(getContextLoggers(request)); }
DefaultUserRegistryImpl implements UserRegistry { public boolean isWatched(PirasoEntryPoint request) throws IOException { return CollectionUtils.isNotEmpty(getContextLoggers(request)); } }
DefaultUserRegistryImpl implements UserRegistry { public boolean isWatched(PirasoEntryPoint request) throws IOException { return CollectionUtils.isNotEmpty(getContextLoggers(request)); }  }
DefaultUserRegistryImpl implements UserRegistry { public boolean isWatched(PirasoEntryPoint request) throws IOException { return CollectionUtils.isNotEmpty(getContextLoggers(request)); }  List<Preferences> getContextPreferences(PirasoEntryPoint entryPoint); Map<User, ResponseLoggerService> getUserLoggerMap(); List<ResponseLoggerService> getContextLoggers(PirasoEntryPoint request); void clear(); boolean isWatched(PirasoEntryPoint request); boolean isUserExist(User user); User createOrGetUser(PirasoRequest request); ResponseLoggerService getLogger(User user); void associate(User user, ResponseLoggerService service); void removeUser(User user); }
DefaultUserRegistryImpl implements UserRegistry { public boolean isWatched(PirasoEntryPoint request) throws IOException { return CollectionUtils.isNotEmpty(getContextLoggers(request)); }  List<Preferences> getContextPreferences(PirasoEntryPoint entryPoint); Map<User, ResponseLoggerService> getUserLoggerMap(); List<ResponseLoggerService> getContextLoggers(PirasoEntryPoint request); void clear(); boolean isWatched(PirasoEntryPoint request); boolean isUserExist(User user); User createOrGetUser(PirasoRequest request); ResponseLoggerService getLogger(User user); void associate(User user, ResponseLoggerService service); void removeUser(User user);  }