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 Details

    • JobInfoModel

      public JobInfoModel(@CheckForNull Job<?,?> validJob, boolean regularAccess, @NonNull String jobFullName)
      ctor.
      Parameters:
      validJob - the job. null if the job doesn't exist.
      regularAccess - true if the current user can access.
      jobFullName - the full name of the job.
  • Method Details

    • 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 be false 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.