Class Contract

java.lang.Object
com.sankcrm.erp.domain.model.IdentifiedDomainObject
com.sankcrm.erp.domain.model.Entity
com.sankcrm.erp.domain.model.ConcurrencySafeEntity
com.sankcrm.erp.contract.domain.model.Contract
All Implemented Interfaces:
Serializable

@Entity public class Contract extends com.sankcrm.erp.domain.model.ConcurrencySafeEntity
合同
Since:
1.0.0
Author:
zhsxin
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    pdf()
    是否是PDF
    static String
    Returns the public filename of the generated contract PDF.

    Methods inherited from class com.sankcrm.erp.domain.model.ConcurrencySafeEntity

    failWhenConcurrencyViolation, getUpdatedDateTime, getVersion, setUpdatedDateTime, setVersion

    Methods inherited from class com.sankcrm.erp.domain.model.Entity

    getCreatedDateTime, setCreatedDateTime

    Methods inherited from class com.sankcrm.erp.domain.model.IdentifiedDomainObject

    equals, evict, getId, hashCode, merge, refresh, setId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Contract

      public Contract()
  • Method Details

    • fileName

      public String fileName()
    • pdfFileName

      public static String pdfFileName(String name)
      Returns the public filename of the generated contract PDF.

      The signing supplier validates the suffix before reading the file stream. A DOCX template is converted to PDF before it is submitted, so the persisted filename must describe that generated PDF even when the caller supplies only a display name.

      Parameters:
      name - caller supplied filename or display name
      Returns:
      a filename ending in .pdf
    • pdf

      public boolean pdf()
      是否是PDF
      Returns:
      true/false