Class SlackConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.changeinvestigator.slack.config.SlackConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
Global Slack settings. Individual jobs must separately opt in.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsFields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapping(String identity, String slackUser) booleanconfigure(org.kohsuke.stapler.StaplerRequest2 request, net.sf.json.JSONObject json) doCheckDefaultChannel(String value) doTestConnection(String credentialId, String defaultChannel) static SlackConfigurationget()longlonggetMappingStatus(ResponderMapping mapping) longlongbooleanbooleanbooleanbooleanbooleanmappedSlackUser(String identity) Only one exact, valid mapping may introduce a mention.mappedSlackUser(String identity, String workspaceId) voidremoveMapping(String id) voidsetCredentialId(String value) voidsetDefaultChannel(String value) voidsetEnabled(boolean value) voidsetResponderMappings(List<ResponderMapping> value) voidsetTagResponders(boolean value) voidupdateMapping(String id, String identity, String slackUser) booleanExplicit administrator validation; no network lookup occurs while holding the configuration lock.Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Field Details
-
MAX_RESPONDER_MAPPINGS
public static final int MAX_RESPONDER_MAPPINGS- See Also:
-
-
Constructor Details
-
SlackConfiguration
public SlackConfiguration()
-
-
Method Details
-
get
-
isEnabled
public boolean isEnabled() -
getRevision
public long getRevision() -
getMappingRevision
public long getMappingRevision() -
getEnabledAtMillis
public long getEnabledAtMillis() -
getModifiedAtMillis
public long getModifiedAtMillis() -
getCredentialId
-
getDefaultChannel
-
getVerifiedWorkspace
-
getVerifiedWorkspaceName
-
isWorkspaceVerified
public boolean isWorkspaceVerified() -
getVerifiedWorkspaceId
-
isMappingWorkspaceCurrent
-
getMappingStatus
-
validateMapping
Explicit administrator validation; no network lookup occurs while holding the configuration lock. -
isTagResponders
public boolean isTagResponders() -
getResponderMappings
-
setEnabled
@DataBoundSetter public void setEnabled(boolean value) -
setCredentialId
-
setDefaultChannel
-
setTagResponders
@DataBoundSetter public void setTagResponders(boolean value) -
setResponderMappings
-
addMapping
-
updateMapping
-
removeMapping
-
isConfigured
public boolean isConfigured() -
mappedSlackUser
Only one exact, valid mapping may introduce a mention. -
mappedSlackUser
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 request, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
doFillCredentialIdItems
-
doCheckDefaultChannel
-
doTestConnection
public FormValidation doTestConnection(@QueryParameter String credentialId, @QueryParameter String defaultChannel)
-