| /********************************************************************************* |
| * Copyright (c) 2020 Robert Bosch GmbH and others. |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Robert Bosch GmbH - initial API and implementation |
| ******************************************************************************** |
| */ |
| package org.eclipse.app4mc.cloud.manager.storage; |
| |
| import java.nio.file.Path; |
| import java.util.stream.Stream; |
| |
| import org.springframework.core.io.Resource; |
| import org.springframework.web.multipart.MultipartFile; |
| |
| public interface StorageService { |
| |
| String store(MultipartFile file); |
| |
| Stream<Path> loadAll(); |
| |
| Path load(String uuid, String... path); |
| |
| Resource loadAsResource(String uuid, String... path); |
| |
| void delete(String uuid); |
| |
| void deleteAll(); |
| |
| } |