RedactionPolicy class
RedactionPolicy class
Represents a sanitization policy, containing a set of specific redactions to apply.
The RedactionPolicy type exposes the following members:
Constructors
| Constructor | Description |
|---|---|
__init__(self) |
Creates a new instance of Redaction policy. |
__init__(self, redactions) |
Creates a new instance of Redaction policy with a specific list of redactions. |
Properties
| Property | Description |
|---|---|
| redactions | Gets an array of fully configured Redaction-derived classes. |
Methods
| Method | Description |
|---|---|
load(, file_path) |
Loads an instance of RedactionPolicy from a file path. |
load(, input) |
Loads an instance of RedactionPolicy from a stream. |
save(self, file_path) |
Saves the redaction policy to a file. |
save(self, output) |
Saves the redaction policy to a stream. |
Remarks
Learn more | | | |
Example
The following example demonstrates how to apply a redaction policy to all files within a given inbound folder, and save to one of outbound folders - for successfully updated files and for failed ones.
The following example contains a sample XML policy file with sample configurations for all types of redactions.
See Also
- module
groupdocs.redaction - class
Redaction - class
RedactionPolicy