public class FilesystemContentDataFactory extends java.lang.Object implements ContentDataFactory, org.springframework.beans.factory.InitializingBean
ContentData out of :
ContentStore
File located within that store's root
FilesystemContentDataFactory.defaultEncoding.| Constructor and Description |
|---|
FilesystemContentDataFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.alfresco.service.cmr.repository.ContentData |
createContentData(ContentStore store,
java.io.File contentFile)
Create a
ContentData by combining the given ContentStore's root location and the File's path within that store. |
void |
setDefaultEncoding(java.lang.String defaultEncoding) |
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService) |
void |
setStoreProtocol(java.lang.String storeProtocol) |
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
public void setDefaultEncoding(java.lang.String defaultEncoding)
public void setStoreProtocol(java.lang.String storeProtocol)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic org.alfresco.service.cmr.repository.ContentData createContentData(ContentStore store, java.io.File contentFile)
ContentData by combining the given ContentStore's root location and the File's path within that store.
The given file must therefore be accessible within the content store's configured root location.
The encoding and mimetype will be guessed from the given file.createContentData in interface ContentDataFactorystore - The ContentStore in which the file should becontentFile - The File to checkContentDataCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.