@Internal
public interface RestEntityEnrichmentManager
Modifier and Type | Method and Description |
---|---|
Object |
convertAndEnrich(Object entity,
SchemaType schemaType)
Converts the given entity into a RestEntity if the entity has the RestEnrichable annotation
or is a PageResponse that contains RestEnrichable entities.
|
@NonNull Map<String,Type> |
getEnrichedPropertyTypes(Type type,
boolean root)
Get the types of the properties that may possibly be provided by the enrichers.
|
boolean |
isEnrichableEntity(Class entityType)
Get whether an object type can be enriched using a RestEntity.
|
boolean |
isEnrichableList(Class listType)
Get whether an object type can be enriched using a RestList.
|
boolean isEnrichableList(Class listType)
boolean isEnrichableEntity(Class entityType)
@NonNull Map<String,Type> getEnrichedPropertyTypes(Type type, boolean root)
type
- The type of the object being enrichedObject convertAndEnrich(Object entity, SchemaType schemaType)
entity
- the entity to enrichschemaType
- rest or graphqlCopyright © 2003–2020 Atlassian. All rights reserved.