Interface DocumentEventHandler<T extends DMSDocForm>


public interface DocumentEventHandler<T extends DMSDocForm>
This interface can be used to react on setting the content of a DMS document.
  • Method Summary

    Modifier and Type
    Method
    Description
    onSetContentAsStream(T document, InputStream content)
    Will be called before the content of the document will be set.
  • Method Details

    • onSetContentAsStream

      InputStream onSetContentAsStream(T document, InputStream content)
      Will be called before the content of the document will be set. The stream holding the content is passed as parameter. When your implementation reads or manipulates that stream you must ensure to return a stream that can be read by the caller of this method. If you don't read or manipulate the stream return the passed one.
      Parameters:
      document - the document which content should be set (or changed)
      content - the stream holding the content
      Returns:
      a stream holding the content