|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.ecm.platform.io.api.AbstractIOResourceAdapter
public abstract class AbstractIOResourceAdapter
Abstract implementation for IOResourceAdapter
.
Offers helper methods for properties.
Method Summary | |
---|---|
abstract IOResources |
extractResources(java.lang.String repo,
java.util.Collection<DocumentRef> sources)
Extracts resources for given document locations. |
java.util.Map<java.lang.String,java.io.Serializable> |
getProperties()
Returns properties. |
abstract void |
getResourcesAsXML(java.io.OutputStream out,
IOResources newResources)
Export resources as XML. |
abstract IOResources |
loadResourcesFromXML(java.io.InputStream stream)
Returns resources built from given stream. |
void |
setProperties(java.util.Map<java.lang.String,java.io.Serializable> properties)
Set properties. |
abstract void |
storeResources(IOResources newResources)
Persists resources. |
abstract IOResources |
translateResources(java.lang.String repo,
IOResources resources,
DocumentTranslationMap map)
Returns translated resources once copy has been done, passing a correspondence map. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.util.Map<java.lang.String,java.io.Serializable> getProperties()
IOResourceAdapter
getProperties
in interface IOResourceAdapter
public void setProperties(java.util.Map<java.lang.String,java.io.Serializable> properties)
IOResourceAdapter
setProperties
in interface IOResourceAdapter
public abstract IOResources extractResources(java.lang.String repo, java.util.Collection<DocumentRef> sources)
IOResourceAdapter
extractResources
in interface IOResourceAdapter
repo
- TODOsources
- locations of documents to consider. Has to include
documents children if needed.
public abstract IOResources translateResources(java.lang.String repo, IOResources resources, DocumentTranslationMap map)
IOResourceAdapter
translateResources
in interface IOResourceAdapter
repo
- target repository for resources.resources
- resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
map
- correspondence map between old locations and new ones.
public abstract void storeResources(IOResources newResources)
IOResourceAdapter
storeResources
in interface IOResourceAdapter
newResources
- resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
or
IOResourceAdapter.translateResources(String, IOResources, DocumentTranslationMap)
public abstract void getResourcesAsXML(java.io.OutputStream out, IOResources newResources)
IOResourceAdapter
getResourcesAsXML
in interface IOResourceAdapter
newResources
- resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
or
IOResourceAdapter.translateResources(String, IOResources, DocumentTranslationMap)
public abstract IOResources loadResourcesFromXML(java.io.InputStream stream)
IOResourceAdapter
loadResourcesFromXML
in interface IOResourceAdapter
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |