|
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
org.nuxeo.ecm.platform.audit.io.IOAuditAdapter
public class IOAuditAdapter
Adapter for import/export of audit logs.
| Constructor Summary | |
|---|---|
IOAuditAdapter()
|
|
| Method Summary | |
|---|---|
IOResources |
extractResources(String repo,
Collection<DocumentRef> sources)
Extract logs involving given documents. |
protected CoreSession |
getCoreSession(String repo)
|
protected IOLogEntryBase |
getLogEntryHelper()
Should be overridden if IOLogEntryBase is subclassed |
protected Logs |
getLogService()
|
static NXAuditEvents |
getNXAuditEventsService()
|
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. |
| Methods inherited from class org.nuxeo.ecm.platform.io.api.AbstractIOResourceAdapter |
|---|
getBooleanProperty, getProperties, getStringArrayProperty, getStringProperty, setBooleanProperty, setStringArrayProperty, setStringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IOAuditAdapter()
| Method Detail |
|---|
protected IOLogEntryBase getLogEntryHelper()
public void setProperties(Map<String,Serializable> properties)
IOResourceAdapter
setProperties in interface IOResourceAdaptersetProperties in class AbstractIOResourceAdapter
protected CoreSession getCoreSession(String repo)
throws Exception
Exception
protected Logs getLogService()
throws Exception
Exceptionpublic static NXAuditEvents getNXAuditEventsService()
public IOResources extractResources(String repo,
Collection<DocumentRef> sources)
The adapter properties will filter which logs must be taken into account.
extractResources in interface IOResourceAdapterextractResources in class AbstractIOResourceAdapterrepo - TODOsources - locations of documents to consider. Has to include
documents children if needed.
public void getResourcesAsXML(OutputStream out,
IOResources resources)
IOResourceAdapter
getResourcesAsXML in interface IOResourceAdaptergetResourcesAsXML in class AbstractIOResourceAdapterresources - resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)
or
IOResourceAdapter.translateResources(String, IOResources, DocumentTranslationMap)public IOResources loadResourcesFromXML(InputStream stream)
IOResourceAdapter
loadResourcesFromXML in interface IOResourceAdapterloadResourcesFromXML in class AbstractIOResourceAdapterpublic void storeResources(IOResources newResources)
IOResourceAdapter
storeResources in interface IOResourceAdapterstoreResources in class AbstractIOResourceAdapternewResources - 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 IOResourceAdaptertranslateResources in class AbstractIOResourceAdapterrepo - target repository for resources.resources - resources previously extracted thanks to
IOResourceAdapter.extractResources(String, Collection)map - correspondence map between old locations and new ones.
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||