org.outerj.daisy.publisher.serverimpl.requestmodel
Class ForEachRequest
java.lang.Object
org.outerj.daisy.publisher.serverimpl.requestmodel.ForEachRequest
- All Implemented Interfaces:
- PublisherContext, Request
- public class ForEachRequest
- extends java.lang.Object
- implements Request, PublisherContext
Method Summary |
long |
getBranchId()
|
org.outerj.daisy.repository.Document |
getDocument()
|
long |
getDocumentId()
|
long |
getLanguageId()
|
java.util.Locale |
getLocale()
|
org.apache.avalon.framework.logger.Logger |
getLogger()
|
org.outerj.daisy.repository.Repository |
getRepository()
|
java.text.DateFormat |
getTimestampFormat()
|
org.outerj.daisy.repository.VariantKey |
getVariantKey()
|
org.outerj.daisy.repository.Version |
getVersion()
If a live version was requested but the document doesn't have a live version,
this method returns null. |
long |
getVersionId()
If a live version was requested but the document doesn't have a live version,
this method returns NO_VERSION . |
void |
process(org.xml.sax.ContentHandler contentHandler)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ForEachRequest
public ForEachRequest(PublisherContext publisherContext,
java.lang.String query,
boolean useLastVersion,
DocumentRequest documentRequest)
process
public void process(org.xml.sax.ContentHandler contentHandler)
throws java.lang.Exception
- Specified by:
process
in interface Request
- Throws:
java.lang.Exception
getLocale
public java.util.Locale getLocale()
- Specified by:
getLocale
in interface PublisherContext
getDocumentId
public long getDocumentId()
- Specified by:
getDocumentId
in interface PublisherContext
getBranchId
public long getBranchId()
- Specified by:
getBranchId
in interface PublisherContext
getLanguageId
public long getLanguageId()
- Specified by:
getLanguageId
in interface PublisherContext
getVersionId
public long getVersionId()
- Description copied from interface:
PublisherContext
- If a live version was requested but the document doesn't have a live version,
this method returns
NO_VERSION
. Otherwise, the actual version number
is returned.
- Specified by:
getVersionId
in interface PublisherContext
getVariantKey
public org.outerj.daisy.repository.VariantKey getVariantKey()
- Specified by:
getVariantKey
in interface PublisherContext
getDocument
public org.outerj.daisy.repository.Document getDocument()
throws org.outerj.daisy.repository.RepositoryException
- Specified by:
getDocument
in interface PublisherContext
- Throws:
org.outerj.daisy.repository.RepositoryException
getVersion
public org.outerj.daisy.repository.Version getVersion()
throws org.outerj.daisy.repository.RepositoryException
- Description copied from interface:
PublisherContext
- If a live version was requested but the document doesn't have a live version,
this method returns null.
- Specified by:
getVersion
in interface PublisherContext
- Throws:
org.outerj.daisy.repository.RepositoryException
getTimestampFormat
public java.text.DateFormat getTimestampFormat()
- Specified by:
getTimestampFormat
in interface PublisherContext
getRepository
public org.outerj.daisy.repository.Repository getRepository()
- Specified by:
getRepository
in interface PublisherContext
getLogger
public org.apache.avalon.framework.logger.Logger getLogger()
- Specified by:
getLogger
in interface PublisherContext
Copyright © -2005 . All Rights Reserved.