Uses of Class
org.springframework.data.mongodb.core.aggregation.RedactOperation.RedactOperationBuilder
Package
Description
Support for the MongoDB aggregation framework.
-
Uses of RedactOperation.RedactOperationBuilder in org.springframework.data.mongodb.core.aggregation
Modifier and TypeMethodDescriptionRedactOperation.builder()
Obtain a new instance ofRedactOperation.RedactOperationBuilder
to specify condition and outcome of the $redact operation.Define the outcome (anything that resolves to $$DESCEND, $$PRUNE, or $$KEEP) when the condition is not met.RedactOperation.RedactOperationBuilder.otherwiseDescend()
Return fields at the current document level and exclude embedded ones if the condition is not met.RedactOperation.RedactOperationBuilder.otherwiseKeep()
Return/Keep all fields at the current document/embedded level if the condition is not met.RedactOperation.RedactOperationBuilder.otherwisePrune()
Exclude all fields at this current document/embedded level if the condition is not met.Define the outcome (anything that resolves to $$DESCEND, $$PRUNE, or $$KEEP) when the condition is met.RedactOperation.RedactOperationBuilder.thenDescend()
Return fields at the current document level and exclude embedded ones if the condition is met.RedactOperation.RedactOperationBuilder.thenKeep()
Return/Keep all fields at the current document/embedded level if the condition is met.RedactOperation.RedactOperationBuilder.thenPrune()
Exclude all fields at this current document/embedded level if the condition is met.RedactOperation.RedactOperationBuilder.when
(org.bson.Document condition) Specify the evaluation condition.RedactOperation.RedactOperationBuilder.when
(AggregationExpression condition) Specify the evaluation condition.RedactOperation.RedactOperationBuilder.when
(CriteriaDefinition criteria) Specify the evaluation condition.