Package dev.morphia.aggregation.stages
Class Redact
- java.lang.Object
-
- dev.morphia.aggregation.stages.Stage
-
- dev.morphia.aggregation.stages.Redact
-
public class Redact extends Stage
Restricts the contents of the documents based on information stored in the documents themselves.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Redact()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description dev.morphia.aggregation.expressions.impls.Expression
getExpression()
static Redact
on(dev.morphia.aggregation.expressions.impls.Expression expression)
Deprecated, for removal: This API element is subject to removal in a future version.static Redact
redact(dev.morphia.aggregation.expressions.impls.Expression expression)
Creates a redaction stage with the given expression-
Methods inherited from class dev.morphia.aggregation.stages.Stage
aggregation, stageName
-
-
-
-
Method Detail
-
on
@Deprecated(forRemoval=true) public static Redact on(dev.morphia.aggregation.expressions.impls.Expression expression)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a redaction stage with the given expression- Parameters:
expression
- the expression- Returns:
- the new field
-
redact
public static Redact redact(dev.morphia.aggregation.expressions.impls.Expression expression)
Creates a redaction stage with the given expression- Parameters:
expression
- the expression- Returns:
- the new field
- Since:
- 2.2
-
getExpression
@MorphiaInternal public dev.morphia.aggregation.expressions.impls.Expression getExpression()
- Returns:
- the expression
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-