public class DefaultInsurancePolicyService extends java.lang.Object implements InsurancePolicyService
| Constructor and Description |
|---|
DefaultInsurancePolicyService() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
arePolicyIdAndContractIdEqual(InsurancePolicyModel policy,
InsurancePolicyModel activePolicy) |
protected boolean |
checkPolicyEffectiveDate(InsurancePolicyModel policy) |
protected boolean |
checkPolicyExpiryDate(InsurancePolicyModel policy) |
boolean |
checkPolicyValidity(InsurancePolicyModel policy)
Checks policy validity.
|
java.util.List<InsurancePolicyModel> |
findAllPolicyVersionsForUserByPolicyIdAndContractId(UserModel user,
java.lang.String policyId,
java.lang.String contractId)
Find all policy versions for user by contract id and policy id.
|
java.util.List<InsurancePolicyModel> |
findAndFilterEffectivePoliciesForUser(UserModel user,
java.util.Map<java.lang.String,java.lang.Object> params)
Get the list of
InsurancePolicyModel instances for specified user by given params |
java.util.List<InsurancePolicyModel> |
findEffectivePoliciesForUser(UserModel user)
Find effective policies for user.
|
InsurancePolicyModel |
findEffectivePolicyForUserByPolicyAndContractId(UserModel user,
java.lang.String policyId,
java.lang.String contractId)
Find effective policy for user by policy and contract id.
|
java.util.List<InsurancePolicyModel> |
findPoliciesByStatus(FSPolicyStatus policyStatus)
Get the list of
InsurancePolicyModel instances for specified status |
java.util.List<InsurancePolicyModel> |
findPoliciesForUser(UserModel user)
Get the list of
InsurancePolicyModel instances for specified user |
java.util.List<InsurancePolicyModel> |
findPoliciesForUserByCategory(UserModel user,
CategoryModel category)
Get the list of
InsurancePolicyModel instances for specified user by given category |
InsurancePolicyModel |
findPolicyById(java.lang.String policyId)
Get single
InsurancePolicyModel for specified policyId |
InsurancePolicyModel |
findPolicyByIdForUser(UserModel user,
java.lang.String policyId)
Get single
InsurancePolicyModel for specified policyId and user |
InsurancePolicyModel |
findPolicyByPolicyIdAndContractId(java.lang.String policyId,
java.lang.String contractId)
Find policy by policy id and contract id.
|
java.util.List<InsurancePolicyModel> |
findValidPoliciesForUserByCategory(UserModel user,
CategoryModel category)
Get the list of
InsurancePolicyModel instances for specified user by given category that are valid |
protected InsurancePolicyDao |
getInsurancePolicyDao() |
void |
setInsurancePolicyDao(InsurancePolicyDao insurancePolicyDao) |
public java.util.List<InsurancePolicyModel> findPoliciesForUser(UserModel user)
InsurancePolicyServiceInsurancePolicyModel instances for specified userfindPoliciesForUser in interface InsurancePolicyServiceuser - The user to evaluateInsurancePolicyModelpublic InsurancePolicyModel findPolicyById(java.lang.String policyId)
InsurancePolicyServiceInsurancePolicyModel for specified policyIdfindPolicyById in interface InsurancePolicyServicepolicyId - Id of a policy that should be retreivedInsurancePolicyModelpublic java.util.List<InsurancePolicyModel> findPoliciesByStatus(FSPolicyStatus policyStatus)
InsurancePolicyServiceInsurancePolicyModel instances for specified statusfindPoliciesByStatus in interface InsurancePolicyServicepolicyStatus - The policy status to evaluateInsurancePolicyModelpublic InsurancePolicyModel findPolicyByIdForUser(UserModel user, java.lang.String policyId)
InsurancePolicyServiceInsurancePolicyModel for specified policyId and userfindPolicyByIdForUser in interface InsurancePolicyServiceuser - for whom policy should be retrievedpolicyId - Id of a policy that should be retreivedInsurancePolicyModelpublic java.util.List<InsurancePolicyModel> findPoliciesForUserByCategory(UserModel user, CategoryModel category)
InsurancePolicyServiceInsurancePolicyModel instances for specified user by given categoryfindPoliciesForUserByCategory in interface InsurancePolicyServiceuser - The user to evaluatecategory - The category to evaluateInsurancePolicyModelpublic java.util.List<InsurancePolicyModel> findValidPoliciesForUserByCategory(UserModel user, CategoryModel category)
InsurancePolicyServiceInsurancePolicyModel instances for specified user by given category that are validfindValidPoliciesForUserByCategory in interface InsurancePolicyServiceuser - The user to evaluatecategory - The category to evaluateInsurancePolicyModelpublic boolean checkPolicyValidity(InsurancePolicyModel policy)
InsurancePolicyServicecheckPolicyValidity in interface InsurancePolicyServicepolicy - the policypublic InsurancePolicyModel findEffectivePolicyForUserByPolicyAndContractId(UserModel user, java.lang.String policyId, java.lang.String contractId)
InsurancePolicyServicefindEffectivePolicyForUserByPolicyAndContractId in interface InsurancePolicyServiceuser - the userpolicyId - the policy idcontractId - the contract idpublic InsurancePolicyModel findPolicyByPolicyIdAndContractId(java.lang.String policyId, java.lang.String contractId)
InsurancePolicyServicefindPolicyByPolicyIdAndContractId in interface InsurancePolicyServicepolicyId - the policy idcontractId - the contract idpublic java.util.List<InsurancePolicyModel> findEffectivePoliciesForUser(UserModel user)
InsurancePolicyServicefindEffectivePoliciesForUser in interface InsurancePolicyServiceuser - the userpublic java.util.List<InsurancePolicyModel> findAllPolicyVersionsForUserByPolicyIdAndContractId(UserModel user, java.lang.String policyId, java.lang.String contractId)
InsurancePolicyServicefindAllPolicyVersionsForUserByPolicyIdAndContractId in interface InsurancePolicyServiceuser - the userpolicyId - the policy idcontractId - the contract idpublic java.util.List<InsurancePolicyModel> findAndFilterEffectivePoliciesForUser(UserModel user, java.util.Map<java.lang.String,java.lang.Object> params)
InsurancePolicyServiceInsurancePolicyModel instances for specified user by given paramsfindAndFilterEffectivePoliciesForUser in interface InsurancePolicyServiceuser - The user to evaluateparams - The params for filtering policiesInsurancePolicyModelprotected boolean arePolicyIdAndContractIdEqual(InsurancePolicyModel policy, InsurancePolicyModel activePolicy)
protected boolean checkPolicyExpiryDate(InsurancePolicyModel policy)
protected boolean checkPolicyEffectiveDate(InsurancePolicyModel policy)
protected InsurancePolicyDao getInsurancePolicyDao()
public void setInsurancePolicyDao(InsurancePolicyDao insurancePolicyDao)
Copyright © 2018 SAP SE. All Rights Reserved.