Class FolderCreateWindowAction

java.lang.Object
io.jenkins.plugins.batchcontrol.action.FolderCreateWindowAction
All Implemented Interfaces:
Action, ModelObject

@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public class FolderCreateWindowAction extends Object implements Action
e2e-03 DEF-19 (SPEC item 8, D-40): the folder page tells the holder of a Create window which new job names the window allows. A name-restricted window refuses New Item and Rename for any other name, and core's own pages only say "missing the Job/Create permission"; this notice, on the folder where the user creates the job, states the exact name or pattern and when the window ends.

No sidebar entry and no URL; its summary.jelly is included by the folder page for every action. Only the viewer's own active windows are listed, only while change control is on and only to a viewer with Item/Read on the folder. It never changes state.

  • Constructor Details

    • FolderCreateWindowAction

      public FolderCreateWindowAction(com.cloudbees.hudson.plugins.folder.AbstractFolder<?> folder)
  • Method Details

    • getIconFileName

      @CheckForNull public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      @CheckForNull public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • getWindows

      public List<Grant> getWindows()
      The viewer's active Create windows that cover new items in this folder: those naming its current full name (a window follows its folder through a rename or move, D-74 (3)).
    • restriction

      @CheckForNull public String restriction(Grant grant)
      The allowed names of a window in words: the exact name or pattern, or null for any.
    • isPattern

      public boolean isPattern(Grant grant)
      Whether the restriction is a /regex/ (worded "matching") rather than an exact name.
    • format

      public String format(Instant instant)
    • remaining

      public String remaining(Instant expiresAt)