Class UploadSchemeDocumentDataProvider

java.lang.Object
com.levigo.jadice.web.demo.common.server.dataprovider.UploadSchemeDocumentDataProvider
All Implemented Interfaces:
DocumentDataProvider<UriSource,UriHandle>, UriBasedDocumentDataProvider

@Component public class UploadSchemeDocumentDataProvider extends Object implements UriBasedDocumentDataProvider
  • Constructor Details

    • UploadSchemeDocumentDataProvider

      public UploadSchemeDocumentDataProvider()
  • Method Details

    • setBasicFileUploadService

      @Autowired(required=false) public void setBasicFileUploadService(BasicFileUploadService service)
    • read

      public void read(com.levigo.jadice.document.read.Reader reader, UriSource source) throws com.levigo.jadice.document.JadiceException, IOException
      Description copied from interface: DocumentDataProvider
      Reads a part of the document to load. This will be used to initially load the document when a client initiates displaying a document. Please note, that the read method will be called only once during a server-side document read lifecycle. Subsequent reads will trigger the recover method, not a read.
      Specified by:
      read in interface DocumentDataProvider<UriSource,UriHandle>
      Parameters:
      reader - The Reader to load the document.
      source - The Source to read the document from, including a unique identifier.
      Throws:
      com.levigo.jadice.document.JadiceException - Any rendering exceptions reported by the Jadice core.
      IOException - Other exceptions while reading the document.
    • recover

      public void recover(com.levigo.jadice.document.read.Reader reader, UriHandle handle) throws RecoverFailedException, com.levigo.jadice.document.JadiceException
      Description copied from interface: DocumentDataProvider
      Partially recovers a Document identified by the given PageSegmentHandle. Sometimes, client applications may request Document instances that have either been removed from cache, garbage-collected due to long inactivity or in consequence of a server switch. This method will be used for subsequent document reads.
      Specified by:
      recover in interface DocumentDataProvider<UriSource,UriHandle>
      Parameters:
      reader - The Reader to load the Document with
      handle - The information specifying which Document to recover
      Throws:
      RecoverFailedException - Thrown if the document cannot be recovered.
      com.levigo.jadice.document.JadiceException - Any rendering exceptions reported by the Jadice core.
    • getSchemes

      public List<String> getSchemes()
      Specified by:
      getSchemes in interface UriBasedDocumentDataProvider