org.outerj.daisy.books.publisher.impl.publicationtype
Class DefaultPartDecider
java.lang.Object
org.outerj.daisy.books.publisher.impl.publicationtype.DefaultPartDecider
- All Implemented Interfaces:
- PartDecider
public class DefaultPartDecider
- extends java.lang.Object
- implements PartDecider
An implementation of PartDecider which makes its decision
based on the part type name.
|
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 |
DefaultPartDecider
public DefaultPartDecider(java.util.Map attributes)
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.