org.outerj.daisy.books.publisher.impl.dataretrieval
Interface PartDecider

All Known Implementing Classes:
AggregatedPartDecider, DefaultPartDecider

public interface PartDecider

Decides whether a part should be downloaded during the book data retrieval process.


Method Summary
 boolean needsPart(long documentTypeId, java.lang.String documentTypeName, long partTypeId, java.lang.String partTypeName, java.lang.String mimeType, java.lang.String fileName, long size, org.outerj.daisy.repository.VariantKey document, long versionId, org.outerj.daisy.repository.Repository repository)
          Returns true if the data of this part should be downloaded and stored in the book instance.
 

Method Detail

needsPart

boolean needsPart(long documentTypeId,
                  java.lang.String documentTypeName,
                  long partTypeId,
                  java.lang.String partTypeName,
                  java.lang.String mimeType,
                  java.lang.String fileName,
                  long size,
                  org.outerj.daisy.repository.VariantKey document,
                  long versionId,
                  org.outerj.daisy.repository.Repository repository)
Returns true if the data of this part should be downloaded and stored in the book instance. The implementation can make this decission based on the supplied information. In many cases the document type name and part type name will be sufficient.



Copyright © -2006 . All Rights Reserved.