|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.io.api.AbstractIOResourceAdapter
public abstract class AbstractIOResourceAdapter
Abstract implementation for
| Field Summary | |
|---|---|
protected Map<String,Serializable> |
properties
|
| Constructor Summary | |
|---|---|
AbstractIOResourceAdapter()
|
|
| Method Summary | |
|---|---|
abstract IOResources |
extractResources(String repo,
Collection<DocumentRef> sources)
Extracts resources for given document locations. |
protected boolean |
getBooleanProperty(String propName)
|
Map<String,Serializable> |
getProperties()
Returns properties. |
abstract void |
getResourcesAsXML(OutputStream out,
IOResources newResources)
Export resources as XML. |
protected String[] |
getStringArrayProperty(String propName)
|
protected String |
getStringProperty(String propName)
|
abstract IOResources |
loadResourcesFromXML(InputStream stream)
Returns resources built from given stream. |
protected void |
setBooleanProperty(String propName,
Serializable propValue)
|
void |
setProperties(Map<String,Serializable> properties)
Set properties. |
protected void |
setStringArrayProperty(String propName,
Serializable propValue)
|
protected void |
setStringProperty(String propName,
Serializable propValue)
|
abstract void |
storeResources(IOResources newResources)
Persists resources. |
abstract IOResources |
translateResources(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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,Serializable> properties
| Constructor Detail |
|---|
public AbstractIOResourceAdapter()
| Method Detail |
|---|
public Map<String,Serializable> getProperties()
IOResourceAdapter
getProperties in interface IOResourceAdapterpublic void setProperties(Map<String,Serializable> properties)
IOResourceAdapter
setProperties in interface IOResourceAdapter
public abstract IOResources extractResources(String repo,
Collection<DocumentRef> sources)
IOResourceAdapter
extractResources in interface IOResourceAdapterrepo - TODOsources - locations of documents to consider. Has to include
documents children if needed.
public abstract IOResources translateResources(String repo,
IOResources resources,
DocumentTranslationMap map)
IOResourceAdapter
translateResources in interface IOResourceAdapterrepo - 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 IOResourceAdapternewResources - resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
or
IOResourceAdapter.translateResources(String, IOResources, DocumentTranslationMap)
public abstract void getResourcesAsXML(OutputStream out,
IOResources newResources)
IOResourceAdapter
getResourcesAsXML in interface IOResourceAdapternewResources - resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
or
IOResourceAdapter.translateResources(String, IOResources, DocumentTranslationMap)public abstract IOResources loadResourcesFromXML(InputStream stream)
IOResourceAdapter
loadResourcesFromXML in interface IOResourceAdapterprotected boolean getBooleanProperty(String propName)
protected void setBooleanProperty(String propName,
Serializable propValue)
protected String getStringProperty(String propName)
protected void setStringProperty(String propName,
Serializable propValue)
protected String[] getStringArrayProperty(String propName)
protected void setStringArrayProperty(String propName,
Serializable propValue)
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||