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, toStringgetProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, 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, valuespublic JobChannelMessage(@Nonnull hudson.model.Item jobChannelItem)
public final String getChannelName()
MessagegetChannelName in class Messagenull if none set.public final Message setChannelName(String name)
MessagesetChannelName in class Messagename - 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.AccessControlledpublic void checkPermission(@Nonnull hudson.security.Permission permission) throws org.acegisecurity.AccessDeniedException
checkPermission in interface hudson.security.AccessControlledorg.acegisecurity.AccessDeniedExceptionpublic boolean hasPermission(@Nonnull hudson.security.Permission permission)
hasPermission in interface hudson.security.AccessControlledCopyright © 2016–2019. All rights reserved.