public final class Breadcrumb
extends java.lang.Object
This class uses a ThreadLocal to store the finder instance, ensuring thread safety and easy access.
| Modifier and Type | Method and Description |
|---|---|
static java.util.Optional<BOI> |
findFirst()
Finds the first business object of any parent context in the chain.
|
static BOI |
findFirstBO()
Finds the first business object of any parent context in the chain.
|
static <V extends BOI> |
findFirstBOOfType(java.lang.Class<V> objectType)
Finds the first business object of a specific type in the parent context chain.
|
static BOI |
findFirstBOWhere(java.util.function.Predicate<BOI> predicate)
Finds the first business object of any parent context that fulfills a given predicate.
|
static <V extends BOI> |
findFirstOfType(java.lang.Class<V> objectType)
Finds the first business object of a specific type in the parent context chain.
|
static java.util.Optional<BOI> |
findFirstWhere(java.util.function.Predicate<BOI> predicate)
Finds the first business object of any parent context that fulfills a given predicate.
|
static java.util.Optional<BOI> |
findParent()
Finds the business object of the immediate parent context.
|
static BOI |
findParentBO()
Finds the business object of the immediate parent context.
|
static java.util.Optional<BOI> |
getFindFirst()
Alias for
findFirst() to facilitate easier access from Groovy, i.e. |
static BOI |
getFindFirstBO()
Alias for
findFirstBO() to facilitate easier access from Groovy, i.e. |
static java.util.Optional<BOI> |
getFindParent()
Alias for
findParent() to facilitate easier access from Groovy, i.e. |
static BOI |
getFindParentBO()
Alias for
findParentBO() to facilitate easier access from Groovy, i.e. |
public static java.util.Optional<BOI> getFindParent()
findParent() to facilitate easier access from Groovy, i.e. Breadcrumb.findParent.Optional containing the parent's business object, or empty if not found.public static java.util.Optional<BOI> findParent()
Optional containing the parent's business object, or empty if not found.public static java.util.Optional<BOI> getFindFirst()
findFirst() to facilitate easier access from Groovy, i.e. Breadcrumb.findFirst.Optional containing the first found business object, or empty if none are found.public static java.util.Optional<BOI> findFirst()
Optional containing the first found business object, or empty if none are found.public static <V extends BOI> java.util.Optional<V> findFirstOfType(java.lang.Class<V> objectType)
V - The specific type of the object.objectType - The Class of the business object you are looking for.Optional containing the first found business object of the specified type.public static java.util.Optional<BOI> findFirstWhere(java.util.function.Predicate<BOI> predicate)
predicate - A Predicate to test the business object.Optional containing the first business object that satisfies the predicate.public static BOI getFindParentBO()
findParentBO() to facilitate easier access from Groovy, i.e. Breadcrumb.findParentBO.null if not found.public static BOI findParentBO()
null if not found.public static BOI getFindFirstBO()
findFirstBO() to facilitate easier access from Groovy, i.e. Breadcrumb.findFirstBO.null if none are found.public static BOI findFirstBO()
null if none are found.public static <V extends BOI> V findFirstBOOfType(java.lang.Class<V> objectType)
V - The specific type of the object.objectType - The Class of the business object you are looking for.null if not found.public static BOI findFirstBOWhere(java.util.function.Predicate<BOI> predicate)
predicate - A Predicate to test the business object.null if not found.Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.