Merge "Allow separate registration of DMIDataPlugin and DmiModelPugin"
[cps.git] / cps-service / src / main / java / org / onap / cps / spi / CpsAdminPersistenceService.java
index b05385f..9553700 100755 (executable)
@@ -40,6 +40,13 @@ public interface CpsAdminPersistenceService {
      */
     void createDataspace(@NonNull String dataspaceName);
 
+    /**
+     * Delete dataspace.
+     *
+     * @param dataspaceName the name of the dataspace to delete
+     */
+    void deleteDataspace(@NonNull String dataspaceName);
+
     /**
      * Create an Anchor.
      *
@@ -58,6 +65,17 @@ public interface CpsAdminPersistenceService {
     @NonNull
     Collection<Anchor> getAnchors(@NonNull String dataspaceName);
 
+    /**
+     * Query anchor names for the given module names in the provided dataspace.
+     *
+     *
+     * @param dataspaceName dataspace name
+     * @param moduleNames a collection of module names
+     * @return a collection of anchor names in the given dataspace. The schema set for each anchor must include all the
+     *         given module names
+     */
+    Collection<Anchor> queryAnchors(String dataspaceName, Collection<String> moduleNames);
+
     /**
      * Get an anchor in the given dataspace using the anchor name.
      *