Class Redact
- java.lang.Object
-
- dev.morphia.aggregation.experimental.stages.Stage
-
- dev.morphia.aggregation.experimental.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 Expression
getExpression()
static Redact
on(Expression expression)
Deprecated, for removal: This API element is subject to removal in a future version.static Redact
redact(Expression expression)
Creates a redaction stage with the given expression-
Methods inherited from class dev.morphia.aggregation.experimental.stages.Stage
aggregation, stageName
-
-
-
-
Method Detail
-
on
@Deprecated(forRemoval=true) public static Redact on(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(Expression expression)
Creates a redaction stage with the given expression- Parameters:
expression
- the expression- Returns:
- the new field
- Since:
- 2.2
-
getExpression
public 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.
-
-