1 16 package org.outerj.daisy.publisher.serverimpl.requestmodel; 17 18 import org.outerj.daisy.repository.*; 19 import org.outerj.daisy.publisher.serverimpl.PublisherImpl; 20 import org.outerj.daisy.publisher.serverimpl.docpreparation.PreparedDocuments; 21 import org.outerj.daisy.publisher.serverimpl.docpreparation.ContentProcessor; 22 import org.apache.avalon.framework.logger.Logger; 23 24 import java.util.Locale ; 25 import java.text.DateFormat ; 26 27 public interface PublisherContext { 28 public static long NO_VERSION = -1000; 29 30 Locale getLocale(); 31 32 long getDocumentId(); 33 34 long getBranchId(); 35 36 long getLanguageId(); 37 38 43 long getVersionId() throws RepositoryException; 44 45 VariantKey getVariantKey(); 46 47 Document getDocument() throws RepositoryException; 48 49 53 boolean hasDocument(); 54 55 59 Version getVersion() throws RepositoryException; 60 61 DateFormat getTimestampFormat(); 62 63 Repository getRepository(); 64 65 Logger getLogger(); 66 67 PublisherImpl getPublisher(); 68 69 72 PreparedDocuments getPreparedDocuments(); 73 74 77 ContentProcessor getContentProcessor(); 78 79 boolean searchRecursivePrepDocs(long documentId, long branchId, long languageId, String pubReqSetName); 80 81 PublisherVersionMode getVersionMode(); 82 } 83 | Popular Tags |