Package org.nuxeo.ecm.platform.io.api
Interface IOResourceAdapter
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- AbstractIOResourceAdapter,- IOAuditAdapter,- IORelationAdapter
Resource adapter holding the import/export for document associated resources.
- Author:
- Anahide Tchertchian
- 
Method SummaryModifier and TypeMethodDescriptionextractResources(String repo, Collection<DocumentRef> sources) Extracts resources for given document locations.Returns properties.voidgetResourcesAsXML(OutputStream out, IOResources newResources) Export resources as XML.loadResourcesFromXML(InputStream stream) Returns resources built from given stream.voidsetProperties(Map<String, Serializable> properties) Set properties.voidstoreResources(IOResources newResources) Persists resources.translateResources(String repo, IOResources resources, DocumentTranslationMap map) Returns translated resources once copy has been done, passing a correspondence map.
- 
Method Details- 
getPropertiesMap<String,Serializable> getProperties()Returns properties.
- 
setPropertiesSet properties.
- 
extractResourcesExtracts resources for given document locations.- Parameters:
- repo- TODO
- sources- locations of documents to consider. Has to include documents children if needed.
- Returns:
- a structure holding associated resources.
 
- 
translateResourcesReturns translated resources once copy has been done, passing a correspondence map.- Parameters:
- repo- target repository for resources.
- resources- resources previously extracted thanks to- extractResources(String, Collection)
- map- correspondence map between old locations and new ones.
- Returns:
- translated resources.
 
- 
storeResourcesPersists resources.- Parameters:
- newResources- resources previously extracted thanks to- extractResources(String, Collection)or- translateResources(String, IOResources, DocumentTranslationMap)
 
- 
getResourcesAsXMLExport resources as XML.- Parameters:
- out- stream where export will be written.
- newResources- resources previously extracted thanks to- extractResources(String, Collection)or- translateResources(String, IOResources, DocumentTranslationMap)
 
- 
loadResourcesFromXMLReturns resources built from given stream.
 
-