| org.apache.lenya.cms.publication.DocumentManagerImpl
DocumentManagerImpl | public class DocumentManagerImpl extends AbstractLogEnabled implements DocumentManager,Serviceable,Contextualizable(Code) | | DocumentManager implementation.
version: $Id: DocumentManagerImpl.java 602869 2007-12-10 11:41:12Z andreas $ |
Inner Class :abstract public class SourceTargetVisitor implements DocumentVisitor | |
Field Summary | |
protected ServiceManager | manager |
Method Summary | |
public Document | add(Document sourceDocument, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav) | public Document | add(DocumentFactory factory, ResourceType documentType, String initialContentsURI, Publication pub, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav) | protected Document | add(DocumentFactory factory, ResourceType documentType, InputStream initialContentsStream, Publication pub, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav, String mimeType) | public Document | add(DocumentFactory factory, ResourceType documentType, String initialContentsURI, Publication pub, String area, String language, String extension) | protected Document | add(DocumentFactory factory, ResourceType documentType, InputStream initialContentsStream, Publication pub, String area, String language, String extension, String mimeType) | protected Document | add(DocumentFactory factory, ResourceType documentType, String uuid, InputStream stream, Publication pub, String area, String language, String extension, String mimeType) | protected void | addToSiteManager(String path, Document document, String navigationTitle, boolean visibleInNav) | protected void | addToSiteManager(String path, Document document, String navigationTitle, boolean visibleInNav, String followingSiblingPath) | public Document | addVersion(Document sourceDocument, String area, String language, boolean addToSiteStructure) | public Document | addVersion(Document sourceDocument, String area, String language) | public void | contextualize(Context _context) | protected void | copy(SourceResolver resolver, InputStream sourceInputStream, Document destination) | public void | copy(Document sourceDoc, DocumentLocator destination) Template method to copy a document. | public void | copy(DocumentSet sources, DocumentSet destinations) | public void | copyAll(Area sourceArea, String sourcePath, Area targetArea, String targetPath) | public void | copyAllLanguageVersions(Area sourceArea, String sourcePath, Area targetArea, String targetPath) | protected void | copyContent(Document sourceDocument, Document destinationDocument) | public void | copyDocumentSource(Document sourceDocument, Document destinationDocument) Copies a document source. | protected void | copyInSiteStructure(Document sourceDoc, Document destDoc, String destPath) | protected void | copyMetaData(Document source, Document destination) Copies meta data from one document to another. | protected void | copyRevisions(Document sourceDoc, Document targetDoc) | public void | copyToArea(Document sourceDoc, String destinationArea) | public void | copyToArea(DocumentSet documentSet, String destinationArea) | protected void | copyToVersion(Document sourceDoc, String destinationArea, String language) | protected void | create(InputStream stream, Document document) | public void | delete(Document document) | public void | delete(DocumentSet documents) | public void | deleteAll(Document document) | public void | deleteAllLanguageVersions(Document document) | public boolean | exists(DocumentFactory factory, Publication pub, String area, String uuid, String language) | protected String | generateUUID() | protected Context | getContext() | protected String | getMimeType(Source source) | public void | move(Document sourceDocument, DocumentLocator destination) | public void | move(DocumentSet sources, DocumentSet destinations) | public void | moveAll(Area sourceArea, String sourcePath, Area targetArea, String targetPath) | public void | moveAllLanguageVersions(Area sourceArea, String sourcePath, Area targetArea, String targetPath) | protected List | preOrder(SiteNode node) | public void | service(ServiceManager _manager) | protected void | sortAscending(DocumentSet set) |
manager | protected ServiceManager manager(Code) | | |
add | public Document add(DocumentFactory factory, ResourceType documentType, String initialContentsURI, Publication pub, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav) throws DocumentBuildException, DocumentException, PublicationException(Code) | | See Also: org.apache.lenya.cms.publication.DocumentManager.add(org.apache.lenya.cms.publication.DocumentFactoryorg.apache.lenya.cms.publication.ResourceTypejava.lang.Stringorg.apache.lenya.cms.publication.Publicationjava.lang.Stringjava.lang.Stringjava.lang.Stringjava.lang.Stringjava.lang.Stringboolean) |
add | protected Document add(DocumentFactory factory, ResourceType documentType, InputStream initialContentsStream, Publication pub, String area, String path, String language, String extension, String navigationTitle, boolean visibleInNav, String mimeType) throws DocumentBuildException, DocumentException, PublicationException(Code) | | |
contextualize | public void contextualize(Context _context) throws ContextException(Code) | | See Also: org.apache.avalon.framework.context.Contextualizable.contextualize(org.apache.avalon.framework.context.Context) |
copyDocumentSource | public void copyDocumentSource(Document sourceDocument, Document destinationDocument) throws PublicationException(Code) | | Copies a document source.
Parameters: sourceDocument - The source document. Parameters: destinationDocument - The destination document. throws: PublicationException - when something went wrong. |
copyMetaData | protected void copyMetaData(Document source, Document destination) throws PublicationException(Code) | | Copies meta data from one document to another. If the destination
document is a different area version, the meta data are duplicated (i.e.,
onCopy = delete is neglected).
Parameters: source - Parameters: destination - throws: PublicationException - |
getContext | protected Context getContext()(Code) | | The Avalon context. |
getMimeType | protected String getMimeType(Source source)(Code) | | |
service | public void service(ServiceManager _manager) throws ServiceException(Code) | | See Also: org.apache.avalon.framework.service.Serviceable.service(org.apache.avalon.framework.service.ServiceManager) |
|
|