org.outerj.daisy.books.publisher.impl.publicationtype
Class AggregatedPartDecider
java.lang.Object
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).
|
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 |
AggregatedPartDecider
public AggregatedPartDecider(PublicationType[] publicationTypes)
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.