Пример #1
0
  @Override
  public void validate(String fileName, boolean validateFileExtension, InputStream is)
      throws PortalException {

    validate(fileName, validateFileExtension);

    DLValidatorUtil.validateFileSize(fileName, is);
  }
Пример #2
0
  @Override
  public void validate(
      String fileName,
      String fileExtension,
      String sourceFileName,
      boolean validateFileExtension,
      File file)
      throws PortalException {

    validate(fileName, fileExtension, sourceFileName, validateFileExtension);

    DLValidatorUtil.validateFileSize(fileName, file);
  }