public class FilesystemContentDataFactory extends Object implements ContentDataFactory, org.springframework.beans.factory.InitializingBean
ContentData out of :
ContentStore
File located within that store's root
defaultEncoding.| Constructor and Description |
|---|
FilesystemContentDataFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.alfresco.service.cmr.repository.ContentData |
createContentData(org.alfresco.repo.content.ContentStore store,
File contentFile)
Create a
ContentData by combining the given ContentStore's root location and the File's path within that store. |
void |
setDefaultEncoding(String defaultEncoding) |
void |
setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService) |
void |
setStoreProtocol(String storeProtocol) |
public void setMimetypeService(org.alfresco.service.cmr.repository.MimetypeService mimetypeService)
public void setDefaultEncoding(String defaultEncoding)
public void setStoreProtocol(String storeProtocol)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic org.alfresco.service.cmr.repository.ContentData createContentData(org.alfresco.repo.content.ContentStore store,
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–2018 Alfresco Software. All rights reserved.