mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-06 21:26:14 +02:00
Add initial audit log API
Introduce audit log API which logs all creations, modifications and deletions of annotated entities and everything which is stored inside a ConfigurationStore. Without the related Audit Log Plugin installed this API does nothing.
This commit is contained in:
committed by
SCM-Manager
parent
e74225e168
commit
56265be9a2
@@ -27,6 +27,7 @@ package sonia.scm.repository;
|
||||
//~--- JDK imports ------------------------------------------------------------
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
import sonia.scm.auditlog.AuditEntry;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
@@ -39,6 +40,7 @@ import javax.xml.bind.annotation.XmlTransient;
|
||||
*/
|
||||
@XmlRootElement(name = "config")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@AuditEntry(labels = {"git", "config"})
|
||||
public class GitConfig extends RepositoryConfig {
|
||||
|
||||
private static final String FALLBACK_BRANCH = "main";
|
||||
|
||||
@@ -24,12 +24,15 @@
|
||||
|
||||
package sonia.scm.repository;
|
||||
|
||||
import sonia.scm.auditlog.AuditEntry;
|
||||
|
||||
import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
@XmlRootElement(name = "config")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@AuditEntry(labels = {"git", "config"})
|
||||
public class GitRepositoryConfig {
|
||||
|
||||
public GitRepositoryConfig() {
|
||||
|
||||
Reference in New Issue
Block a user