@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class LegacyMonitorData extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LegacyMonitorData.JobInfoModel
For Jelly display only
Holds the information of the job to display.
|
static class |
LegacyMonitorData.JobKey
The pair of the source job and the destination job.
|
static class |
LegacyMonitorData.LegacyBuildInfoModel
For Jelly display only
Holds information of a source job and destination jobs for that source job.
|
static class |
LegacyMonitorData.LegacyBuildStorage
Data stored in the monitor
Information about the build that would fail in Production mode.
|
static class |
LegacyMonitorData.LegacyJobInfoItemModel
For Jelly display only
Holds information of the job and builds that would fail in Production mode.
|
Constructor and Description |
---|
LegacyMonitorData()
ctor
|
Modifier and Type | Method and Description |
---|---|
void |
addLegacyJob(Job<?,?> jobTryingToCopy,
Job<?,?> jobToBeCopiedFrom,
Date lastBuildDate,
String username)
Add information that would fail in Production mode.
|
List<LegacyMonitorData.LegacyBuildInfoModel> |
buildDataForCurrentUser()
Helper to ease the display of the information in a table
|
boolean |
hasJobFullName(String jobFullName)
Check a job is listed either as a source job or a destination job.
|
boolean |
isEmpty() |
void |
onJobRename(String previousFullName,
String newFullName)
Apply the rename to the job list.
|
boolean |
removeLegacyJob(String jobFullNameFrom,
String jobFullNameTo)
Remove information that would fail in Production mode.
|
public boolean isEmpty()
true
if there're no jobs to warn.public boolean hasJobFullName(@NonNull String jobFullName)
jobFullName
- the job name to checktrue
if that job is already listed.public void onJobRename(@NonNull String previousFullName, @NonNull String newFullName)
previousFullName
- the previous name of the job.newFullName
- the new name of the job.@NonNull public List<LegacyMonitorData.LegacyBuildInfoModel> buildDataForCurrentUser()
public void addLegacyJob(@NonNull Job<?,?> jobTryingToCopy, @NonNull Job<?,?> jobToBeCopiedFrom, @NonNull Date lastBuildDate, @NonNull String username)
jobTryingToCopy
- the name of the destination job.jobToBeCopiedFrom
- the name of the source job.lastBuildDate
- the build timestamp.username
- the user name that the destination job ran as.public boolean removeLegacyJob(@NonNull String jobFullNameFrom, @NonNull String jobFullNameTo)
jobFullNameFrom
- the name of the source job.jobFullNameTo
- the name of the destination job.true
if removed (the pair was registered).Copyright © 2016–2022. All rights reserved.