package org.gluu.persist.hybrid.impl;

import java.util.List;

import org.gluu.persist.operation.PersistenceOperationService;

/**
 * Hybrid Operation Service
 *
 * @author Yuriy Movchan Date: 05/13/2018
 */
public class HybridPersistenceOperationService implements PersistenceOperationService {

	private List<PersistenceOperationService> persistenceOperationServices;

	public HybridPersistenceOperationService(List<PersistenceOperationService> persistenceOperationServices) {
		this.persistenceOperationServices = persistenceOperationServices;
	}

	@Override
	public boolean isConnected() {
		for(PersistenceOperationService persistenceOperationService : persistenceOperationServices) {
			if (!persistenceOperationService.isConnected()) {
				return false;
			}
		}

		return true;
	}

}

@@ -783,10 +783,131 @@
 ue;%0A%09%7D%0A%0A
+%09public List%3CPersistenceOperationService%3E getPersistenceOperationServices() %7B%0A%09%09return persistenceOperationServices;%0A%09%7D%0A%0A
 %7D%0A

Add method to used operation services