@Internal @Component(value="restEntityEnrichmentManager") public class DefaultRestEntityEnrichmentManager extends Object implements RestEntityEnrichmentManager
| Constructor and Description |
|---|
DefaultRestEntityEnrichmentManager(RestNavigationService navBuilderService,
GraphQL graphql,
DefaultRestEntityFactory restEntityFactory) |
| 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 isRoot)
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.
|
@Autowired public DefaultRestEntityEnrichmentManager(RestNavigationService navBuilderService, GraphQL graphql, DefaultRestEntityFactory restEntityFactory)
public boolean isEnrichableList(Class listType)
RestEntityEnrichmentManagerisEnrichableList in interface RestEntityEnrichmentManagerpublic boolean isEnrichableEntity(Class entityType)
RestEntityEnrichmentManagerisEnrichableEntity in interface RestEntityEnrichmentManagerpublic @NonNull Map<String,Type> getEnrichedPropertyTypes(Type type, boolean isRoot)
RestEntityEnrichmentManagergetEnrichedPropertyTypes in interface RestEntityEnrichmentManagertype - The type of the object being enrichedpublic Object convertAndEnrich(Object entity, SchemaType schemaType)
RestEntityEnrichmentManagerconvertAndEnrich in interface RestEntityEnrichmentManagerentity - the entity to enrichschemaType - rest or graphqlCopyright © 2003–2020 Atlassian. All rights reserved.