@Extension
public class TelegramBotGlobalConfiguration
extends jenkins.model.GlobalConfiguration
| Constructor and Description |
|---|
TelegramBotGlobalConfiguration()
Called when Jenkins is starting and it's config is loading
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
Called when Jenkins config is saving via web-interface
|
hudson.util.FormValidation |
doCheckMessage(String value) |
UserApprover.ApprovalType |
getApprovalType() |
String |
getBotName() |
Map<String,String> |
getBotStrings() |
String |
getBotToken() |
String |
getDisplayName() |
Set<User> |
getUsers() |
boolean |
isApplicable(Class<? extends hudson.model.AbstractProject> clazz) |
Boolean |
isShouldLogToConsole() |
void |
setApprovalType(UserApprover.ApprovalType approvalType) |
void |
setBotName(String botName) |
void |
setBotToken(String botToken) |
void |
setShouldLogToConsole(Boolean shouldLogToConsole) |
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap@DataBoundConstructor public TelegramBotGlobalConfiguration()
public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData)
throws hudson.model.Descriptor.FormException
configure in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>hudson.model.Descriptor.FormExceptionpublic hudson.util.FormValidation doCheckMessage(@QueryParameter
String value)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic boolean isApplicable(Class<? extends hudson.model.AbstractProject> clazz)
@Nonnull public String getDisplayName()
getDisplayName in class hudson.model.Descriptor<jenkins.model.GlobalConfiguration>public Boolean isShouldLogToConsole()
public void setShouldLogToConsole(Boolean shouldLogToConsole)
public String getBotToken()
public void setBotToken(String botToken)
public String getBotName()
public void setBotName(String botName)
public UserApprover.ApprovalType getApprovalType()
public void setApprovalType(UserApprover.ApprovalType approvalType)
Copyright © 2016–2019. All rights reserved.