Class ContentEnricher
java.lang.Object
com.atlassian.confluence.plugins.restapi.enrich.AbstractLinkEnricher
com.atlassian.confluence.plugins.restapi.enrich.model.ContentEnricher
- All Implemented Interfaces:
EntityEnricher,RestObjectEnricher
Modifies RestEntities that wrap Content objects in preparation for being serialized
-
Field Summary
Fields inherited from class com.atlassian.confluence.plugins.restapi.enrich.AbstractLinkEnricher
graphql, navigationService, ORIGINAL_LINKS_PROPERTY, SELF_LINK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenrich(@NonNull RestEntity entity, @NonNull SchemaType schemaType) getEnrichedPropertyTypes(@NonNull Type type) Get the types of the properties that may possibly be provided by this enricher.booleanGet whether the enricher applies to the root object only, or recursively to all objects in the tree.Methods inherited from class com.atlassian.confluence.plugins.restapi.enrich.AbstractLinkEnricher
enrichLinks, enrichWithLink, getEnrichedPropertyTypes, navigation
-
Constructor Details
-
Method Details
-
isRecursive
public boolean isRecursive()Description copied from interface:RestObjectEnricherGet whether the enricher applies to the root object only, or recursively to all objects in the tree.- Specified by:
isRecursivein interfaceRestObjectEnricher
-
getEnrichedPropertyTypes
Description copied from interface:RestObjectEnricherGet the types of the properties that may possibly be provided by this enricher. This is used to populate the graph-ql schema.- Specified by:
getEnrichedPropertyTypesin interfaceRestObjectEnricher- Parameters:
type- The type of the object being enriched- Returns:
- A map of property names to property types
-
enrich
- Specified by:
enrichin interfaceEntityEnricher
-