1efbe8f3306da26dc87f9040fbab84855da27926
[ccsdk/cds.git] /
1 /*
2  * Copyright (C) 2019 Bell Canada. All rights reserved.
3  *
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.
7  */
8
9 package org.onap.ccsdk.cds.cdssdclistener.service;
10
11 import java.nio.file.Path;
12 import org.onap.sdc.api.results.IDistributionClientDownloadResult;
13
14 public interface ListenerService {
15
16     /**
17      * Get the controller blueprint archive from CSAR package.
18      *
19      * @param csarArchivePath The path where CSAR archive is stored.
20      * @param cbaArchivePath The destination path where CBA will be stored.
21      */
22     void extractBluePrint(String csarArchivePath, String cbaArchivePath);
23
24     /**
25      * Store the Zip file into CDS database.
26      *
27      * @param path path where zip file exists.
28      */
29     void saveBluePrintToCdsDatabase(Path path);
30
31     /**
32      * Extract and store CSAR to file.
33      *
34      * @param result - IDistributionClientDownloadResult contains payload.
35      * @param csarArchivePath The destination path where CSAR will be stored.
36      */
37     void extractCsarAndStore(IDistributionClientDownloadResult result, String csarArchivePath);
38 }