public interface UnresolvedReferencesService
| Modifier and Type | Method and Description |
|---|---|
java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolved>> |
delete(java.lang.String key)
Given a product draft key, this methods deletes the matching product draft from persistence.
|
java.util.concurrent.CompletionStage<java.util.Set<WaitingToBeResolved>> |
fetch(java.util.Set<java.lang.String> keys)
Given product draft keys, this method fetches the persisted drafts waiting to be resolved.
|
java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolved>> |
save(WaitingToBeResolved draft)
Persists a product draft that is not ready to be resolved yet.
|
@Nonnull java.util.concurrent.CompletionStage<java.util.Set<WaitingToBeResolved>> fetch(@Nonnull java.util.Set<java.lang.String> keys)
Set will be returned in the returned future.keys - the keys of the persisted product drafts, waiting to be resolved, to fetch.CompletionStage<Set> in which the result of its completion contains a
Set that contains the matching drafts if any exist, otherwise empty.@Nonnull java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolved>> save(@Nonnull WaitingToBeResolved draft)
draft - the draft that should be persisted.CompletionStage containing an optional with the created resource if successful otherwise an
empty optional.@Nonnull java.util.concurrent.CompletionStage<java.util.Optional<WaitingToBeResolved>> delete(@Nonnull java.lang.String key)
key - the key of the product draft to delete from persistence.CompletionStage containing an optional with the deleted resource if successful otherwise an
empty optional.