public final class RunMessage extends JobChannelMessage<RunMessage>
Run
domain model PubsubBus
message instance.defaults
Constructor and Description |
---|
RunMessage()
Create a plain message instance.
|
RunMessage(hudson.model.Run run)
Create a message instance associated with a Jenkins
Run . |
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(hudson.security.Permission permission) |
Message |
clone()
Clone this
Message instance. |
protected hudson.security.AccessControlled |
getAccessControlled()
Get the Jenkins
AccessControlled object associated with this message. |
hudson.security.ACL |
getACL() |
hudson.model.Run |
getRun()
Get the Jenkins
Run associated with this message. |
boolean |
hasPermission(hudson.security.Permission permission) |
getChannelName, getJob, getJobChannelItem, getJobName, getRequiredPermission, setChannelName
containsAll, get, get, getEventName, getEventUUID, getJenkinsInstanceId, getJenkinsInstanceUrl, getObjectId, getObjectName, getObjectType, getTimestamp, getTimestampMillis, set, set, setEventName, setEventName, setItemProps, setJenkinsInstanceId, toJSON, toJSON, toString
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, values
public RunMessage()
public RunMessage(@Nonnull hudson.model.Run run)
Run
.run
- The Jenkins Run
with this message instance is to be associated.public Message clone()
Message
instance.
Base implementation creates a SimpleMessage
instance.
protected hudson.security.AccessControlled getAccessControlled()
AccessControlled
object associated with this message.getAccessControlled
in class JobChannelMessage<RunMessage>
AccessControlled
object associated with this message,
or {code null} if the message is not associated with a
Jenkins AccessControlled
.@CheckForNull public hudson.model.Run getRun()
Run
associated with this message.Run
associated with this message,
or {code null} if the message is not associated with a
Jenkins Run
.@Nonnull public hudson.security.ACL getACL()
getACL
in interface hudson.security.AccessControlled
public void checkPermission(@Nonnull hudson.security.Permission permission) throws org.acegisecurity.AccessDeniedException
checkPermission
in interface hudson.security.AccessControlled
org.acegisecurity.AccessDeniedException
public boolean hasPermission(@Nonnull hudson.security.Permission permission)
hasPermission
in interface hudson.security.AccessControlled
Copyright © 2016–2019. All rights reserved.