diff options
Diffstat (limited to 'cps-service/src/main/java/org/onap/cps/spi/CpsAdminPersistenceService.java')
-rw-r--r-- | cps-service/src/main/java/org/onap/cps/spi/CpsAdminPersistenceService.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cps-service/src/main/java/org/onap/cps/spi/CpsAdminPersistenceService.java b/cps-service/src/main/java/org/onap/cps/spi/CpsAdminPersistenceService.java index 1b7ddb724..ba53003ac 100644 --- a/cps-service/src/main/java/org/onap/cps/spi/CpsAdminPersistenceService.java +++ b/cps-service/src/main/java/org/onap/cps/spi/CpsAdminPersistenceService.java @@ -23,6 +23,7 @@ package org.onap.cps.spi; import java.util.Collection; import org.checkerframework.checker.nullness.qual.NonNull; +import org.onap.cps.spi.exceptions.DataspaceAlreadyDefinedException; import org.onap.cps.spi.model.Anchor; /* @@ -31,6 +32,14 @@ import org.onap.cps.spi.model.Anchor; public interface CpsAdminPersistenceService { /** + * Create dataspace. + * + * @param dataspaceName dataspace name + * @throws DataspaceAlreadyDefinedException if dataspace with same name already exists + */ + void createDataspace(@NonNull String dataspaceName); + + /** * Create an Anchor. * * @param dataspaceName dataspace name |