Class CmsFilenameValidator
java.lang.Object
org.opencms.ade.postupload.client.ui.CmsFilenameValidator
- All Implemented Interfaces:
I_CmsValidator
Validates modified file names for uploaded files.
-
Constructor Summary
ConstructorsConstructorDescriptionCmsFilenameValidator
(org.opencms.util.CmsUUID structureId, org.opencms.xml.content.CmsXmlContentProperty propDef) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(I_CmsFormField field, I_CmsValidationController controller) If this method is called, the object should either validate the form field and report the result to the validation controller, or request asynchronous validation of the field from the validation controller.
-
Constructor Details
-
CmsFilenameValidator
public CmsFilenameValidator(org.opencms.util.CmsUUID structureId, org.opencms.xml.content.CmsXmlContentProperty propDef) Creates a new instance.- Parameters:
structureId
- the structure id of the uploaded filepropDef
- the property definition for the file name
-
-
Method Details
-
validate
Description copied from interface:I_CmsValidator
If this method is called, the object should either validate the form field and report the result to the validation controller, or request asynchronous validation of the field from the validation controller.- Specified by:
validate
in interfaceI_CmsValidator
- Parameters:
field
- the form field to be validatedcontroller
- the validation controller- See Also:
-