-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3914a3a
commit c418fe7
Showing
6 changed files
with
75 additions
and
45 deletions.
There are no files selected for viewing
5 changes: 1 addition & 4 deletions
5
src/main/java/it/gov/pagopa/atmlayer/service/model/dto/ResourceCreationDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/main/java/it/gov/pagopa/atmlayer/service/model/model/ResourceDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 12 additions & 8 deletions
20
src/main/java/it/gov/pagopa/atmlayer/service/model/service/ResourceEntityService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,28 @@ | ||
package it.gov.pagopa.atmlayer.service.model.service; | ||
|
||
import io.smallrye.mutiny.Uni; | ||
import it.gov.pagopa.atmlayer.service.model.entity.BpmnVersion; | ||
import it.gov.pagopa.atmlayer.service.model.entity.BpmnVersionPK; | ||
import it.gov.pagopa.atmlayer.service.model.entity.ResourceEntity; | ||
|
||
import java.io.File; | ||
import java.util.List; | ||
import java.util.Optional; | ||
import java.util.UUID; | ||
|
||
public interface ResourceEntityService { | ||
Uni<ResourceEntity> save(ResourceEntity resourceEntity); | ||
|
||
Uni<Boolean> delete(BpmnVersionPK bpmnVersionPK); | ||
Uni<ResourceEntity> save(ResourceEntity resourceEntity); | ||
|
||
Uni<Boolean> delete(BpmnVersionPK bpmnVersionPK); | ||
|
||
Uni<Optional<ResourceEntity>> findBySHA256(String sha256); | ||
|
||
Uni<Optional<ResourceEntity>> findBySHA256(String sha256); | ||
Uni<Optional<ResourceEntity>> findByUUID(UUID uuid); | ||
|
||
Uni<Optional<ResourceEntity>> findByUUID(UUID uuid); | ||
Uni<ResourceEntity> saveAndUpload(ResourceEntity resourceEntity, File file, String filename, | ||
String path); | ||
|
||
Uni<ResourceEntity> saveAndUpload(ResourceEntity resourceEntity, File file, String filename, String path); | ||
Uni<ResourceEntity> createResource(ResourceEntity resourceEntity, File file, String filename, | ||
String path); | ||
|
||
Uni<ResourceEntity> createResource(ResourceEntity resourceEntity, File file, String filename,String path); | ||
Uni<List<ResourceEntity>> getAll(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters