@Test public void testNotFoundById() throws TechnicalException { credentialRepository.findById("test").test().assertEmpty(); }
@Override public Maybe<Credential> findById(String id) { return Observable.fromPublisher(credentialsCollection.find(eq(FIELD_ID, id)).first()).firstElement().map(this::convert); }
MongoCredentialRepository extends AbstractManagementMongoRepository implements CredentialRepository { @Override public Maybe<Credential> findById(String id) { return Observable.fromPublisher(credentialsCollection.find(eq(FIELD_ID, id)).first()).firstElement().map(this::convert); } }
MongoCredentialRepository extends AbstractManagementMongoRepository implements CredentialRepository { @Override public Maybe<Credential> findById(String id) { return Observable.fromPublisher(credentialsCollection.find(eq(FIELD_ID, id)).first()).firstElement().map(this::convert); }  }
MongoCredentialRepository extends AbstractManagementMongoRepository implements CredentialRepository { @Override public Maybe<Credential> findById(String id) { return Observable.fromPublisher(credentialsCollection.find(eq(FIELD_ID, id)).first()).firstElement().map(this::convert); }  @PostConstruct void init(); @Override Single<List<Credential>> findByUserId(ReferenceType referenceType, String referenceId, String userId); @Override Single<List<Credential>> findByUsername(ReferenceType referenceType, String referenceId, String username); @Override Single<List<Credential>> findByCredentialId(ReferenceType referenceType, String referenceId, String credentialId); @Override Maybe<Credential> findById(String id); @Override Single<Credential> create(Credential item); @Override Single<Credential> update(Credential item); @Override Completable delete(String id); }
MongoCredentialRepository extends AbstractManagementMongoRepository implements CredentialRepository { @Override public Maybe<Credential> findById(String id) { return Observable.fromPublisher(credentialsCollection.find(eq(FIELD_ID, id)).first()).firstElement().map(this::convert); }  @PostConstruct void init(); @Override Single<List<Credential>> findByUserId(ReferenceType referenceType, String referenceId, String userId); @Override Single<List<Credential>> findByUsername(ReferenceType referenceType, String referenceId, String username); @Override Single<List<Credential>> findByCredentialId(ReferenceType referenceType, String referenceId, String credentialId); @Override Maybe<Credential> findById(String id); @Override Single<Credential> create(Credential item); @Override Single<Credential> update(Credential item); @Override Completable delete(String id);  }