Guest User

alfresco-audit-access.xml

a guest
May 5th, 2018
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. - Audit Application Definition 'alfresco-access'
  4. -
  5. - Extracts high level audit records on the creation, deletion, modification and access
  6. - of user visible objects.
  7. -
  8. - The following alfresco-global.properties must be set:
  9. -
  10. - # Enable audit in general
  11. - audit.enabled=true
  12. -
  13. - # Enable the alfresco-access audit application
  14. - audit.alfresco-access.enabled=true
  15. -->
  16. <Audit xmlns="http://www.alfresco.org/repo/audit/model/3.2"
  17. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  18. xsi:schemaLocation="http://www.alfresco.org/repo/audit/model/3.2 alfresco-audit-3.2.xsd">
  19.  
  20. <DataExtractors>
  21. <DataExtractor name="simpleValue" registeredName="auditModel.extractor.simpleValue"/>
  22. <DataExtractor name="nullValue" registeredName="auditModel.extractor.nullValue"/>
  23. </DataExtractors>
  24.  
  25. <DataGenerators>
  26. <DataGenerator name="currentUser" registeredName="auditModel.generator.user"/>
  27. </DataGenerators>
  28.  
  29. <PathMappings>
  30. <PathMap source="/alfresco-access" target="/alfresco-access" />
  31. <PathMap source="/alfresco-api/post/AuthenticationService/authenticate/no-error" target="/alfresco-access/login"/>
  32. <PathMap source="/alfresco-api/post/AuthenticationService/authenticate/error" target="/alfresco-access/loginFailure"/>
  33. <PathMap source="/alfresco-api/post/AuthenticationService/authenticate/args/userName" target="/alfresco-access/loginUser"/>
  34. <PathMap source="/alfresco-api/pre/ticketComponent/invalidateTicketById/args" target="/alfresco-access/logout"/>
  35. <PathMap source="/alfresco-access/transaction/properties/add/cm:versionLabel" target="/alfresco-access/transaction/cm:versionLabel"/>
  36. <PathMap source="/alfresco-access/transaction/properties/to/cm:versionLabel" target="/alfresco-access/transaction/cm:versionLabel"/>
  37. </PathMappings>
  38.  
  39. <Application name="alfresco-access" key="alfresco-access">
  40.  
  41. <AuditPath key="login">
  42. <RecordValue key="user" dataExtractor="simpleValue" dataSource="/alfresco-access/loginUser" dataTrigger="/alfresco-access/login" />
  43. </AuditPath>
  44.  
  45. <AuditPath key="loginFailure">
  46. <RecordValue key="user" dataExtractor="simpleValue" dataSource="/alfresco-access/loginUser" dataTrigger="/alfresco-access/loginFailure" />
  47. </AuditPath>
  48.  
  49. <AuditPath key="logout">
  50. <GenerateValue key="user" dataGenerator="currentUser"/>
  51. </AuditPath>
  52.  
  53. <AuditPath key="transaction">
  54. <!-- RECORD VALUE ADDED -->
  55. <RecordValue key="node" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/node" dataTrigger="/alfresco-access/transaction/node" />
  56. <RecordValue key="action" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/action" dataTrigger="/alfresco-access/transaction/action" />
  57. <RecordValue key="sub-actions" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/sub-actions" dataTrigger="/alfresco-access/transaction/sub-actions" />
  58. <RecordValue key="user" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/user" dataTrigger="/alfresco-access/transaction/user" />
  59.  
  60. <RecordValue key="path" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/path" dataTrigger="/alfresco-access/transaction/path" />
  61. <RecordValue key="type" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/type" dataTrigger="/alfresco-access/transaction/type" />
  62. <RecordValue key="version" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/cm:versionLabel" dataTrigger="/alfresco-access/transaction/cm:versionLabel" />
  63.  
  64. <AuditPath key="copy">
  65. <AuditPath key="from">
  66. <RecordValue key="path" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/copy/from/path" dataTrigger="/alfresco-access/transaction/copy/from/path" />
  67. </AuditPath>
  68. </AuditPath>
  69.  
  70. <AuditPath key="move">
  71. <AuditPath key="from">
  72. <RecordValue key="path" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/move/from/path" dataTrigger="/alfresco-access/transaction/move/from/path" />
  73. </AuditPath>
  74. </AuditPath>
  75.  
  76. <AuditPath key="properties">
  77. <RecordValue key="fromName" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/properties/from/name" dataTrigger="/alfresco-access/transaction/properties/from/name" />
  78. <RecordValue key="toName" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/properties/to/name" dataTrigger="/alfresco-access/transaction/properties/to/name" />
  79. <RecordValue key="from" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/properties/from" dataTrigger="/alfresco-access/transaction/properties/from" />
  80. <RecordValue key="to" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/properties/to" dataTrigger="/alfresco-access/transaction/properties/to" />
  81. <RecordValue key="add" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/properties/add" dataTrigger="/alfresco-access/transaction/properties/add" />
  82. <RecordValue key="delete" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/properties/delete" dataTrigger="/alfresco-access/transaction/properties/delete" />
  83. </AuditPath>
  84.  
  85. <AuditPath key="aspects">
  86. <RecordValue key="add" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/aspects/add" dataTrigger="/alfresco-access/transaction/aspects/add" />
  87. <RecordValue key="delete" dataExtractor="simpleValue" dataSource="/alfresco-access/transaction/aspects/delete" dataTrigger="/alfresco-access/transaction/aspects/delete" />
  88. </AuditPath>
  89.  
  90. </AuditPath>
  91.  
  92. </Application>
  93.  
  94. </Audit>
RAW Paste Data Copied