Class RequestEntityEnricher
- java.lang.Object
-
- com.atlassian.confluence.plugins.restapi.enrich.documentation.RequestEntityEnricher
-
- All Implemented Interfaces:
EntityEnricher,RestObjectEnricher
public class RequestEntityEnricher extends Object implements EntityEnricher
Removes _links and _expandable fields from request objects.
-
-
Constructor Summary
Constructors Constructor Description RequestEntityEnricher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenrich(@NonNull RestEntity entity, SchemaType schemaType)@NonNull Map<String,Type>getEnrichedPropertyTypes(@NonNull Type type)Get the types of the properties that may possibly be provided by this enricher.booleanisRecursive()Get whether the enricher applies to the root object only, or recursively to all objects in the tree.
-
-
-
Method Detail
-
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
public @NonNull Map<String,Type> getEnrichedPropertyTypes(@NonNull Type type)
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
public void enrich(@NonNull RestEntity entity, SchemaType schemaType)
- Specified by:
enrichin interfaceEntityEnricher
-
-