Class Redact


  • public class Redact
    extends Stage
    Restricts the contents of the documents based on information stored in the documents themselves.
    • Constructor Detail

      • Redact

        protected Redact()
    • 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

        @MorphiaInternal
        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.