com.groupdocs.redaction

Class MetadataRedaction

    • Constructor Detail

      • MetadataRedaction

        protected MetadataRedaction(int filter)

        Base constructor requires filter as a parameter

        Parameters:
        filter - Flags enumeration MetadataFilter
    • Method Detail

      • getFilter

        public final int getFilter()

        Filter is used to select all or specific metadata, e.g. Author or Company

      • setFilter

        public final void setFilter(int value)

        Filter is used to select all or specific metadata, e.g. Author or Company

      • applyFilter

        protected final List<MetadataItem> applyFilter(MetadataCollection source)

        Applies current Filter to given metadata dictionary" />

        Parameters:
        source - Collection of document's metadata
        Returns:
        List of metadata items, conforming to the filter
      • isApplicableTo

        protected abstract boolean isApplicableTo(MetadataItem item)

        Checks if this redaction could be applied to given metadata item

        Parameters:
        item - Metadata item
        Returns:
        True if redaction can be applied
      • applyTo

        protected abstract RedactionLogEntry applyTo(MetadataItem item,
                                IMetadataAccess metadata)

        Applies redaction to given metadata item

        Parameters:
        item - Metadata item
        metadata - Metadata access
        Returns:
        Redaction result
      • applyTo

        public RedactionLogEntry applyTo(DocumentFormatInstance formatInstance)

        Applies redaction to given format instance

        Specified by:
        applyTo in class Redaction
        Parameters:
        formatInstance - An instance of a document to apply redaction
        Returns:
        Status of redaction: success/failure and error message if any