public abstract class JobChannelMessage<T extends JobChannelMessage> extends Message
Item
domain model PubsubBus
message instance.defaults
Constructor and Description |
---|
JobChannelMessage(hudson.model.Item jobChannelItem) |
Modifier and Type | Method and Description |
---|---|
void |
checkPermission(hudson.security.Permission permission) |
protected hudson.security.AccessControlled |
getAccessControlled()
Get the Jenkins
AccessControlled object associated with this message. |
hudson.security.ACL |
getACL() |
String |
getChannelName()
Get the channel name for the message.
|
jenkins.model.ParameterizedJobMixIn.ParameterizedJob |
getJob()
Deprecated.
Use #getJobChannelItem.
|
hudson.model.Item |
getJobChannelItem()
Get the Jenkins
Item associated with this message. |
String |
getJobName() |
protected hudson.security.Permission |
getRequiredPermission()
Get the permission required to see the message.
|
boolean |
hasPermission(hudson.security.Permission permission) |
Message |
setChannelName(String name)
Set the channel name for the message.
|
clone, 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 JobChannelMessage(@Nonnull hudson.model.Item jobChannelItem)
public final String getChannelName()
Message
getChannelName
in class Message
null
if none set.public final Message setChannelName(String name)
Message
setChannelName
in class Message
name
- The channel name for the message.public String getJobName()
@CheckForNull public hudson.model.Item getJobChannelItem()
Item
associated with this message.Item
associated with this message,
or {code null} if the message is not associated with a
Jenkins Item
.@CheckForNull public jenkins.model.ParameterizedJobMixIn.ParameterizedJob getJob()
Job
associated with this message.Job
associated with this message,
or {code null} if the message is not associated with a
Jenkins Job
.protected hudson.security.AccessControlled getAccessControlled()
AccessControlled
object associated with this message.AccessControlled
object associated with this message,
or {code null} if the message is not associated with a
Jenkins AccessControlled
.@Nonnull protected hudson.security.Permission getRequiredPermission()
@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.