Package org.jenkinsci.plugins.pubsub
Class JobChannelMessage<T extends JobChannelMessage>
java.lang.Object
java.util.Dictionary
java.util.Hashtable
java.util.Properties
org.jenkinsci.plugins.pubsub.Message
org.jenkinsci.plugins.pubsub.JobChannelMessage<T>
- All Implemented Interfaces:
AccessControlled,Serializable,Cloneable,Map
- Direct Known Subclasses:
JobMessage,QueueTaskMessage,RunMessage
- Author:
- tom.fennelly@gmail.com
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class java.util.Properties
defaults -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckPermission(Permission permission) protected AccessControlledGet the JenkinsAccessControlledobject associated with this message.getACL()final StringGet the channel name for the message.getJob()Deprecated.Use #getJobChannelItem.Get the JenkinsItemassociated with this message.protected PermissionGet the permission required to see the message.booleanhasPermission(Permission permission) final MessagesetChannelName(String name) Set the channel name for the message.Methods inherited from class org.jenkinsci.plugins.pubsub.Message
clone, containsAll, get, get, getEventName, getEventUUID, getJenkinsInstanceId, getJenkinsInstanceUrl, getObjectId, getObjectName, getObjectType, getTimestamp, getTimestampMillis, set, set, setEventName, setEventName, setItemProps, setJenkinsInstanceId, toJSON, toJSON, toStringMethods inherited from class java.util.Properties
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface hudson.security.AccessControlled
checkAnyPermission, hasAnyPermission, hasPermission, hasPermission2
-
Constructor Details
-
JobChannelMessage
-
-
Method Details
-
getChannelName
Description copied from class:MessageGet the channel name for the message.- Overrides:
getChannelNamein classMessage- Returns:
- The channel name for the message, or
nullif none set.
-
setChannelName
Description copied from class:MessageSet the channel name for the message.- Overrides:
setChannelNamein classMessage- Parameters:
name- The channel name for the message.
-
getJobName
-
getJobChannelItem
Get the JenkinsItemassociated with this message. -
getJob
Deprecated.Use #getJobChannelItem.Get the JenkinsJobassociated with this message. -
getAccessControlled
Get the JenkinsAccessControlledobject associated with this message.- Returns:
- The Jenkins
AccessControlledobject associated with this message, or {code null} if the message is not associated with a JenkinsAccessControlled.
-
getRequiredPermission
Get the permission required to see the message.- Returns:
- The permission required to see the message.
-
getACL
- Specified by:
getACLin interfaceAccessControlled
-
checkPermission
public void checkPermission(@NonNull Permission permission) throws org.springframework.security.access.AccessDeniedException - Specified by:
checkPermissionin interfaceAccessControlled- Throws:
org.springframework.security.access.AccessDeniedException
-
hasPermission
- Specified by:
hasPermissionin interfaceAccessControlled
-