Class PolicyDetails


  • public class PolicyDetails
    extends Object
    • Constructor Detail

      • PolicyDetails

        public PolicyDetails()
      • PolicyDetails

        public PolicyDetails​(Policy policy)
      • PolicyDetails

        public PolicyDetails​(Policy policy,
                             PolicyCase policycase)
    • Method Detail

      • overwriteValuesInto

        public void overwriteValuesInto​(Policy policy)
        This method will modify the given policy to represent the current policy details object.
      • getProductLineName

        public String getProductLineName()
      • getProductName

        public String getProductName()
      • getInsurerName

        public String getInsurerName()
      • getCalculationStartDate

        public LocalDate getCalculationStartDate()
      • getStartDate

        public LocalDate getStartDate()
      • getPaymentTerm

        public String getPaymentTerm()
      • getAsset

        public Asset getAsset()
      • getHeaderUniqueId

        public String getHeaderUniqueId()
        The following fields (customerUniqueId, headerUniqueId, batchID) field does not belong to Policy entity, they are intended only to be displayed, therefore should not be transferred back to PolicyCase when taken from the frontend. This should be removed by AA-1399
      • getCustomerUniqueId

        public String getCustomerUniqueId()
      • getBatchID

        public String getBatchID()
      • setProductLineName

        public void setProductLineName​(String productLineName)
      • setProductName

        public void setProductName​(String productName)
      • setInsurerName

        public void setInsurerName​(String insurerName)
      • setCalculationStartDate

        public void setCalculationStartDate​(LocalDate calculationStartDate)
      • setStartDate

        public void setStartDate​(LocalDate startDate)
      • setEndDate

        public void setEndDate​(LocalDate endDate)
      • setPaymentTerm

        public void setPaymentTerm​(String paymentTerm)
      • setAsset

        public void setAsset​(Asset asset)
      • setInsuredAmounts

        public void setInsuredAmounts​(Map<String,​BigDecimal> insuredAmounts)
      • setHeaderUniqueId

        public void setHeaderUniqueId​(String headerUniqueId)
        The following fields (customerUniqueId, headerUniqueId, batchID) field does not belong to Policy entity, they are intended only to be displayed, therefore should not be transferred back to PolicyCase when taken from the frontend. This should be removed by AA-1399
      • setCustomerUniqueId

        public void setCustomerUniqueId​(String customerUniqueId)
      • setBatchID

        public void setBatchID​(String batchID)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object