Class LegacyMonitorData.JobInfoModel
- java.lang.Object
-
- hudson.plugins.copyartifact.monitor.LegacyMonitorData.JobInfoModel
-
- Enclosing class:
- LegacyMonitorData
public static class LegacyMonitorData.JobInfoModel extends Object
For Jelly display only Holds the information of the job to display.
-
-
Constructor Summary
Constructors Constructor Description JobInfoModel(Job<?,?> validJob, boolean regularAccess, String jobFullName)
ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getJobFullName()
Job<?,?>
getValidJob()
boolean
isAutoMigratable()
boolean
isRegularAccess()
Check wheter the current user have read permission to that job.
-
-
-
Method Detail
-
getValidJob
@CheckForNull public Job<?,?> getValidJob()
- Returns:
- the job.
null
if the job doesn't exist.
-
isRegularAccess
public boolean isRegularAccess()
Check wheter the current user have read permission to that job. This will befalse
also if the job no longer exists.- Returns:
true
if the current user can access.
-
getJobFullName
@NonNull public String getJobFullName()
- Returns:
- the full name of the job.
-
isAutoMigratable
public boolean isAutoMigratable()
- Returns:
true
if auto-migration is applicable.
-
-