Class HtmlHandler
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.sankcrm.erp.contract.infrastructure.template.file.FileHandler
FileHandler.Utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.sankcrm.erp.contract.domain.model.FileTypefileType()文件类型padding(Path path, com.sankcrm.erp.common.sensitive.SecretKey template, Map<String, Object> params, List<SignatoryBo> signatories) 填充模板saveTemplate(Path filePath, com.sankcrm.erp.common.sensitive.SecretKey file) 保存文件
-
Constructor Details
-
HtmlHandler
public HtmlHandler()
-
-
Method Details
-
fileType
public com.sankcrm.erp.contract.domain.model.FileType fileType()Description copied from interface:FileHandler文件类型- Specified by:
fileTypein interfaceFileHandler<com.sankcrm.erp.common.sensitive.SecretKey>- Returns:
- 文件类型
-
saveTemplate
Description copied from interface:FileHandler保存文件- Specified by:
saveTemplatein interfaceFileHandler<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:
paddingin interfaceFileHandler<com.sankcrm.erp.common.sensitive.SecretKey>- Parameters:
path- 保存路径template- 文件params- 参数signatories- 签约人信息
-