Class ConfigInfo

  • All Implemented Interfaces:
    ParsedDate

    @ExportedBean(defaultVisibility=999)
    public class ConfigInfo
    extends Object
    implements ParsedDate
    Holder object for displaying information.
    Author:
    Stefan Brausch
    • Method Detail

      • create

        public static ConfigInfo create​(String name,
                                        boolean configExists,
                                        HistoryDescr histDescr,
                                        boolean isJob)
        Returns a new ConfigInfo object for a system configuration file.
        Parameters:
        name - Name of the configuration entity we are saving.
        configExists - Does the config file exist?
        histDescr - metadata of the change.
        isJob - whether it is a job's config info or not.
        Returns:
        a new ConfigInfo object.
      • getUser

        @Exported
        public String getUser()
        Returns the display name of the user.
        Returns:
        display name
      • getUserID

        @Exported
        public String getUserID()
        Returns the id of the user.
        Returns:
        user id
      • hasConfig

        @Exported
        public boolean hasConfig()
        Does the configuration of the file exist?
        Returns:
        URL encoded filename
      • getJob

        @Exported
        public String getJob()
        Returns the name of the job.
        Returns:
        name of the job
      • getOperation

        @Exported
        public String getOperation()
        Returns the type of the operation.
        Returns:
        name of the operation
      • getIsJob

        public boolean getIsJob()
        Returns true if this object represents a Jenkins job as opposed to representing a system configuration.
        Returns:
        true if this object stores a Jenkins job configuration
      • getChangeReasonComment

        @Exported
        public String getChangeReasonComment()
        Returns:
        why the config change was made.
      • parsedDate

        public Date parsedDate()
        Returns a Date.
        Specified by:
        parsedDate in interface ParsedDate
        Returns:
        The parsed date as a java.util.Date.
      • getCurrentName

        @Exported
        public String getCurrentName()
        Returns the current job name after renaming.
        Returns:
        current job name
      • getOldName

        @Exported
        public String getOldName()
        Returns the old job name before renaming.
        Returns:
        old job name before renaming