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

java.lang.Object
  extended by 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.


Constructor Summary
DefaultPartDecider(java.util.Map attributes)
           
 
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

DefaultPartDecider

public DefaultPartDecider(java.util.Map attributes)
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.