org.outerj.daisy.books.publisher.impl.publicationtype
Class AggregatedPartDecider

java.lang.Object
  extended by org.outerj.daisy.books.publisher.impl.publicationtype.AggregatedPartDecider
All Implemented Interfaces:
PartDecider

public class AggregatedPartDecider
extends java.lang.Object
implements PartDecider

Combines the decision of the PartDeciders of mulitple publication types into one (using OR-logic).


Constructor Summary
AggregatedPartDecider(PublicationType[] publicationTypes)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatedPartDecider

public AggregatedPartDecider(PublicationType[] publicationTypes)
Method Detail

needsPart

public 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)
Description copied from interface: PartDecider
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.

Specified by:
needsPart in interface PartDecider


Copyright © -2006 . All Rights Reserved.