Package nl.paston.apollon.model
Class Policy
- java.lang.Object
-
- nl.paston.apollon.model.Policy
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Policy>
@Entity public class Policy extends Object implements Serializable, Cloneable, Comparable<Policy>
- Author:
- Martijn Burger
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BigDecimalASSU_BELstatic StringFIND_ALLstatic StringFIND_RESPONSES_FOR_CASE_FILTER_COVERS_TO_REQUESTED_AND_AVAILABLE
-
Constructor Summary
Constructors Constructor Description Policy()
-
Method Summary
-
-
-
Field Detail
-
ASSU_BEL
public static final BigDecimal ASSU_BEL
-
FIND_ALL
public static final String FIND_ALL
- See Also:
- Constant Field Values
-
FIND_RESPONSES_FOR_CASE_FILTER_COVERS_TO_REQUESTED_AND_AVAILABLE
public static final String FIND_RESPONSES_FOR_CASE_FILTER_COVERS_TO_REQUESTED_AND_AVAILABLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
setCoverAvailable
public void setCoverAvailable(String coverType, boolean active)
-
removeInsuredAmount
public boolean removeInsuredAmount(String insuredAmountType)
-
putInsuredAmount
public void putInsuredAmount(String insuredAmountType, BigDecimal insuredAmountValue)
-
putAllInsuredAmounts
public void putAllInsuredAmounts(Map<String,BigDecimal> insuredAmounts)
-
getInsuredAmountValue
public BigDecimal getInsuredAmountValue(String insuredAmountType)
-
getInsuredAmountValue
public BigDecimal getInsuredAmountValue(String insuredAmountType, BigDecimal defaultValue)
-
removeOwnRisk
public boolean removeOwnRisk(String ownRiskType)
-
putOwnRisk
public void putOwnRisk(String ownRiskType, BigDecimal ownRiskValue)
-
putAllOwnRisks
public void putAllOwnRisks(Map<String,BigDecimal> ownRisks)
-
getOwnRiskValue
public BigDecimal getOwnRiskValue(String ownRiskType)
-
getOwnRiskValue
public BigDecimal getOwnRiskValue(String ownRiskType, BigDecimal defaultValue)
-
addCover
public boolean addCover(Cover cover)
-
removeCover
public boolean removeCover(String coverType)
-
removeCover
public boolean removeCover(Cover cover)
-
removeAllCovers
public boolean removeAllCovers()
-
getCopyOfList
public List<String> getCopyOfList(String mapKey) throws IOException
- Throws:
IOException
-
putList
public void putList(String mapKey, List<String> list) throws com.fasterxml.jackson.core.JsonProcessingException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
putListValue
public void putListValue(String mapKey, String listValue) throws IOException
- Throws:
IOException
-
getBigDecimal
public BigDecimal getBigDecimal(String key)
-
findValidations
public Set<Validation> findValidations(Validation.Level level)
-
addValidation
public boolean addValidation(Validation validation)
-
addValidation
public boolean addValidation(Validation.Level level, String description)
-
addAllValidations
public boolean addAllValidations(Set<Validation> newValidations)
-
removeValidation
public boolean removeValidation(Validation validation)
-
getPerson
public Optional<Person> getPerson(Person.Type type)
-
setPerson
public void setPerson(Person.Type type, Person person)
Adds default type to the person of Type.POLICYHOLDER- Parameters:
person-
-
addAllPersons
public void addAllPersons(Map<Person.Type,Person> newPersons)
-
removePerson
public void removePerson(Person.Type type)
-
setValidations
public void setValidations(Set<Validation> validations)
-
compareTo
public int compareTo(Policy other)
- Specified by:
compareToin interfaceComparable<Policy>
-
getId
public Long getId()
-
getProductName
public String getProductName()
-
getProductLineName
public String getProductLineName()
-
getInsurerName
public String getInsurerName()
-
getCalculationStartDate
public LocalDate getCalculationStartDate()
-
getStartDate
public LocalDate getStartDate()
-
getEndDate
public LocalDate getEndDate()
-
getPaymentTerm
public String getPaymentTerm()
-
getQualityGrade
public Integer getQualityGrade()
-
getAvailable
public Boolean getAvailable()
-
getTotalNetPremium
public BigDecimal getTotalNetPremium()
-
getTotalGrossPremium
public BigDecimal getTotalGrossPremium()
-
getTotalGrossYearPremium
public BigDecimal getTotalGrossYearPremium()
-
getPolicyCost
public BigDecimal getPolicyCost()
-
getPersons
public Map<Person.Type,Person> getPersons()
-
getAsset
public Asset getAsset()
-
getValidations
public Set<Validation> getValidations()
-
getInsuredAmounts
public Map<String,BigDecimal> getInsuredAmounts()
-
getOwnRisks
public Map<String,BigDecimal> getOwnRisks()
-
getHeaderUniqueId
public String getHeaderUniqueId()
-
getCustomerUniqueId
public String getCustomerUniqueId()
-
getVpiRequest
public String getVpiRequest()
-
getVpiResponse
public String getVpiResponse()
-
setId
public void setId(Long id)
-
setProductName
public void setProductName(String productName)
-
setProductLineName
public void setProductLineName(String productLineName)
-
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)
-
setQualityGrade
public void setQualityGrade(Integer qualityGrade)
-
setAvailable
public void setAvailable(Boolean available)
-
setTotalNetPremium
public void setTotalNetPremium(BigDecimal totalNetPremium)
-
setTotalGrossPremium
public void setTotalGrossPremium(BigDecimal totalGrossPremium)
-
setTotalGrossYearPremium
public void setTotalGrossYearPremium(BigDecimal totalGrossYearPremium)
-
setPolicyCost
public void setPolicyCost(BigDecimal policyCost)
-
setAsset
public void setAsset(Asset asset)
-
setHeaderUniqueId
public void setHeaderUniqueId(String headerUniqueId)
-
setCustomerUniqueId
public void setCustomerUniqueId(String customerUniqueId)
-
setVpiRequest
public void setVpiRequest(String vpiRequest)
-
setVpiResponse
public void setVpiResponse(String vpiResponse)
-
canEqual
protected boolean canEqual(Object other)
-
-