@@ -3,60 +3,73 @@ Audit Application dashlet for Alfresco Share
3
3
4
4
Author: Romain Guinot
5
5
6
- This project defines a custom dashlet to display events for a given audit application.
6
+ This project defines a custom dashlet to display events for any given audit application.
7
7
8
- The dashlet will need to have auditing application(s) already configured, and to be useful some events captured.
8
+ The dashlet will need to have auditing application(s) already configured, and, to be useful, some events captured.
9
9
See http://wiki.alfresco.com/wiki/Auditing_(from_V3.4) on how to define audit applications and some samples.
10
10
11
+ From 3.4.4, also see http://wiki.alfresco.com/wiki/Content_Auditing and http://wiki.alfresco.com/wiki/Audit_Filter.
12
+
11
13
Installation
12
14
------------
13
15
14
- The dashlet has been developed to install on top of an existing Alfresco
15
- 3.4 installation.
16
+ The dashlet has been developed to install on top of an existing Alfresco 3.4 installation.
17
+
18
+ * Users : Prebuilt jar
19
+
20
+ A prebuilt jar is provided. You only need to copy it to <tomcat-home>/shared/lib.
16
21
17
- An Ant build script is provided to build a JAR file containing the
18
- custom files, which can then be installed into the 'tomcat/shared/lib' folder
19
- of your Alfresco installation.
22
+ * Developers : Building the jar
20
23
21
- To build the JAR file, run the following command from the base project
22
- directory.
24
+ For developers, an Ant build script is provided to build a JAR file containing the
25
+ custom files, which can then be installed into the 'tomcat/shared/lib' folder
26
+ of your Alfresco installation.
23
27
24
- ant clean dist-jar
28
+ To build the JAR file, run the following command from the base project
29
+ directory.
25
30
26
- The command should build a JAR file named sample-audit-dashlet.jar
27
- in the 'dist' directory within your project.
31
+ ant clean dist-jar
28
32
29
- To deploy the dashlet files into a local Tomcat instance for testing, you can
30
- use the hotcopy-tomcat-jar task. You will need to set the tomcat.home
31
- property in Ant.
33
+ The command should build a JAR file named sample-audit-dashlet.jar in the 'dist' directory within your project.
32
34
33
- ant -Dtomcat.home=C:/Alfresco/tomcat clean hotcopy-tomcat-jar
35
+ To deploy the dashlet files into a local Tomcat instance for testing, you can
36
+ use the hotcopy-tomcat-jar task. You will need to set the tomcat.home
37
+ property in Ant.
34
38
35
- Once you have run this you will need to restart Tomcat so that the classpath
36
- resources in the JAR file are picked up.
39
+ ant -Dtomcat.home=C:/Alfresco/tomcat clean hotcopy-tomcat-jar
37
40
38
- As an alternative, you may also copy the exploded files in your classpath, but they must have the classpath tree than the one in the jar.
39
- If using development/debug mode for the web framework, you will not need to restart tomcat, but you may have to clear your
40
- browser's cache.
41
+ Once you have run this you will need to restart Tomcat so that the classpath resources in the JAR file are picked up.
42
+
43
+ As an alternative, you may also copy the exploded files in your classpath, but they must have the classpath tree
44
+ than the one in the jar. If using development/debug mode for the web framework, you will not need to restart tomcat,
45
+ but you may have to clear your browser's cache.
41
46
42
47
Using the dashlet
43
48
-----------------
44
49
45
- Log in to Alfresco Share and navigate to a site or user dashboard. Click the
46
- Customize Dashboard button to edit the contents of the dashboard and drag
47
- the dashlet into one of the columns from the list of dashlets.
50
+ Log in to Alfresco Share and navigate to a site or user dashboard. Click the 'Customize Dashboard' button to edit the contents
51
+ of the dashboard and drag the dashlet into one of the columns from the list of dashlets.
48
52
49
53
* Configuration :
50
54
51
55
Click Configure to choose an existing audit application. Results will appear as you type and will be matched
52
56
against the live list of audit applications as reported by /api/audit/control.
53
57
54
- For convenience, application names are prepended with a space. So by typing a leading space in the search box,
55
- you will see the full list of applications in the suggestions. May be useful if you don't know what application name to search for.
58
+ For convenience, the list will pop out when opening the configure dialog with no applications currently configured.
59
+ Could be useful if you don't know what application name to search for.
60
+
61
+ The number of data rows (audit events) per page is configurable by the 'Entries per page' parameter.
56
62
57
- If you want you can also select an additional value filter to limit the results.
58
- This server-side filter correspond to the "value" parameter optionally passed to the audit query.
59
- (See http://wiki.alfresco.com/wiki/Auditing_(from_V3.4)#Advanced_Query). This filtering is done server-side
63
+ Additional server side filters are configurable :
64
+ UI Name Description Audit API corresponding parameter
65
+ -----------------------------------------------------------------------------------------------------------
66
+ - value filter filter on the audit value (exact match,optional) 'value'
67
+ - limit maximum number of audit entries retrieved (optional) 'limit'
68
+ - Additional Query params other possible query parameters (optional) from/to time, from/to id, user
69
+
70
+ (See http://wiki.alfresco.com/wiki/Auditing_(from_V3.4)#Advanced_Query). This filtering is done server-side.
71
+
72
+ The columns to display are also configurable (show/hide).
60
73
61
74
* Search box
62
75
@@ -93,6 +106,13 @@ the dashlet into one of the columns from the list of dashlets.
93
106
94
107
Changelog
95
108
---------
109
+ 0.4:
110
+ - datatable columns can now be configured to be shown or hidden
111
+ - an extra field has been added to the config dialog to pass additional server side query parameters.
112
+ See the wiki documentation (http://wiki.alfresco.com/wiki/Auditing_(from_V3.4)#Advanced_Query) and the web script description.
113
+ - datatable css fix for google chrome, and various css tweaks
114
+ - Added help link opposite the config link
115
+
96
116
0.31:
97
117
- build.properties more consistent with other projects
98
118
- distributed jar had a wrong french bundle filename
@@ -122,4 +142,3 @@ Changelog
122
142
0.2 : search box / query filtering
123
143
124
144
0.1 : inital release
125
-
0 commit comments