java.lang.Object
com.sankcrm.erp.contract.infrastructure.template.file.HtmlHandler
All Implemented Interfaces:
FileHandler<com.sankcrm.erp.common.sensitive.SecretKey>

@Component public class HtmlHandler extends Object implements FileHandler<com.sankcrm.erp.common.sensitive.SecretKey>
Html处理器
Since:
1.4.0
Author:
zhsxin
  • Constructor Details

    • HtmlHandler

      public HtmlHandler()
  • Method Details

    • fileType

      public com.sankcrm.erp.contract.domain.model.FileType fileType()
      Description copied from interface: FileHandler
      文件类型
      Specified by:
      fileType in interface FileHandler<com.sankcrm.erp.common.sensitive.SecretKey>
      Returns:
      文件类型
    • saveTemplate

      public Path saveTemplate(Path filePath, com.sankcrm.erp.common.sensitive.SecretKey file)
      Description copied from interface: FileHandler
      保存文件
      Specified by:
      saveTemplate in interface FileHandler<com.sankcrm.erp.common.sensitive.SecretKey>
      Parameters:
      file - 文件内容
      Returns:
      文件路径
    • padding

      public List<SignatoryBo> padding(Path path, com.sankcrm.erp.common.sensitive.SecretKey template, Map<String,Object> params, List<SignatoryBo> signatories)
      Description copied from interface: FileHandler
      填充模板
      Specified by:
      padding in interface FileHandler<com.sankcrm.erp.common.sensitive.SecretKey>
      Parameters:
      path - 保存路径
      template - 文件
      params - 参数
      signatories - 签约人信息