public class IOAuditAdapter extends AbstractIOResourceAdapter
properties
Constructor and Description |
---|
IOAuditAdapter() |
Modifier and Type | Method and Description |
---|---|
IOResources |
extractResources(String repo,
Collection<DocumentRef> sources)
Extract logs involving given documents.
|
protected IOLogEntryBase |
getLogEntryHelper()
Should be overridden if IOLogEntryBase is subclassed.
|
void |
getResourcesAsXML(OutputStream out,
IOResources resources)
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.
|
getBooleanProperty, getProperties, getStringArrayProperty, getStringProperty, setBooleanProperty, setStringArrayProperty, setStringProperty
public IOAuditAdapter()
protected IOLogEntryBase getLogEntryHelper()
public void setProperties(Map<String,Serializable> properties)
IOResourceAdapter
setProperties
in interface IOResourceAdapter
setProperties
in class AbstractIOResourceAdapter
public IOResources extractResources(String repo, Collection<DocumentRef> sources)
The adapter properties will filter which logs must be taken into account.
extractResources
in interface IOResourceAdapter
extractResources
in class AbstractIOResourceAdapter
repo
- TODOsources
- locations of documents to consider. Has to include documents children if needed.public void getResourcesAsXML(OutputStream out, IOResources resources)
IOResourceAdapter
getResourcesAsXML
in interface IOResourceAdapter
getResourcesAsXML
in class AbstractIOResourceAdapter
out
- stream where export will be written.resources
- resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
or
IOResourceAdapter.translateResources(String, IOResources, DocumentTranslationMap)
public IOResources loadResourcesFromXML(InputStream stream)
IOResourceAdapter
loadResourcesFromXML
in interface IOResourceAdapter
loadResourcesFromXML
in class AbstractIOResourceAdapter
public void storeResources(IOResources newResources)
IOResourceAdapter
storeResources
in interface IOResourceAdapter
storeResources
in class AbstractIOResourceAdapter
newResources
- resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
or
IOResourceAdapter.translateResources(String, IOResources, DocumentTranslationMap)
public IOResources translateResources(String repo, IOResources resources, DocumentTranslationMap map)
IOResourceAdapter
translateResources
in interface IOResourceAdapter
translateResources
in class AbstractIOResourceAdapter
repo
- target repository for resources.resources
- resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
map
- correspondence map between old locations and new ones.Copyright © 2018 Nuxeo. All rights reserved.