Input validators check user-entered input.
atg.cim.worker.common.AbsolutePathValidator
This bean returns true
if the path to a given file is valid. For example:
C:/My_Dir/myFile
The validator determines whether the path to myFile
is valid. Note that the validator does not check for the existence of myFile
itself.
Properties:
filePath
—The path entered by the user. For example:C:/ProgramFiles/MyDirectory/MyFile
atg.cim.worker.common.DirectoryExistsValidator
Returns true
if the path entered is a valid path to an existing directory.
Properties:
absPath
—Path entered by the user. For example:C:/ProgramFiles/MyDirectory
atg.cim.worker.common.AllowOnlyAlphanumericInputValidator
This validator returns true
if the input contains only alphanumeric characters.
Properties:
textToValidate
—Input text to be validated. For example:
HelloWorld
atg.cim.worker.common.CannotBeBlankValidator
This validator returns true
if the input is not empty. It can be used to ensure that the user did not leave an input field blank.
Properties:
textToValidate
—Input to be validated.
atg.cim.worker.common.PortNumberInputValidator
This validator returns true
if the input String is between 1 and 65535.
Properties:
textToValidate
—Port number to be validated. For example:8080
atg.cim.worker.common.NoWhiteSpaceInputValidator
This validator returns true
if the input contains no white-space characters.
Properties:
textToValidate
—Input to be checked for white space. For example:hello world
atg.cim.worker.common.FileExistsValidator
This validator returns true
if the input is a path is to a valid file or directory.
Properties:
absPathToFile
—The path entered by the user. For example:C:/ProgramFiles/MyFile.txt
atg.cim.worker.common.AlwaysFalseValidator
This validator always returns false
. Since Validators can be used to control flow in the CIM UI, you can use this validator to command it to do something without actually performing any test.
For example, after the user selects a wizard to run, CIM would normally display navigation options. Instead of this default behavior, you can force CIM to load the chosen wizard and then navigate to the next step with this XML snippet:
<validator id="AlwaysTrueValidator" phase="PRENAVIGATION">
<onpass>
<command type="EXECUTE_STEP_TASKS" />
<command type="LOAD_PROCESS" />
</onpass>
</validator>
atg.cim.worker.common.AlwaysTrueValidator
This validator always returns true
. See atg.cim.AlwaysFalseValidator
for usage suggestions.