Class JobChannelMessage<T extends JobChannelMessage>

All Implemented Interfaces:
AccessControlled, Serializable, Cloneable, Map
Direct Known Subclasses:
JobMessage, QueueTaskMessage, RunMessage

public abstract class JobChannelMessage<T extends JobChannelMessage> extends Message
Jenkins Job Channel Item domain model PubsubBus message instance.
Author:
tom.fennelly@gmail.com
See Also:
  • Constructor Details Link icon

    • JobChannelMessage Link icon

      public JobChannelMessage(@NonNull Item jobChannelItem)
  • Method Details Link icon

    • getChannelName Link icon

      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 Link icon

      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 Link icon

      public String getJobName()
    • getJobChannelItem Link icon

      @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 Link icon

      @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.
    • getAccessControlled Link icon

      protected AccessControlled getAccessControlled()
      Get the Jenkins AccessControlled object associated with this message.
      Returns:
      The Jenkins AccessControlled object associated with this message, or {code null} if the message is not associated with a Jenkins AccessControlled.
    • getRequiredPermission Link icon

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

      @NonNull public ACL getACL()
      Specified by:
      getACL in interface AccessControlled
    • checkPermission Link icon

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

      public boolean hasPermission(@NonNull Permission permission)
      Specified by:
      hasPermission in interface AccessControlled