2 * Copyright (C) 2019 Bell Canada. All rights reserved.
4 * NOTICE: All the intellectual and technical concepts contained herein are
5 * proprietary to Bell Canada and are protected by trade secret or copyright law.
6 * Unauthorized copying of this file, via any medium is strictly prohibited.
9 package org.onap.ccsdk.cds.cdssdclistener.service;
11 import java.nio.file.Path;
12 import org.onap.sdc.api.results.IDistributionClientDownloadResult;
14 public interface ListenerService {
17 * Get the controller blueprint archive from CSAR package.
19 * @param csarArchivePath The path where CSAR archive is stored.
20 * @param cbaArchivePath The destination path where CBA will be stored.
22 void extractBluePrint(String csarArchivePath, String cbaArchivePath);
25 * Store the Zip file into CDS database.
27 * @param path path where zip file exists.
29 void saveBluePrintToCdsDatabase(Path path);
32 * Extract and store CSAR to file.
34 * @param result - IDistributionClientDownloadResult contains payload.
35 * @param csarArchivePath The destination path where CSAR will be stored.
37 void extractCsarAndStore(IDistributionClientDownloadResult result, String csarArchivePath);