Skip to content

Commit 1a28b47

Browse files
author
Romain GUINOT
committed
updated README to markdown syntax due to GitHub migration
1 parent 512c098 commit 1a28b47

File tree

1 file changed

+88
-49
lines changed

1 file changed

+88
-49
lines changed

README.md

Lines changed: 88 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,27 @@ Installation
1515

1616
The dashlet has been developed to install on top of an existing Alfresco 3.4 installation.
1717

18-
* Users : Prebuilt jar
18+
* **Users : Prebuilt jar**
1919

2020
A prebuilt jar is provided. You only need to copy it to <tomcat-home>/shared/lib.
2121

22-
* Developers : Building the jar
22+
* **Developers : Building the jar**
2323

2424
For developers, an Ant build script is provided to build a JAR file containing the
2525
custom files, which can then be installed into the 'tomcat/shared/lib' folder
2626
of your Alfresco installation.
2727

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.
3029

31-
ant clean dist-jar
30+
ant clean dist-jar
3231

3332
The command should build a JAR file named sample-audit-dashlet.jar in the 'dist' directory within your project.
3433

3534
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
3736
property in Ant.
3837

39-
ant -Dtomcat.home=C:/Alfresco/tomcat clean hotcopy-tomcat-jar
38+
ant -Dtomcat.home=C:/Alfresco/tomcat clean hotcopy-tomcat-jar
4039

4140
Once you have run this you will need to restart Tomcat so that the classpath resources in the JAR file are picked up.
4241

@@ -47,10 +46,15 @@ The dashlet has been developed to install on top of an existing Alfresco 3.4 ins
4746
Using the dashlet
4847
-----------------
4948

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**
5250

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** :
5458

5559
Click Configure to choose an existing audit application. Results will appear as you type and will be matched
5660
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
6165
The number of data rows (audit events) displayed per page is configurable with the 'Entries per page' parameter. It defaults to 10.
6266

6367
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-
- Max Entry Count maximum number of audit entries retrieved (optional) 'limit' (default 100)
68-
- Audit Path Filter select only the audit entries with a matching audit path URL path after application (default none)
69-
key in their values map. (optional)
70-
- Additional Query params other possible server-side query parameters (optional). Separated by &. from/to time, from/to id, user, valueType, ...
71-
(See http://wiki.alfresco.com/wiki/Auditing_(from_V3.4)#Advanced_Query).
7268

73-
The columns to display are also configurable (show/hide).
69+
UI Name | Description | Audit API corresponding parameter
70+
------------------------------ | --------------------------------------------------------------------------- | ------------------------------------
71+
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.
7487

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.
7790

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.
7993

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.
8294

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.
8595

86-
* Search box
96+
* **Search box**
8797

8898
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 :
94100

95-
- negation, e.g
96-
-name:ro
97-
-values:pro
101+
id:14
102+
id:1.95$
103+
name:romain
98104

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.
101107

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
107123

108124
The search box will turn green or red if the regex is valid or invalid, respectively.
109125
The query can be restricted to the beginning by using ^romain (standard regex), for example.
110126
See https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/regexp for more details.
111127

112128
Each match of the regex in the audit entry will be highlighted. Deferred submatches are also supported for highlighting.
113129

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.
116132

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.
118134

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...
120136

121137
This search is done by filtering out undesired entries coming from the datasource prior to browser display.
122138

139+
123140
Changelog
124141
---------
125142

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+
126149
0.5:
150+
127151
- fixed config dialog URL to use /res, required in 4.2. addresses issue 129.
128152
- added the configurable server-side ability to query for entries containing a specific audit path.
129153
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
134158
- fixed an unreported issue where storing config values with double quotes in the text would prevent the config options to be loaded afterwards.
135159

136160
0.45:
161+
137162
- refined workaround against unquoted json feed for application and user json properties
138163
- apply this workaround only when running against a repository affected by the bug
139164
- minor CSS fix : historical margins for dashlet body no longer required.
140165

141166
0.44:
167+
142168
- expanded workaround against unquoted json feed for application and user json properties. addresses issue 71.
143169
- additional newline sanitizing of the server side json feed, in addition to the checks already present in the freemarker output. possibly addresses issue 82.
144170
- rationalized indentation to 3 spaces and cleanup the tabs that have built up over time
145171

146172
0.43:
173+
147174
- allow the 'additional' query string to override any other configured options, not just the sort order
148175
- switched the copyright header from 'Share Extras project' to 'Share Extras contributors'
149176

150177
0.42:
178+
151179
- switched to share extras namespace
152180
- some comments and jsdoc review
153181
- aligned rowsPerPage / defaultRowsPerPage data types
154182
- merged some build.xml changes from upstream
155183

156184
0.41:
185+
157186
- better IE support
158187
- some css cleanup
159188
- some UI label changes
160189
- updated YUI compressor to 2.4.7
161190
- leading/trailing whitespaces cleanup
162191

163192
0.4:
193+
164194
- datatable columns can now be configured to be shown or hidden
165195
- an extra field has been added to the config dialog to pass additional server side query parameters.
166196
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
169199
- tweaked what links (configure, help) are shown to admins / site managers
170200

171201
0.31:
202+
172203
- build.properties more consistent with other projects
173204
- distributed jar had a wrong french bundle filename
174205
- added small precision in the README
175206

176207
0.3:
208+
177209
- some formatting, commenting, refactored to separate search box UI background coloring from the actual filtering
178210
- highlighting can now be expressed with CSS, rather than hardcoded html bold
179211
- deferred submatches highlighting support
@@ -185,15 +217,22 @@ Changelog
185217
- rows per page now configurable in the config dialog
186218

187219
0.22:
220+
188221
- small bug fix : regex remainder fix
189222
- bug fix : generated docdetails and profile links were incorrect when a regex search was already in progress
190223
- lots of other small regex corner cases fixed
191224
- search box background now green or red, depending on whether or not the user search is a valid regex or not, respectively
192225
- ability to list all applications in the config dialog by searching for a leading space, if one does not know what to search for
193226
- renamed some files and web scripts URLs
194227

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
231+
232+
0.2 :
233+
234+
- search box / query filtering
196235

197-
0.2 : search box / query filtering
236+
0.1 :
198237

199-
0.1 : inital release
238+
- inital release

0 commit comments

Comments
 (0)