public abstract class JobChannelMessage<T extends JobChannelMessage> extends Message
Job domain model PubsubBus message instance.defaults| Constructor and Description |
|---|
JobChannelMessage(hudson.model.Job job)
Deprecated.
|
JobChannelMessage(jenkins.model.ParameterizedJobMixIn.ParameterizedJob job)
Create a message instance associated with a Jenkins
Job. |
| Modifier and Type | Method and Description |
|---|---|
void |
checkPermission(hudson.security.Permission permission) |
protected abstract 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()
Get the Jenkins
Job 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, getObjectId, getObjectName, set, set, setEventName, setEventName, setItemProps, 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, values@Deprecated public JobChannelMessage(@Nonnull hudson.model.Job job)
JobChannelMessage(ParameterizedJobMixIn.ParameterizedJob)public JobChannelMessage(@Nonnull jenkins.model.ParameterizedJobMixIn.ParameterizedJob job)
Job.job - The Jenkins Job that this message instance is to be associated.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 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.@Nonnull protected hudson.security.Permission getRequiredPermission()
@CheckForNull protected abstract 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 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. All rights reserved.