Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1015 Bytes

README.md

File metadata and controls

42 lines (30 loc) · 1015 Bytes

datarouter-changelog

Datarouter-changelog is a tool that records changes or user actions, which can be viewed on a simple UI.

Installation with Maven

<dependency>
	<groupId>io.datarouter</groupId>
	<artifactId>datarouter-changelog</artifactId>
	<version>0.0.126</version>
</dependency>

Installation with Datarouter

You can install this module by adding its plugin to the WebappBuilder.

.addPlugin(new DatarouterChangelogPluginBuilder(...)
		...
		.build()

Usage

Datarouter already records many changes or actions by default, but additional ones can be recorded by using the ChangelogRecorder.

@Inject
private ChangelogRecorder changelogRecorder;

public void someMethod(){
	// ...
	changelogRecorder.record("changelogType", "name", "action", "username", "userToken", "comment");
}

Changelogs can also be published to third party services.

License

This library is licensed under the Apache License, Version 2.0 - see LICENSE for details.