Java Code Examples for io.reactivex.Completable#fromPublisher()

The following examples show how to use io.reactivex.Completable#fromPublisher() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MongoOrganizationRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(collection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 2
Source File: MongoIdentityProviderRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(identitiesCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 3
Source File: MongoEmailRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(emailsCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 4
Source File: MongoScopeApprovalRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(scopeApprovalsCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 5
Source File: MongoScopeApprovalRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable deleteByDomainAndScopeKey(String domain, String scope) {
    return Completable.fromPublisher(scopeApprovalsCollection.deleteMany(
            and(eq(FIELD_DOMAIN, domain), eq(FIELD_SCOPE, scope))));
}
 
Example 6
Source File: MongoFactorRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(factorsCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 7
Source File: MongoCertificateRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(certificatesCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 8
Source File: MongoReporterRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(reportersCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 9
Source File: MongoPermissionTicketRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(permissionTicketCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 10
Source File: MongoScopeApprovalRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable deleteByDomainAndUser(String domain, String user) {
    return Completable.fromPublisher(scopeApprovalsCollection.deleteMany(
            and(eq(FIELD_DOMAIN, domain), eq(FIELD_USER_ID, user))));
}
 
Example 11
Source File: ToCompletable.java    From smallrye-mutiny with Apache License 2.0 4 votes vote down vote up
@Override
public Completable apply(Uni<T> uni) {
    return Completable.fromPublisher(uni.convert().toPublisher());
}
 
Example 12
Source File: MongoLoginAttemptRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(LoginAttemptCriteria criteria) {
    return Completable.fromPublisher(loginAttemptsCollection.deleteOne(query(criteria)));
}
 
Example 13
Source File: MongoLoginAttemptRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(loginAttemptsCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 14
Source File: MongoClientRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable deleteCollection() {
    return Completable.fromPublisher(mongoOperations.getCollection(COLLECTION_NAME).drop());
}
 
Example 15
Source File: MongoAccessPolicyRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(accessPoliciesCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 16
Source File: MongoGroupRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(groupsCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 17
Source File: MongoRefreshTokenRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String token) {
    return Completable.fromPublisher(refreshTokenCollection.deleteOne(eq(FIELD_TOKEN, token)));
}
 
Example 18
Source File: MongoScopeRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable delete(String id) {
    return Completable.fromPublisher(scopesCollection.deleteOne(eq(FIELD_ID, id)));
}
 
Example 19
Source File: MongoScopeApprovalRepository.java    From graviteeio-access-management with Apache License 2.0 4 votes vote down vote up
@Override
public Completable deleteByDomainAndUserAndClient(String domain, String user, String client) {
    return Completable.fromPublisher(scopeApprovalsCollection.deleteMany(
            and(eq(FIELD_DOMAIN, domain), eq(FIELD_USER_ID, user), eq(FIELD_CLIENT_ID, client))));
}
 
Example 20
Source File: ToCompletable.java    From smallrye-mutiny with Apache License 2.0 4 votes vote down vote up
@Override
public Completable apply(Multi<T> multi) {
    return Completable.fromPublisher(multi.onItem().ignore());
}