Class TopLevelItem

    • Constructor Detail

      • TopLevelItem

        public TopLevelItem​(com.google.inject.Injector injector,
                            URL url,
                            String name)
    • Method Detail

      • renameTo

        @CheckReturnValue
        public <T extends TopLevelItem> T renameTo​(String newName)
        Renames the job. Opens the configuration section, sets the name and saves the form. Finally the rename is confirmed.
        Parameters:
        newName - the new name of the job
        Returns:
        the renamed job (with new URL)
      • getDescription

        public String getDescription()
      • description

        public void description​(String description,
                                boolean withCodeMirror)
        Changes the description. Opens the configuration section, sets the description and saves the form.
        Parameters:
        description - the description of the job
        withCodeMirror - if description field uses CodeMirror or not (depending on Markup Formatter)
      • setDescription

        public void setDescription​(String description)
      • setDescription

        public void setDescription​(String description,
                                   boolean withCodeMirror)
      • getDisplayName

        public String getDisplayName()
      • as

        public <T extends TopLevelItem> T as​(Class<T> type)
        "Casts" this object into a subtype by creating the specified type.
      • delete

        public abstract void delete()