Class PolicyDetails
- java.lang.Object
-
- nl.paston.apollon.model.projections.PolicyDetails
-
public class PolicyDetails extends Object
-
-
Constructor Summary
Constructors Constructor Description PolicyDetails()PolicyDetails(Policy policy)PolicyDetails(Policy policy, PolicyCase policycase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)AssetgetAsset()StringgetBatchID()LocalDategetCalculationStartDate()Map<String,Boolean>getCovers()StringgetCustomerUniqueId()LocalDategetEndDate()StringgetHeaderUniqueId()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.Map<String,BigDecimal>getInsuredAmounts()StringgetInsurerName()Map<String,String>getMap()Map<String,BigDecimal>getOwnRisks()StringgetPaymentTerm()Map<Person.Type,Person>getPersons()StringgetProductLineName()StringgetProductName()LocalDategetStartDate()inthashCode()voidoverwriteValuesInto(Policy policy)This method will modify the given policy to represent the current policy details object.voidsetAsset(Asset asset)voidsetBatchID(String batchID)voidsetCalculationStartDate(LocalDate calculationStartDate)voidsetCovers(Map<String,Boolean> covers)voidsetCustomerUniqueId(String customerUniqueId)voidsetEndDate(LocalDate endDate)voidsetHeaderUniqueId(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.voidsetInsuredAmounts(Map<String,BigDecimal> insuredAmounts)voidsetInsurerName(String insurerName)voidsetMap(Map<String,String> map)voidsetOwnRisks(Map<String,BigDecimal> ownRisks)voidsetPaymentTerm(String paymentTerm)voidsetPersons(Map<Person.Type,Person> persons)voidsetProductLineName(String productLineName)voidsetProductName(String productName)voidsetStartDate(LocalDate startDate)StringtoString()
-
-
-
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()
-
getEndDate
public LocalDate getEndDate()
-
getPaymentTerm
public String getPaymentTerm()
-
getPersons
public Map<Person.Type,Person> getPersons()
-
getAsset
public Asset getAsset()
-
getInsuredAmounts
public Map<String,BigDecimal> getInsuredAmounts()
-
getOwnRisks
public Map<String,BigDecimal> getOwnRisks()
-
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)
-
setPersons
public void setPersons(Map<Person.Type,Person> persons)
-
setAsset
public void setAsset(Asset asset)
-
setInsuredAmounts
public void setInsuredAmounts(Map<String,BigDecimal> insuredAmounts)
-
setOwnRisks
public void setOwnRisks(Map<String,BigDecimal> ownRisks)
-
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)
-
-