1 17 18 19 20 package org.apache.lenya.cms.publication; 21 22 import java.io.File ; 23 24 import org.apache.lenya.cms.publishing.PublishingEnvironment; 25 26 29 public interface Publication { 30 31 String AUTHORING_AREA = "authoring"; 32 String STAGING_AREA = "staging"; 33 String LIVE_AREA = "live"; 34 String ADMIN_AREA = "admin"; 35 String ARCHIVE_AREA = "archive"; 36 String TRASH_AREA = "trash"; 37 String ELEMENT_PATH_MAPPER = "path-mapper"; 38 String ELEMENT_DOCUMENT_BUILDER = "document-builder"; 39 String ELEMENT_SITE_STRUCTURE = "site-structure"; 40 String ATTRIBUTE_TYPE = "type"; 41 String LANGUAGES = "languages"; 42 String LANGUAGE = "language"; 43 String DEFAULT_LANGUAGE_ATTR = "default"; 44 String BREADCRUMB_PREFIX = "breadcrumb-prefix"; 45 String SSL_PREFIX = "ssl-prefix"; 46 String LIVE_MOUNT_POINT = "live-mount-point"; 47 String PUBLICATION_PREFIX = "lenya" + File.separator + "pubs"; 48 String PUBLICATION_PREFIX_URI = "lenya/pubs"; 49 String CONFIGURATION_PATH = "config"; 50 String CONTENT_PATH = "content"; 51 String PENDING_PATH = "pending"; 52 String DELETE_PATH = "delete"; 53 String INFO_AREA_PREFIX = "info-"; 54 String SEARCH_AREA_PREFIX = "search-"; 55 String CONFIGURATION_FILE = CONFIGURATION_PATH + File.separator + "publication.xconf"; 56 57 61 String getId(); 62 63 68 PublishingEnvironment getEnvironment(); 69 70 75 File getServletContext(); 76 77 81 File getDirectory(); 82 83 90 File getContentDirectory(String area); 91 92 97 void setPathMapper(DefaultDocumentIdToPathMapper mapper); 98 99 104 DocumentIdToPathMapper getPathMapper(); 105 106 111 String getDefaultLanguage(); 112 113 118 void setDefaultLanguage(String language); 119 120 125 String [] getLanguages(); 126 127 132 String getBreadcrumbPrefix(); 133 134 141 String getSSLPrefix(); 142 143 152 String getLiveMountPoint(); 153 154 163 SiteTree getTree(String area) throws SiteTreeException; 164 165 177 DefaultSiteTree getSiteTree(String area) throws SiteTreeException; 178 179 183 DocumentBuilder getDocumentBuilder(); 184 185 192 void copyDocument(Document sourceDocument, Document destinationDocument) 193 throws PublicationException; 194 195 202 void copyDocumentToArea(Document sourceDocument, String destinationArea) 203 throws PublicationException; 204 205 212 void copyDocumentSetToArea(DocumentSet documentSet, String destinationArea) 213 throws PublicationException; 214 215 220 void deleteDocument(Document document) throws PublicationException; 221 222 229 void moveDocument(Document sourceDocument, Document destinationDocument) throws PublicationException; 230 231 238 Document getAreaVersion(Document document, String area) throws PublicationException; 239 240 247 Proxy getProxy(Document document, boolean isSslProtected); 248 249 254 String [] getRewriteAttributeXPaths(); 255 256 } 257 | Popular Tags |