Uses of Class
hudson.util.FormValidation
-
Packages that use FormValidation Package Description hudson hudson.logging hudson.model Core object model that are bound to URLs via stapler, rooted atJenkins.hudson.model.labels Boolean expression over labels.hudson.security Security-related code.hudson.slaves Code related to agents.hudson.tasks hudson.tools hudson.triggers Built-inTriggers that run periodically to kick a new build.hudson.util Other miscellaneous utility codejenkins.agents jenkins.diagnostics jenkins.model jenkins.model.labels jenkins.security jenkins.tasks.filters.impl jenkins.triggers jenkins.util -
-
Uses of FormValidation in hudson
Methods in hudson that return FormValidation Modifier and Type Method Description FormValidationPluginManager. doCheckPluginUrl(org.kohsuke.stapler.StaplerRequest request, String value)FormValidationProxyConfiguration.DescriptorImpl. doCheckPort(String value)FormValidationPluginManager. doCheckUpdateSiteUrl(org.kohsuke.stapler.StaplerRequest request, String value)FormValidationProxyConfiguration.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.FormValidationFilePath. validateFileMask(String value)Short forvalidateFileMask(value, true, true)FormValidationFilePath. validateFileMask(String value, boolean errorIfNotExist)Short forvalidateFileMask(value, errorIfNotExist, true)FormValidationFilePath. validateFileMask(String value, boolean errorIfNotExist, boolean caseSensitive)Checks the GLOB-style file mask.FormValidationFilePath. validateRelativeDirectory(String value)FormValidationFilePath. validateRelativeDirectory(String value, boolean errorIfNotExist)A convenience method overFilePath.validateRelativePath(String, boolean, boolean).FormValidationFilePath. 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 FormValidation Modifier and Type Method Description FormValidationLogRecorder. doCheckName(String value, String level)Validate the name.FormValidationLogRecorderManager. doCheckNewName(String name) -
Uses of FormValidation in hudson.model
Methods in hudson.model that return FormValidation Modifier and Type Method Description abstract 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.FormValidationAbstractProject.LabelValidator. checkItem(Item item, Label label)Deprecated.Validates the use of a label within a particular context.FormValidationAbstractProject.AbstractProjectDescriptor. doCheckAssignedLabelString(AbstractProject<?,?> project, String value)FormValidationChoiceParameterDefinition.DescriptorImpl. doCheckChoices(String value)Checks if parameterized build choices are valid.FormValidationAbstractProject.AbstractProjectDescriptor. doCheckCustomWorkspace(String customWorkspace)FormValidationAbstractProject.AbstractProjectDescriptor. doCheckDisplayNameOrNull(AbstractProject project, String value)FormValidationListView.DescriptorImpl. doCheckIncludeRegex(String value)Checks if the include regular expression is valid.FormValidationView. doCheckJobName(String value)Makes sure that the given name is good as a job name.FormValidationAbstractProject.AbstractProjectDescriptor. doCheckLabel(AbstractProject<?,?> project, String value)FormValidationComputerSet. doCheckName(String value)Makes sure that the given name is good as an agent name.FormValidationAbstractItem. doCheckNewName(String newName)Called byAbstractItem.doConfirmRename(java.lang.String)andrename.jellyto validate renames.FormValidationSlave.SlaveDescriptor. doCheckNumExecutors(String value)FormValidationSlave.SlaveDescriptor. doCheckRemoteFS(String value)Performs syntactical check on the remote FS for agents.FormValidationAbstractProject. doCheckRetryCount(String value)Validates the retry count RegexFormValidationTimeZoneProperty.DescriptorImpl. doCheckTimeZoneName(String timeZoneName)FormValidationHudson. doFieldCheck(String value, String type, String errorText, String warningText)Deprecated.as of 1.324 Either use client-side validation (e.g.FormValidationUpdateSite. doVerifySignature()FormValidationMyViewsProperty. doViewExistsCheck(String value, boolean exists)Checks if a private view with the given name exists.FormValidationProxyView. doViewExistsCheck(String value)Fails if a global view with the given name does not exist.FormValidationUpdateSite. updateDirectlyNow()Forces an update of the data file from the configured URL, irrespective of the last time the data was retrieved.FormValidationUpdateSite. updateDirectlyNow(boolean signatureCheck)FormValidationDownloadService.Downloadable. updateNow()static FormValidationAbstractProject.AbstractProjectDescriptor. validateLabelExpression(String value, AbstractProject<?,?> project)Deprecated.UseLabelExpression.validate(String, Item)instead.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 FormValidation Modifier and Type Method Description List<FormValidation>UpdateCenter. updateAllSites()Ensure that all UpdateSites are up to date, without requiring a user to browse to the instance.Future<FormValidation>UpdateSite. updateDirectly()Update the data file from the given URL if the file does not exist, or is otherwise due for update.Future<FormValidation>UpdateSite. updateDirectly(boolean signatureCheck)Deprecated. -
Uses of FormValidation in hudson.model.labels
Methods in hudson.model.labels that return FormValidation Modifier and Type Method Description static FormValidationLabelExpression. validate(String expression)Validates a label expression.static FormValidationLabelExpression. validate(String expression, Item item)Validates a label expression. -
Uses of FormValidation in hudson.security
Methods in hudson.security that return FormValidation Modifier and Type Method Description FormValidationHudsonPrivateSecurityRealm.DescriptorImpl. doCheckAllowsSignup(boolean value) -
Uses of FormValidation in hudson.slaves
Methods in hudson.slaves that return FormValidation Modifier and Type Method Description FormValidationSimpleScheduledRetentionStrategy.DescriptorImpl. doCheck(String value)Performs syntax check.FormValidationNodeDescriptor. doCheckName(String value) -
Uses of FormValidation in hudson.tasks
Methods in hudson.tasks that return FormValidation Modifier and Type Method Description protected FormValidationMaven.MavenInstallation.DescriptorImpl. checkHomeDirectory(File value)Checks if the MAVEN_HOME is valid.FormValidationBuildTrigger.DescriptorImpl. doCheck(AbstractProject project, String value)Form validation method.FormValidationFingerprinter.DescriptorImpl. doCheck(AbstractProject project, String value)Deprecated.FormValidationArtifactArchiver.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 modifiedFormValidationShell.DescriptorImpl. doCheckShell(String value)Check the existence of sh in the given location.FormValidationFingerprinter.DescriptorImpl. doCheckTargets(AbstractProject<?,?> project, String value)FormValidationBatchFile.DescriptorImpl. doCheckUnstableReturn(String value)Performs on-the-fly validation of the errorlevel.FormValidationShell.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 FormValidation Modifier and Type Method Description protected FormValidationToolDescriptor. checkHomeDirectory(File home)May be overridden to provide tool-specific validation of a tool home directory.FormValidationAbstractCommandInstaller.Descriptor. doCheckCommand(String value)FormValidationToolDescriptor. doCheckHome(File value)Checks if the home directory is valid.FormValidationToolInstallerDescriptor. doCheckLabel(String value)FormValidationToolDescriptor. doCheckName(String value)Checks if the tool name is valid.FormValidationAbstractCommandInstaller.Descriptor. doCheckToolHome(String value)FormValidationZipExtractionInstaller.DescriptorImpl. doCheckUrl(String value) -
Uses of FormValidation in hudson.triggers
Methods in hudson.triggers that return FormValidation Modifier and Type Method Description FormValidationTimerTrigger.DescriptorImpl. doCheck(String value, Item item)FormValidationSCMTrigger.DescriptorImpl. doCheckPollingThreadCount(String value)FormValidationSCMTrigger.DescriptorImpl. doCheckScmpoll_spec(String value, boolean ignorePostCommitHooks, Item item)Performs syntax check.FormValidationTimerTrigger.DescriptorImpl. doCheckSpec(String value, Item item)Performs syntax check. -
Uses of FormValidation in hudson.util
Methods in hudson.util that return FormValidation Modifier and Type Method Description static 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 FormValidationFormValidation. error(String message)Sends out a string error message that indicates an error.static FormValidationFormValidation. error(String format, Object... args)Sends out a string error message that indicates an error, by formatting it withString.format(String, Object[])static FormValidationFormValidation. error(Throwable e, String message)Sends out a string error message, with optional "show details" link that expands to the full stack trace.static FormValidationFormValidation. error(Throwable e, String format, Object... args)static 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 FormValidationFormValidation. ok(String message)static FormValidationFormValidation. ok(String format, Object... args)static FormValidationFormValidation. okWithMarkup(String message)static FormValidationFormValidation. respond(FormValidation.Kind kind, String html)Sends out an arbitrary HTML fragment as the output.abstract FormValidationFormValidation.FileValidator. validate(File f)static 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 FormValidationFormValidation. warning(String message)static FormValidationFormValidation. warning(String format, Object... args)static FormValidationFormValidation. warning(Throwable e, String message)static FormValidationFormValidation. warning(Throwable e, String format, Object... args)static FormValidationFormValidation. warningWithMarkup(String message)Method parameters in hudson.util with type arguments of type FormValidation Modifier and Type Method Description static FormValidationFormValidation. aggregate(Collection<FormValidation> validations)Aggregate multiple validations into one. -
Uses of FormValidation in jenkins.agents
Methods in jenkins.agents that return FormValidation Modifier and Type Method Description FormValidationCloudSet. doCheckName(String value) -
Uses of FormValidation in jenkins.diagnostics
Methods in jenkins.diagnostics that return FormValidation Modifier and Type Method Description FormValidationURICheckEncodingMonitor. doCheckURIEncoding(org.kohsuke.stapler.StaplerRequest request) -
Uses of FormValidation in jenkins.model
Methods in jenkins.model that return FormValidation Modifier and Type Method Description FormValidationJenkinsLocationConfiguration. doCheckAdminAddress(String value)FormValidationJenkins. doCheckDisplayName(String displayName, String jobName)Checks to see if the candidate displayName collides with any existing display names or project namesFormValidationProjectNamingStrategy.PatternProjectNamingStrategy.DescriptorImpl. doCheckNamePattern(String value)FormValidationJenkins.DescriptorImpl. doCheckNumExecutors(String value)FormValidationJenkins. doCheckURIEncoding(org.kohsuke.stapler.StaplerRequest request)Deprecated.FormValidationJenkinsLocationConfiguration. doCheckUrl(String value)Checks the URL inglobal.jellyFormValidationJenkins. 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.FormValidationJenkins. doDefaultJDKCheck(org.kohsuke.stapler.StaplerRequest request, String value)If the user chose the default JDK, make sure we got 'java' in PATH.FormValidationJenkins. doViewExistsCheck(String value)Deprecated.1.512 -
Uses of FormValidation in jenkins.model.labels
Methods in jenkins.model.labels that return FormValidation Modifier and Type Method Description FormValidationLabelValidator. check(Item item, Label label)Validates the use of a label within a particular context. -
Uses of FormValidation in jenkins.security
Methods in jenkins.security that return FormValidation Modifier and Type Method Description FormValidationResourceDomainConfiguration. doCheckUrl(String resourceRootUrlString) -
Uses of FormValidation in jenkins.tasks.filters.impl
Methods in jenkins.tasks.filters.impl that return FormValidation Modifier and Type Method Description FormValidationRetainVariablesLocalRule.DescriptorImpl. doCheckRetainCharacteristicEnvVars(boolean value) -
Uses of FormValidation in jenkins.triggers
Methods in jenkins.triggers that return FormValidation Modifier and Type Method Description FormValidationReverseBuildTrigger.DescriptorImpl. doCheckUpstreamProjects(Job project, String value) -
Uses of FormValidation in jenkins.util
Methods in jenkins.util that return FormValidation Modifier and Type Method Description FormValidationJSONSignatureValidator. verifySignature(net.sf.json.JSONObject o)Verifies the signature in the update center data file.
-