Class ChangeRecord
java.lang.Object
io.jenkins.plugins.batchcontrol.model.ChangeRecord
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class ChangeRecord
extends Object
Audit record of a change event (SPEC section 3). Appended to the monthly JSONL file
changes/YYYY-MM.jsonl; the month bucket is derived from getAt().
Append-only: records are never modified after creation.-
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeRecordcreate(ChangeType type, String target, String user, String detail) Creates a record with a fresh id and the currentBatchClocktime.getAt()getDiff()getId()getType()getUser()static ChangeRecordrestore(String id, ChangeType type, String target, String user, Instant at, String grantId, String diff, String detail) Rebuilds a record from stored fields (used by the store when reading JSONL).voidvoidsetGrantId(String grantId)
-
Method Details
-
create
Creates a record with a fresh id and the currentBatchClocktime. -
restore
public static ChangeRecord restore(String id, ChangeType type, String target, String user, Instant at, String grantId, String diff, String detail) Rebuilds a record from stored fields (used by the store when reading JSONL). -
getId
-
getType
-
getTarget
-
getUser
-
getAt
-
getGrantId
-
setGrantId
-
getDiff
-
setDiff
-
getDetail
-