Class JobChannelMessage<T extends JobChannelMessage>

    • Constructor Detail

      • JobChannelMessage

        public JobChannelMessage​(@NonNull
                                 Item jobChannelItem)
    • Method Detail

      • getChannelName

        public final String getChannelName()
        Description copied from class: Message
        Get the channel name for the message.
        Overrides:
        getChannelName in class Message
        Returns:
        The channel name for the message, or null if none set.
      • setChannelName

        public final Message setChannelName​(String name)
        Description copied from class: Message
        Set the channel name for the message.
        Overrides:
        setChannelName in class Message
        Parameters:
        name - The channel name for the message.
      • getJobName

        public String getJobName()
      • getJobChannelItem

        @CheckForNull
        public Item getJobChannelItem()
        Get the Jenkins Item associated with this message.
        Returns:
        The Jenkins Item associated with this message, or {code null} if the message is not associated with a Jenkins Item.
      • getJob

        @Deprecated
        @CheckForNull
        public ParameterizedJobMixIn.ParameterizedJob getJob()
        Deprecated.
        Use #getJobChannelItem.
        Get the Jenkins Job associated with this message.
        Returns:
        The Jenkins Job associated with this message, or {code null} if the message is not associated with a Jenkins Job.
      • getRequiredPermission

        @NonNull
        protected Permission getRequiredPermission()
        Get the permission required to see the message.
        Returns:
        The permission required to see the message.
      • checkPermission

        public void checkPermission​(@NonNull
                                    Permission permission)
                             throws org.springframework.security.access.AccessDeniedException
        Specified by:
        checkPermission in interface AccessControlled
        Throws:
        org.springframework.security.access.AccessDeniedException