Record Class ContextBo
java.lang.Object
java.lang.Record
com.sankcrm.erp.contract.application.command.ContextBo
- Record Components:
html- HTML模板template- 模板信息pdfFile- pdf 文件
public record ContextBo(com.sankcrm.erp.common.sensitive.SecretKey html, ContractTemplate template, com.sankcrm.erp.contract.application.command.PdfFileVo pdfFile)
extends Record
合同内容信息
- Since:
- 1.3.0
- Author:
- zhsxin
-
Constructor Summary
ConstructorsConstructorDescriptionContextBo(com.sankcrm.erp.common.sensitive.SecretKey html, ContractTemplate template, com.sankcrm.erp.contract.application.command.PdfFileVo pdfFile) Creates an instance of aContextBorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.sankcrm.erp.common.sensitive.SecretKeyhtml()Returns the value of thehtmlrecord component.static ContextBohtml(com.sankcrm.erp.common.sensitive.SecretKey html) booleanisPdf()是否PDF 文件Optional<com.sankcrm.erp.auth.domain.model.OrganizationId> static ContextBopdf(com.sankcrm.erp.contract.application.command.PdfFileVo pdfFile) com.sankcrm.erp.contract.application.command.PdfFileVopdfFile()Returns the value of thepdfFilerecord component.template()Returns the value of thetemplaterecord component.static ContextBotemplate(ContractTemplate template) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ContextBo
public ContextBo(com.sankcrm.erp.common.sensitive.SecretKey html, ContractTemplate template, com.sankcrm.erp.contract.application.command.PdfFileVo pdfFile) Creates an instance of aContextBorecord class.
-
-
Method Details
-
isPdf
public boolean isPdf()是否PDF 文件- Returns:
- true:是 false:否
-
organizeIdOpt
-
templateOpt
-
pdf
-
html
-
template
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
html
public com.sankcrm.erp.common.sensitive.SecretKey html()Returns the value of thehtmlrecord component.- Returns:
- the value of the
htmlrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-
pdfFile
public com.sankcrm.erp.contract.application.command.PdfFileVo pdfFile()Returns the value of thepdfFilerecord component.- Returns:
- the value of the
pdfFilerecord component
-