Uses of Class
hudson.util.FormValidation
Packages that use FormValidation
Package
Description
Core object model that are bound to URLs via stapler, rooted at
Jenkins.Boolean expression over labels.
Security-related code.
Code related to agents.
Built-in
Triggers that run periodically to kick a new build.Other miscellaneous utility code
-
Uses of FormValidation in hudson
Methods in hudson that return FormValidationModifier and TypeMethodDescriptionPluginManager.doCheckPluginUrl(org.kohsuke.stapler.StaplerRequest2 request, String value) ProxyConfiguration.DescriptorImpl.doCheckPort(String value) ProxyConfiguration.DescriptorImpl.doCheckSecretPassword(String value) PluginManager.doCheckUpdateSiteUrl(org.kohsuke.stapler.StaplerRequest2 request, String value) ProxyConfiguration.DescriptorImpl.doCheckUserName(String value) ProxyConfiguration.DescriptorImpl.doValidateProxy(String testUrl, String name, int port, String userName, Secret password, String noProxyHost) static FormValidationFilePath.validateFileMask(FilePath path, String value) Short forvalidateFileMask(path, value, true)static FormValidationFilePath.validateFileMask(FilePath path, String value, boolean caseSensitive) Shortcut forFilePath.validateFileMask(String,boolean,boolean)witherrorIfNotExisttrue, as the left-hand side can be null.FilePath.validateFileMask(String value) Short forvalidateFileMask(value, true, true)FilePath.validateFileMask(String value, boolean errorIfNotExist) Short forvalidateFileMask(value, errorIfNotExist, true)FilePath.validateFileMask(String value, boolean errorIfNotExist, boolean caseSensitive) Checks the GLOB-style file mask.FilePath.validateRelativeDirectory(String value) FilePath.validateRelativeDirectory(String value, boolean errorIfNotExist) A convenience method overFilePath.validateRelativePath(String, boolean, boolean).FilePath.validateRelativePath(String value, boolean errorIfNotExist, boolean expectingFile) Validates a relative file path from thisFilePath. -
Uses of FormValidation in hudson.logging
Methods in hudson.logging that return FormValidationModifier and TypeMethodDescriptionLogRecorder.doCheckName(String value, String level) Validate the name.LogRecorderManager.doCheckNewName(String name) -
Uses of FormValidation in hudson.model
Methods in hudson.model that return FormValidationModifier and TypeMethodDescriptionabstract FormValidationAbstractProject.LabelValidator.check(AbstractProject<?, ?> project, Label label) Deprecated.Check the use of the label within the specified context.protected FormValidationViewDescriptor.checkDisplayName(View view, String value) Validation of the display name field.protected FormValidationJDK.DescriptorImpl.checkHomeDirectory(File value) Checks if the JAVA_HOME is a valid JAVA_HOME path.Deprecated.Validates the use of a label within a particular context.AbstractProject.AbstractProjectDescriptor.doCheckAssignedLabelString(AbstractProject<?, ?> project, String value) ChoiceParameterDefinition.DescriptorImpl.doCheckChoices(String value) Checks if parameterized build choices are valid.AbstractProject.AbstractProjectDescriptor.doCheckCustomWorkspace(String customWorkspace) TopLevelItemDescriptor.doCheckDisplayNameOrNull(TopLevelItem item, String value) ListView.DescriptorImpl.doCheckIncludeRegex(String value) Checks if the include regular expression is valid.View.doCheckJobName(String value) Makes sure that the given name is good as a job name.AbstractProject.AbstractProjectDescriptor.doCheckLabel(AbstractProject<?, ?> project, String value) ComputerSet.doCheckName(String value) Makes sure that the given name is good as an agent name.AbstractItem.doCheckNewName(String newName) Called byAbstractItem.doConfirmRename(java.lang.String)andrename.jellyto validate renames.Slave.SlaveDescriptor.doCheckNumExecutors(String value) Slave.SlaveDescriptor.doCheckRemoteFS(String value) Performs syntactical check on the remote FS for agents.AbstractProject.doCheckRetryCount(String value) Validates the retry count RegexTimeZoneProperty.DescriptorImpl.doCheckTimeZoneName(String timeZoneName) Hudson.doFieldCheck(String value, String type, String errorText, String warningText) Deprecated.as of 1.324 Either use client-side validation (e.g.UpdateSite.doVerifySignature()MyViewsProperty.doViewExistsCheck(String value, boolean exists) Checks if a private view with the given name exists.ProxyView.doViewExistsCheck(String value) Fails if a global view with the given name does not exist.UpdateSite.updateDirectlyNow()Forces an update of the data file from the configured URL, irrespective of the last time the data was retrieved.UpdateSite.updateDirectlyNow(boolean signatureCheck) DownloadService.Downloadable.updateNow()static FormValidationAbstractProject.AbstractProjectDescriptor.validateLabelExpression(String value, AbstractProject<?, ?> project) Deprecated.UseLabelExpression.validate(String, Item)instead.final FormValidationUpdateSite.verifySignatureInternal(net.sf.json.JSONObject o) Verifies the signature in the update center data file.Methods in hudson.model that return types with arguments of type FormValidationModifier and TypeMethodDescriptionUpdateCenter.updateAllSites()Ensure that all UpdateSites are up to date, without requiring a user to browse to the instance.UpdateSite.updateDirectly()Update the data file from the given URL if the file does not exist, or is otherwise due for update.UpdateSite.updateDirectly(boolean signatureCheck) Deprecated. -
Uses of FormValidation in hudson.model.labels
Methods in hudson.model.labels that return FormValidationModifier and TypeMethodDescriptionstatic FormValidationValidates a label expression.static FormValidationValidates a label expression. -
Uses of FormValidation in hudson.security
Methods in hudson.security that return FormValidationModifier and TypeMethodDescriptionHudsonPrivateSecurityRealm.DescriptorImpl.doCheckAllowsSignup(boolean value) -
Uses of FormValidation in hudson.slaves
Methods in hudson.slaves that return FormValidationModifier and TypeMethodDescriptionPerforms syntax check.NodeDescriptor.doCheckName(String value) -
Uses of FormValidation in hudson.tasks
Methods in hudson.tasks that return FormValidationModifier and TypeMethodDescriptionprotected FormValidationMaven.MavenInstallation.DescriptorImpl.checkHomeDirectory(File value) Checks if the MAVEN_HOME is valid.BuildTrigger.DescriptorImpl.doCheck(AbstractProject project, String value) Form validation method.Fingerprinter.DescriptorImpl.doCheck(AbstractProject project, String value) Deprecated.ArtifactArchiver.DescriptorImpl.doCheckArtifacts(AbstractProject project, String value, String caseSensitive) Performs on-the-fly validation of the file mask wildcard, when the artifacts textbox or the caseSensitive checkbox are modifiedShell.DescriptorImpl.doCheckShell(String value) Check the existence of sh in the given location.Fingerprinter.DescriptorImpl.doCheckTargets(AbstractProject<?, ?> project, String value) BatchFile.DescriptorImpl.doCheckUnstableReturn(String value) Performs on-the-fly validation of the errorlevel.Shell.DescriptorImpl.doCheckUnstableReturn(String value) Performs on-the-fly validation of the exit code. -
Uses of FormValidation in hudson.tools
Methods in hudson.tools that return FormValidationModifier and TypeMethodDescriptionprotected FormValidationToolDescriptor.checkHomeDirectory(File home) May be overridden to provide tool-specific validation of a tool home directory.AbstractCommandInstaller.Descriptor.doCheckCommand(String value) ToolDescriptor.doCheckHome(File value) Checks if the home directory is valid.ToolInstallerDescriptor.doCheckLabel(String value) ToolDescriptor.doCheckName(String value) Checks if the tool name is valid.AbstractCommandInstaller.Descriptor.doCheckToolHome(String value) ZipExtractionInstaller.DescriptorImpl.doCheckUrl(String value) -
Uses of FormValidation in hudson.triggers
Methods in hudson.triggers that return FormValidationModifier and TypeMethodDescriptionSCMTrigger.DescriptorImpl.doCheckPollingThreadCount(String value) SCMTrigger.DescriptorImpl.doCheckScmpoll_spec(String value, boolean ignorePostCommitHooks, Item item) Performs syntax check.TimerTrigger.DescriptorImpl.doCheckSpec(String value, Item item) Performs syntax check. -
Uses of FormValidation in hudson.util
Methods in hudson.util that return FormValidationModifier and TypeMethodDescriptionstatic FormValidationFormValidation.aggregate(Collection<FormValidation> validations) Aggregate multiple validations into one.protected abstract FormValidationFormValidation.URLCheck.check()Implement the actual form validation logic, by using other convenience methods defined in this class.static FormValidationSends out a string error message that indicates an error.static FormValidationSends out a string error message that indicates an error, by formatting it withString.format(String, Object[])static FormValidationSends out a string error message, with optional "show details" link that expands to the full stack trace.static FormValidationstatic FormValidationFormValidation.errorWithMarkup(String message) Sends out an HTML fragment that indicates an error.protected FormValidationFormValidation.URLCheck.handleIOException(String url, IOException e) Calls theerror(String)method with a reasonable error message.static FormValidationFormValidation.ok()static FormValidationstatic FormValidationstatic FormValidationFormValidation.okWithMarkup(String message) static FormValidationFormValidation.respond(FormValidation.Kind kind, String html) Sends out an arbitrary HTML fragment as the output.abstract FormValidationstatic FormValidationFormValidation.validateBase64(String value, boolean allowWhitespace, boolean allowEmpty, String errorMessage) Makes sure that the given string is a base64 encoded text.static FormValidationFormValidation.validateExecutable(String exe) Makes sure that the given string points to an executable file.static FormValidationFormValidation.validateExecutable(String exe, FormValidation.FileValidator exeValidator) Makes sure that the given string points to an executable file.static FormValidationFormValidation.validateIntegerInRange(String value, int lower, int upper) Make sure that the given string is an integer in the range specified by the lower and upper bounds (both inclusive)static FormValidationFormValidation.validateNonNegativeInteger(String value) Makes sure that the given string is a non-negative integer.static FormValidationFormValidation.validatePositiveInteger(String value) Makes sure that the given string is a positive integer.static FormValidationFormValidation.validateRequired(String value) Makes sure that the given string is not null or empty.static FormValidationstatic FormValidationstatic FormValidationstatic FormValidationstatic FormValidationFormValidation.warningWithMarkup(String message) Method parameters in hudson.util with type arguments of type FormValidationModifier and TypeMethodDescriptionstatic FormValidationFormValidation.aggregate(Collection<FormValidation> validations) Aggregate multiple validations into one. -
Uses of FormValidation in jenkins.agents
Methods in jenkins.agents that return FormValidation -
Uses of FormValidation in jenkins.diagnostics
Methods in jenkins.diagnostics that return FormValidationModifier and TypeMethodDescriptionURICheckEncodingMonitor.doCheckURIEncoding(org.kohsuke.stapler.StaplerRequest2 request) -
Uses of FormValidation in jenkins.model
Methods in jenkins.model that return FormValidationModifier and TypeMethodDescriptionJenkins.checkDisplayName(String displayName, TopLevelItem item) Checks to see if the candidate displayName collides with any existing display names or project names in the items parent groupJenkinsLocationConfiguration.doCheckAdminAddress(String value) Jenkins.doCheckDisplayName(String displayName, String jobName) ProjectNamingStrategy.PatternProjectNamingStrategy.DescriptorImpl.doCheckNamePattern(String value) Jenkins.DescriptorImpl.doCheckNumExecutors(String value) Jenkins.doCheckURIEncoding(org.kohsuke.stapler.StaplerRequest2 request) Deprecated.JenkinsLocationConfiguration.doCheckUrl(String value) Checks the URL inglobal.jellyJenkins.doCheckViewName(String value) Checks if a top-level view with the given name exists and make sure that the name is good as a view name.Jenkins.doDefaultJDKCheck(org.kohsuke.stapler.StaplerRequest2 request, String value) If the user chose the default JDK, make sure we got 'java' in PATH.Jenkins.doViewExistsCheck(String value) Deprecated.1.512 -
Uses of FormValidation in jenkins.model.labels
Methods in jenkins.model.labels that return FormValidationModifier and TypeMethodDescriptionValidates the use of a label within a particular context. -
Uses of FormValidation in jenkins.security
Methods in jenkins.security that return FormValidationModifier and TypeMethodDescriptionResourceDomainConfiguration.doCheckUrl(String resourceRootUrlString) -
Uses of FormValidation in jenkins.tasks.filters.impl
Methods in jenkins.tasks.filters.impl that return FormValidationModifier and TypeMethodDescriptionRetainVariablesLocalRule.DescriptorImpl.doCheckRetainCharacteristicEnvVars(boolean value) -
Uses of FormValidation in jenkins.triggers
Methods in jenkins.triggers that return FormValidationModifier and TypeMethodDescriptionReverseBuildTrigger.DescriptorImpl.doCheckUpstreamProjects(Job project, String value) -
Uses of FormValidation in jenkins.util
Methods in jenkins.util that return FormValidationModifier and TypeMethodDescriptionJSONSignatureValidator.verifySignature(net.sf.json.JSONObject o) Verifies the signature in the update center data file.