@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)
RestEntityEnrichmentManager
isEnrichableList
in interface RestEntityEnrichmentManager
public boolean isEnrichableEntity(Class entityType)
RestEntityEnrichmentManager
isEnrichableEntity
in interface RestEntityEnrichmentManager
public @NonNull Map<String,Type> getEnrichedPropertyTypes(Type type, boolean isRoot)
RestEntityEnrichmentManager
getEnrichedPropertyTypes
in interface RestEntityEnrichmentManager
type
- The type of the object being enrichedpublic Object convertAndEnrich(Object entity, SchemaType schemaType)
RestEntityEnrichmentManager
convertAndEnrich
in interface RestEntityEnrichmentManager
entity
- the entity to enrichschemaType
- rest or graphqlCopyright © 2003–2021 Atlassian. All rights reserved.