public interface ResourceUser extends ContextProvider, Identifiable
Modifier and Type | Method and Description |
---|---|
default Optional<CompletableFuture<List<ResourceModel>>> |
generateResource(String resourceID)
generates the specified resource from the first matching ResourceBuilder (use the ID if you want to be sure).
|
default Optional<CompletableFuture<List<ResourceModel>>> |
generateResource(String resourceID,
Identification provider)
generates the specified resource from the specified ResourceBuilder.
|
debug, debug, error, error, getContext
getID, isOwner
default Optional<CompletableFuture<List<ResourceModel>>> generateResource(String resourceID)
.orElse(CompletableFuture.completedFuture(new LinkedList<>()))
to handle the empty case.resourceID
- the id of the resourcedefault Optional<CompletableFuture<List<ResourceModel>>> generateResource(String resourceID, Identification provider)
.orElse(CompletableFuture.completedFuture(new LinkedList<>()))
to handle the empty case.resourceID
- the id of the resourceprovider
- the specified providerCopyright © 2016. All rights reserved.