package de.evoila.cf.broker.repository;

import de.evoila.cf.broker.model.ServiceInstance;

/**
 * @author Christian Brinker, evoila.
 * @author Marco Di Martino, evoila.
 */
public interface ServiceInstanceRepository {

	ServiceInstance getServiceInstance(String instanceId);

	boolean containsServiceInstanceId(String serviceInstanceId);

	void addServiceInstance(String id, ServiceInstance serviceInstance);

	void deleteServiceInstance(String serviceInstanceId);

	void updateServiceInstance(ServiceInstance serviceInstance);

}
@@ -85,16 +85,40 @@
 tance;%0A%0A
+import java.util.List;%0A%0A
 /**%0A * @
@@ -295,16 +295,110 @@
 ceId);%0A%0A
+%09List%3CServiceInstance%3E getServiceInstancesByServiceDefinitionId(String serviceDefinitionId);%0A%0A
 %09boolean

add method to get service instances by service definition id