|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.daisy.publisher.serverimpl.requestmodel.PublisherContextImpl
public class PublisherContextImpl
Field Summary |
---|
Fields inherited from interface org.outerj.daisy.publisher.serverimpl.requestmodel.PublisherContext |
---|
NO_VERSION |
Constructor Summary | |
---|---|
PublisherContextImpl(PublisherContext parentPublisherContext)
|
Method Summary | |
---|---|
long |
getBranchId()
|
ContentProcessor |
getContentProcessor()
Returns null if not available. |
org.outerj.daisy.repository.Document |
getDocument()
|
long |
getDocumentId()
|
long |
getLanguageId()
|
java.util.Locale |
getLocale()
|
org.apache.avalon.framework.logger.Logger |
getLogger()
|
PreparedDocuments |
getPreparedDocuments()
Returns null if not available. |
PublisherImpl |
getPublisher()
|
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 . |
PublisherVersionMode |
getVersionMode()
|
boolean |
hasDocument()
Returns true if the getDocument and getVersion methods can safely be called. |
boolean |
searchRecursivePrepDocs(long documentId,
long branchId,
long languageId,
java.lang.String pubReqSetName)
|
void |
setContentProcessor(ContentProcessor contentProcessor)
|
void |
setDocumentVariant(long documentId,
long branchId,
long languageId)
|
void |
setLocale(java.util.Locale locale)
|
void |
setPreparedDocuments(PreparedDocuments preparedDocuments)
|
void |
setVersionId(long versionId)
|
void |
setVersionMode(PublisherVersionMode versionMode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PublisherContextImpl(PublisherContext parentPublisherContext)
Method Detail |
---|
public void setLocale(java.util.Locale locale)
public java.util.Locale getLocale()
getLocale
in interface PublisherContext
public org.outerj.daisy.repository.Repository getRepository()
getRepository
in interface PublisherContext
public org.apache.avalon.framework.logger.Logger getLogger()
getLogger
in interface PublisherContext
public void setDocumentVariant(long documentId, long branchId, long languageId)
public void setVersionId(long versionId)
public void setPreparedDocuments(PreparedDocuments preparedDocuments)
public void setContentProcessor(ContentProcessor contentProcessor)
public long getDocumentId()
getDocumentId
in interface PublisherContext
public long getBranchId()
getBranchId
in interface PublisherContext
public long getLanguageId()
getLanguageId
in interface PublisherContext
public long getVersionId() throws org.outerj.daisy.repository.RepositoryException
PublisherContext
NO_VERSION
. Otherwise, the actual version number
is returned.
getVersionId
in interface PublisherContext
org.outerj.daisy.repository.RepositoryException
public org.outerj.daisy.repository.VariantKey getVariantKey()
getVariantKey
in interface PublisherContext
public java.text.DateFormat getTimestampFormat()
getTimestampFormat
in interface PublisherContext
public org.outerj.daisy.repository.Document getDocument() throws org.outerj.daisy.repository.RepositoryException
getDocument
in interface PublisherContext
org.outerj.daisy.repository.RepositoryException
public org.outerj.daisy.repository.Version getVersion() throws org.outerj.daisy.repository.RepositoryException
PublisherContext
getVersion
in interface PublisherContext
org.outerj.daisy.repository.RepositoryException
public boolean hasDocument()
PublisherContext
hasDocument
in interface PublisherContext
public PublisherImpl getPublisher()
getPublisher
in interface PublisherContext
public PreparedDocuments getPreparedDocuments()
PublisherContext
getPreparedDocuments
in interface PublisherContext
public ContentProcessor getContentProcessor()
PublisherContext
getContentProcessor
in interface PublisherContext
public boolean searchRecursivePrepDocs(long documentId, long branchId, long languageId, java.lang.String pubReqSetName)
searchRecursivePrepDocs
in interface PublisherContext
public void setVersionMode(PublisherVersionMode versionMode)
public PublisherVersionMode getVersionMode()
getVersionMode
in interface PublisherContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |