MediaStorage.java
346 bytes
| 1 | package com.tasteprint.media; |
|---|---|
| 2 | |
| 3 | import java.util.UUID; |
| 4 | |
| 5 | import org.springframework.web.multipart.MultipartFile; |
| 6 | |
| 7 | public interface MediaStorage { |
| 8 | |
| 9 | MediaUpload store(UUID ownerId, MultipartFile file); |
| 10 | |
| 11 | void requireUsableBy(UUID ownerId, String url); |
| 12 | |
| 13 | void deleteOwned(UUID ownerId, String url); |
| 14 | |
| 15 | void deleteAllOwned(UUID ownerId); |
| 16 | } |
| 17 | |