05-21-2012 08:24 AM
<?xml version="1.0" encoding="UTF-8"?>
<Audit xmlns="http://www.alfresco.org/repo/audit/model/3.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.alfresco.org/repo/audit/model/3.2 alfresco-audit-3.2.xsd">
<DataExtractors>
<DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue"/>
</DataExtractors>
<PathMappings>
<PathMap source="/alfresco-access" target="/my-app" />
</PathMappings>
<Application name="my-app" key="my-app">
<RecordValue key="action" dataExtractor="simpleValue" dataSource="/my-app/transaction/action"
dataTrigger="/my-app/transaction/action" />
<RecordValue key="node" dataExtractor="simpleValue" dataSource="/my-app/transaction/node"
dataTrigger="/my-app/transaction/node"/>
<RecordValue key="user" dataExtractor="simpleValue" dataSource="/my-app/transaction/user"
dataTrigger="/my-app/transaction/user"/>
</Application>
</Audit>
i use a js to hit the webscript..heres my js.
function main() {
var connector = remote.connect("alfresco");
model.connector = connector;
var results = connector.call("/api/audit/query/my-app?limit=10&user=admin");
var data;
data = eval('(' + results + ')');
model.data = ""+data;
}
main();
<#list data as d>
${d.user}
${d.application}
${d.time}
</#list>
05-22-2012 03:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.