public interface IOResourceAdapter extends Serializable
Modifier and Type | Method and Description |
---|---|
IOResources |
extractResources(String repo,
Collection<DocumentRef> sources)
Extracts resources for given document locations.
|
Map<String,Serializable> |
getProperties()
Returns properties.
|
void |
getResourcesAsXML(OutputStream out,
IOResources newResources)
Export resources as XML.
|
IOResources |
loadResourcesFromXML(InputStream stream)
Returns resources built from given stream.
|
void |
setProperties(Map<String,Serializable> properties)
Set properties.
|
void |
storeResources(IOResources newResources)
Persists resources.
|
IOResources |
translateResources(String repo,
IOResources resources,
DocumentTranslationMap map)
Returns translated resources once copy has been done, passing a
correspondence map.
|
Map<String,Serializable> getProperties()
void setProperties(Map<String,Serializable> properties)
IOResources extractResources(String repo, Collection<DocumentRef> sources)
repo
- TODOsources
- locations of documents to consider. Has to include
documents children if needed.IOResources translateResources(String repo, IOResources resources, DocumentTranslationMap map)
repo
- target repository for resources.resources
- resources previously extracted thanks to
extractResources(String, Collection)
map
- correspondence map between old locations and new ones.void storeResources(IOResources newResources)
newResources
- resources previously extracted thanks to
extractResources(String, Collection)
or
translateResources(String, IOResources, DocumentTranslationMap)
void getResourcesAsXML(OutputStream out, IOResources newResources)
out
- stream where export will be written.newResources
- resources previously extracted thanks to
extractResources(String, Collection)
or
translateResources(String, IOResources, DocumentTranslationMap)
IOResources loadResourcesFromXML(InputStream stream)
Copyright © 2013 Nuxeo SA. All Rights Reserved.