GET /alfresco/service/api/afanti/auditlog
请求说明
请求方式:GET
请求API : /alfresco/service/api/afanti/auditlog
Query 参数
名称 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
fromId | long | 否 | 开始索引id | |
toId | long | 否 | 结束索引id | |
fromTime | long | 否 | 开始时间 | |
toTime | long | 否 | 结束时间 | |
user | string | 否 | admin | 用户id |
forward | boolean | 否 | 按时间排序方式 | |
limit | int | 否 | 最大搜索条目数 | |
path | string | 否 | 搜索过滤条件 | |
value | string | 否 | 搜索值 |
对于path(不同的过滤条件)与value参数的说明
过滤条件 | path | vaule |
---|---|---|
搜索全部 | all | |
按照操作搜索 | action | READ,CREATE,updateNodeProperties,CHECK IN,DELETE,COPY,MOVE |
按照名称查询 | name | node节点的cm:name |
根据节点uuid查询 | nodeRef | 节点id |
返回结果
{ "count": 10, "data": [ { "entryId": 117, "event": "READ", "node": { "id": "d3eaa49e-12d9-40d4-8c8a-1cf60d259229", "storeRef": { "identifier": "SpacesStore", "protocol": "workspace" } }, "nodeName": "demo.txt", "nodeType": "cm:content", "path": "/app:company_home/cm:demo.txt", "time": 1589772926060, "userName": "admin" }, { "changedValues": [ { "after": "[doclib:1589772925741]", "before": "[doclib:1589772925790]", "name": "Last thumbnail modifcation data" } ], "entryId": 116, "event": "UPDATE NODE PROPERTIES", "node": { "id": "d3eaa49e-12d9-40d4-8c8a-1cf60d259229", "storeRef": { "identifier": "SpacesStore", "protocol": "workspace" } }, "nodeName": "demo.txt", "nodeType": "cm:content", "path": "/app:company_home/cm:demo.txt", "time": 1589772926037, "userName": "admin" }, { "beforePath": "/app:company_home/cm:demo.txt", "entryId": 1242, "event": "COPY", "node": { "id": "ce8fa52a-87e0-40b0-8461-2c4d0ae7528e", "storeRef": { "identifier": "SpacesStore", "protocol": "workspace" } }, "nodeName": "demo.txt", "nodeType": "Content", "path": "/app:company_home/app:dictionary/cm:demo.txt", "time": 1591161790660, "userName": "admin" }, { "changedAspects": [ "Classifiable" ], "entryId": 1231, "event": "ADD NODE ASPECT", "node": { "id": "c529c750-355c-474e-9e60-f89b779f7331", "storeRef": { "identifier": "SpacesStore", "protocol": "workspace" } }, "nodeName": "Data Dictionary", "nodeType": "Folder", "path": "/app:company_home/app:dictionary", "time": 1591161419444, "userName": "admin" } ] }