@ForUseOnly public interface Catalog extends Collection<Catalog.Card>
CatalogEditorValue
Modifier and Type | Interface and Description |
---|---|
static interface |
Catalog.Card
Single entry of a catalog providing some meta data on the item and a reference to the item itself.
|
Modifier and Type | Method and Description |
---|---|
Catalog.Card |
create(Template template,
FormData formData)
Factory method to create a new card based on the given template and form data.
|
default Optional<Catalog.Card> |
find(UUID uuid)
Search for a card with the specified unique identifier.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray
@ApiDoc(comment="Search for a card with a given identifier.", since="5.2.181202") @NotNull default Optional<Catalog.Card> find(@NotNull UUID uuid)
uuid
- The identifier to return the card for.@ApiDoc(comment="Factory method to create a new card based on the given template and form data.", since="5.2.6") @NotNull Catalog.Card create(@NotNull Template template, @Nullable FormData formData)
not
be added to the catalog. To add the created card, use
add(card)
.template
- The template.formData
- The form data, if available, or null
.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210