You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+88-49Lines changed: 88 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,27 @@ Installation
15
15
16
16
The dashlet has been developed to install on top of an existing Alfresco 3.4 installation.
17
17
18
-
*Users : Prebuilt jar
18
+
***Users : Prebuilt jar**
19
19
20
20
A prebuilt jar is provided. You only need to copy it to <tomcat-home>/shared/lib.
21
21
22
-
*Developers : Building the jar
22
+
***Developers : Building the jar**
23
23
24
24
For developers, an Ant build script is provided to build a JAR file containing the
25
25
custom files, which can then be installed into the 'tomcat/shared/lib' folder
26
26
of your Alfresco installation.
27
27
28
-
To build the JAR file, run the following command from the base project
29
-
directory.
28
+
To build the JAR file, run the following command from the base project directory.
30
29
31
-
ant clean dist-jar
30
+
ant clean dist-jar
32
31
33
32
The command should build a JAR file named sample-audit-dashlet.jar in the 'dist' directory within your project.
34
33
35
34
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
35
+
either copy the jar file in e.g. the 'tomcat/shared/lib' folder or use the hotcopy-tomcat-jar task. You will need to set the tomcat.home
37
36
property in Ant.
38
37
39
-
ant -Dtomcat.home=C:/Alfresco/tomcat clean hotcopy-tomcat-jar
38
+
ant -Dtomcat.home=C:/Alfresco/tomcat clean hotcopy-tomcat-jar
40
39
41
40
Once you have run this you will need to restart Tomcat so that the classpath resources in the JAR file are picked up.
42
41
@@ -47,10 +46,15 @@ The dashlet has been developed to install on top of an existing Alfresco 3.4 ins
47
46
Using the dashlet
48
47
-----------------
49
48
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.
49
+
***Adding the dashlet**
52
50
53
-
* Configuration :
51
+
- Log in to Alfresco Share and navigate to a site where you are a Site Manager, or to your user dashboard.
52
+
- Click the *Customize Dashboard* button to edit the contents of the dashboard. Drag the `Audit Application` dashlet into one of the columns from the list of dashlets to add it.
53
+
- Click OK to save the configuration.
54
+
- The dashlet should now be shown in your dashboard.
55
+
56
+
57
+
***Configuration** :
54
58
55
59
Click Configure to choose an existing audit application. Results will appear as you type and will be matched
56
60
against the live list of audit applications as reported by /api/audit/control.
@@ -61,69 +65,89 @@ of the dashboard and drag the dashlet into one of the columns from the list of d
61
65
The number of data rows (audit events) displayed per page is configurable with the 'Entries per page' parameter. It defaults to 10.
62
66
63
67
Additional server side filters are configurable :
64
-
UI Name Description Audit API corresponding parameter
Value Filter | filter on the audit value (exact match, optional) | 'value'
72
+
Max Entry Count | maximum number of audit entries retrieved (optional) | 'limit' (default 100)
73
+
Audit Path Filter | select only the audit entries with a matching audit path key (optional) (1) | URL path after application (default none)
74
+
Additional Query params | other possible server-side query parameters (optional). Separated by & (2) | from/to time, from/to id, user, valueType, ...
75
+
76
+
77
+
(1) The match must occur in the values map for that key within the entry.
78
+
(2) See http://wiki.alfresco.com/wiki/Auditing_(from_V3.4)#Advanced_Query for more information.
79
+
80
+
81
+
- The columns to display are also configurable (show/hide).
82
+
83
+
- The output in the "audited values" field will depend on the configuration of the current audit application.
84
+
(ie what data extractors have been configured, if using the access auditor or not, etc...).
85
+
86
+
- Querying for values when an audit path query is configured will restrict the search to entries with that value for that specific audit path.
74
87
75
-
Note : the output in the "audited values" field will depend on the configuration of the current audit application.
76
-
(ie what data extractors have been configured, if using the access auditor or not, etc...).
88
+
- The "Trim Audit Paths" checkbox can be used to show the full audit paths up to the audit key, or just the audit key, in the audit values.
89
+
It can be useful to temporarily turn on in case one wants to use the audit path filter above, as it will show the full audit paths required for that filter.
77
90
78
-
Note : querying for values when an audit path query is configured will restrict the search to entries with that value for that specific audit path.
91
+
- The data webscript does a version check to determine if a workaround for the unquoted json feed prior to 3.4.3 Enterprise / 4.0 Community (ALF-8307) is required.
92
+
This can be overriden by copying the webscript config file (audit-application-data.get.config.xml) in the equivalent path in web-extension, if required.
79
93
80
-
The "Trim Audit Paths" checkbox can be used to show the full audit paths up to the audit key, or just the audit key, in the audit values.
81
-
It can be useful to temporarily turn on in case one wants to use the audit path filter above, as it will show the full audit paths required for that filter.
82
94
83
-
Note : The data webscript does a version check to determine if a workaround for the unquoted json feed prior to 3.4.3 Enterprise / 4.0 Community (ALF-8307) is required.
84
-
This can be overriden by copying the webscript config file (audit-application-data.get.config.xml) in the equivalent path in web-extension, if required.
85
95
86
-
* Search box
96
+
***Search box**
87
97
88
98
The dashlet search box allows more search capabilities than the server side filter, ie :
89
-
- field to search on (regex or not), e.g :
90
-
id:14
91
-
id:1.95$
92
-
name:romain
93
-
etc...
99
+
- Field to search on (regex or not), e.g :
94
100
95
-
- negation, e.g
96
-
-name:ro
97
-
-values:pro
101
+
id:14
102
+
id:1.95$
103
+
name:romain
98
104
99
-
- mutliline matches are enabled, ^ and $ will match beginning of lines for audit values,
100
-
useful since there can be more than one line per audit entry
105
+
etc...
106
+
If not specified, the 'values' field will be assumed.
101
107
102
-
- query can match anywhere in the field by default. queries can be any valid javascript regular expression. examples :
103
-
^romain
104
-
values:r.m...$
105
-
id:\d\d8
106
-
-time:21
108
+
109
+
- Negation, e.g
110
+
111
+
-name:ro
112
+
-values:pro
113
+
114
+
- Multiline matches are enabled, ^ and $ will match beginning and end of lines for audit values,
115
+
useful since there can be more than one line per audit entry.
116
+
117
+
- Query can match anywhere in the field by default. Queries can be any valid javascript regular expression. Examples :
118
+
119
+
^romain
120
+
values:r.m...$
121
+
id:\d\d8
122
+
-time:21
107
123
108
124
The search box will turn green or red if the regex is valid or invalid, respectively.
109
125
The query can be restricted to the beginning by using ^romain (standard regex), for example.
110
126
See https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/regexp for more details.
111
127
112
128
Each match of the regex in the audit entry will be highlighted. Deferred submatches are also supported for highlighting.
113
129
114
-
-to search for a colon (:), use the field prefix, eg; field:.+:.+ or values:[^:]+: etc... otherwise the colon will be interpreted
115
-
as a field identifier
130
+
-To search for a colon (:), use the field prefix, eg; field:.+:.+ or values:[^:]+: etc... otherwise the colon will be interpreted
131
+
as a field identifier.
116
132
117
-
-noderefs in the audit values will be detected, and "enhanced" with a link to the docdetails page of that noderef
133
+
-Noderefs in the audit values will be detected, and "enhanced" with a link to the docdetails page of that noderef.
118
134
119
-
-multi field search is currently not supported, e.g +id:95 -name:romain. Would have to support ( ), and/or grouping, etc...
135
+
-Multi field search is currently not supported, e.g +id:95 -name:romain. Would have to support ( ), and/or grouping, etc...
120
136
121
137
This search is done by filtering out undesired entries coming from the datasource prior to browser display.
122
138
139
+
123
140
Changelog
124
141
---------
125
142
143
+
0.51:
144
+
145
+
- no new features or bugfixes
146
+
- moved README to markdown syntax due to GitHub migration
147
+
- small css class name changes
148
+
126
149
0.5:
150
+
127
151
- fixed config dialog URL to use /res, required in 4.2. addresses issue 129.
128
152
- added the configurable server-side ability to query for entries containing a specific audit path.
129
153
Note : querying for values when an audit path query is configured will restrict the search to entries with that value for that specific audit path.
@@ -134,33 +158,39 @@ Changelog
134
158
- fixed an unreported issue where storing config values with double quotes in the text would prevent the config options to be loaded afterwards.
135
159
136
160
0.45:
161
+
137
162
- refined workaround against unquoted json feed for application and user json properties
138
163
- apply this workaround only when running against a repository affected by the bug
139
164
- minor CSS fix : historical margins for dashlet body no longer required.
140
165
141
166
0.44:
167
+
142
168
- expanded workaround against unquoted json feed for application and user json properties. addresses issue 71.
143
169
- additional newline sanitizing of the server side json feed, in addition to the checks already present in the freemarker output. possibly addresses issue 82.
144
170
- rationalized indentation to 3 spaces and cleanup the tabs that have built up over time
145
171
146
172
0.43:
173
+
147
174
- allow the 'additional' query string to override any other configured options, not just the sort order
148
175
- switched the copyright header from 'Share Extras project' to 'Share Extras contributors'
149
176
150
177
0.42:
178
+
151
179
- switched to share extras namespace
152
180
- some comments and jsdoc review
153
181
- aligned rowsPerPage / defaultRowsPerPage data types
154
182
- merged some build.xml changes from upstream
155
183
156
184
0.41:
185
+
157
186
- better IE support
158
187
- some css cleanup
159
188
- some UI label changes
160
189
- updated YUI compressor to 2.4.7
161
190
- leading/trailing whitespaces cleanup
162
191
163
192
0.4:
193
+
164
194
- datatable columns can now be configured to be shown or hidden
165
195
- an extra field has been added to the config dialog to pass additional server side query parameters.
166
196
See the wiki documentation (http://wiki.alfresco.com/wiki/Auditing_(from_V3.4)#Advanced_Query) and the web script description.
@@ -169,11 +199,13 @@ Changelog
169
199
- tweaked what links (configure, help) are shown to admins / site managers
170
200
171
201
0.31:
202
+
172
203
- build.properties more consistent with other projects
173
204
- distributed jar had a wrong french bundle filename
174
205
- added small precision in the README
175
206
176
207
0.3:
208
+
177
209
- some formatting, commenting, refactored to separate search box UI background coloring from the actual filtering
178
210
- highlighting can now be expressed with CSS, rather than hardcoded html bold
179
211
- deferred submatches highlighting support
@@ -185,15 +217,22 @@ Changelog
185
217
- rows per page now configurable in the config dialog
186
218
187
219
0.22:
220
+
188
221
- small bug fix : regex remainder fix
189
222
- bug fix : generated docdetails and profile links were incorrect when a regex search was already in progress
190
223
- lots of other small regex corner cases fixed
191
224
- search box background now green or red, depending on whether or not the user search is a valid regex or not, respectively
192
225
- ability to list all applications in the config dialog by searching for a leading space, if one does not know what to search for
193
226
- renamed some files and web scripts URLs
194
227
195
-
0.21: small bug fixes : highlighting multiple matches and regression when clearing the search box
228
+
0.21:
229
+
230
+
- small bug fixes : highlighting multiple matches and regression when clearing the search box
0 commit comments