Class SimpleQueueWidget

java.lang.Object
hudson.widgets.Widget
cz.mendelu.xotradov.SimpleQueueWidget

public class SimpleQueueWidget extends Widget
SimpleQueueWidget replaces the default BuildQueueWidget and adds arrows to each buildable item.
  • Constructor Details

    • SimpleQueueWidget

      public SimpleQueueWidget(@NonNull String ownerUrl, @NonNull List<QueueItem> queueItems, boolean filtered, String viewName)
  • Method Details

    • isFiltered

      public boolean isFiltered()
    • getOwnerUrl

      @NonNull public String getOwnerUrl()
      Overrides:
      getOwnerUrl in class Widget
    • getQueueItems

      @NonNull public List<QueueItem> getQueueItems()
    • getViewName

      @NonNull public String getViewName()
    • getMoveTypeName

      public static String getMoveTypeName()
    • getItemIdName

      public static String getItemIdName()
    • getViewNameParamName

      public static String getViewNameParamName()
    • getItemIdExtName

      public static String getItemIdExtName()
    • getItemIdExtParamMode

      public static String getItemIdExtParamMode()
    • getItemIdExtParamTarget

      public static String getItemIdExtParamTarget()
    • isWaiting

      public static boolean isWaiting(QueueItem item)
      Helper for Jelly templates: checks whether the given queue item is a WaitingItem (waiting for its quiet period to pass). Jelly does not support instanceof, so this method performs the type check in Java.
      Parameters:
      item - the queue item to check
      Returns:
      true if the item is a Queue.WaitingItem
    • isPending

      public static boolean isPending(QueueItem item)
      Helper for Jelly templates: checks whether the given queue item is pending (assigned to an executor, about to start). Only BuildableItem subclasses can be pending, so this safely returns false for non-BuildableItem types.
      Parameters:
      item - the queue item to check
      Returns:
      true if the item is a pending BuildableItem