public class PropertyTaxUtil extends Object
| Constructor and Description |
|---|
PropertyTaxUtil() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMiscellaneousTaxesClone(UnitTaxCalculationInfo unit,
UnitTaxCalculationInfo clone)
Adds the MiscellaneousTaxe Clones to clone
|
static boolean |
afterOrEqual(Date date,
Date dateToCompare)
Returns true if the date is later than dateToCompare OR date is same as
dateToCompare
|
String |
antisamyHackReplace(String str) |
Boolean |
between(Date date,
Date fromDate,
Date toDate)
Checks whether date is between fromDate and toDate or not
|
Boolean |
betweenOrBefore(Date date,
Date fromDate,
Date toDate) |
static String |
buildAddress(org.egov.infra.persistence.entity.Address address)
Called to get concatenated string from Address fields
|
boolean |
checkForParentUsedInBifurcation(String upicNo) |
boolean |
checkIsNagarPanchayat()
Method to check for Nagar Panchayats as Grade
|
boolean |
enableMonthlyUpdate(String upicNo) |
boolean |
enableVacancyRemission(String upicNo) |
boolean |
enableVRApproval(String upicNo) |
org.egov.infra.reporting.engine.ReportOutput |
generateCitizenCharterAcknowledgement(String propertyId,
String applicationType,
String serviceType) |
HashMap<String,Integer> |
generateOrderForDemandDetails(Set<org.egov.demand.model.EgDemandDetails> demandDetails,
PropertyTaxBillable billable,
List<org.egov.commons.Installment> advanceInstallments) |
String |
generateUserName(String name) |
List<String> |
getAdvanceYearsFromCurrentInstallment()
Returns the notice days remaining for inactive demand
|
String |
getAppConfigValue(String moduleName,
String key,
String defaultValue)
This method returns the currently active config value for the given
module name and key
|
String |
getApproverUserName(Long approvalPosition) |
org.egov.demand.model.EgBillType |
getBillTypeByCode(String typeCode) |
Category |
getCategoryForBoundary(org.egov.infra.admin.master.entity.Boundary boundary) |
Map<String,BigDecimal> |
getDemandAndCollection(Property property)
Returns Map with below key-value pair CURR_DMD_STR - Current Installment
demand ARR_DMD_STR - Current Installment collection CURR_COLL_STR -
Arrear Installment demand ARR_COLL_STR - Arrear Installment demand
|
Map<String,Map<String,BigDecimal>> |
getDemandDues(String propertyId)
Called to get reason wise demand dues for arrears and current
|
List<DemandNoticeDetailsInfo> |
getDemandNoticeDetailsInfo(BasicProperty basicProperty,
PropertyWiseConsumptions propertyWiseConsumptions) |
org.egov.demand.model.EgDemandReason |
getDemandReasonByCodeAndInstallment(String demandReasonCode,
org.egov.commons.Installment installment) |
List<org.egov.demand.model.EgDemandReasonDetails> |
getDemandReasonDetails(String demandReasonCode,
BigDecimal grossAnnualRentAfterDeduction,
org.egov.commons.Installment installment) |
org.egov.demand.model.EgDemandReasonDetails |
getDemandReasonDetailsByDemandReasonId(org.egov.demand.model.EgDemandReason demandReason,
BigDecimal grossAnnualRentAfterDeduction) |
List<org.egov.infra.admin.master.entity.Department> |
getDepartmentsForLoggedInUser(org.egov.infra.admin.master.entity.User user) |
org.egov.demand.model.DepreciationMaster |
getDepreciationByDate(Date constructionDate,
Date effectiveDate) |
org.egov.pims.commons.Designation |
getDesignationForUser(Long userId) |
String |
getDesignationName(Long userId) |
Date |
getEarliestModificationDate(String propertyId)
Gives the Earliest modification date
|
Date |
getEffectiveDateForProperty() |
Map<String,org.egov.demand.model.EgDemandDetails> |
getEgDemandDetailsAndReasonAsMap(Set<org.egov.demand.model.EgDemandDetails> egDemandDetails)
Returns map of EgDemandDetails and Reason master
|
org.egov.commons.CFinancialYear |
getFinancialYearforDate(Date date)
This method retrieves the
CFinancialYear for the given date. |
List<Property> |
getHistoryProperties(BasicProperty basicProperty) |
static Property |
getInactiveDemandProperty(BasicProperty basicProperty)
Gives the Inactive demand property
|
List<org.egov.commons.Installment> |
getInstallmentListByStartDate(Date startDate) |
List<org.egov.commons.Installment> |
getInstallmentListByStartDateToCurrFinYear(Date startDate) |
List<org.egov.commons.Installment> |
getInstallmentListByStartDateToCurrFinYearDesc(Date startDate) |
List<org.egov.commons.Installment> |
getInstallments(PropertyImpl property) |
Map<String,org.egov.commons.Installment> |
getInstallmentsForCurrYear(Date currDate) |
List<org.egov.commons.Installment> |
getInstallmentsListByEffectiveDate(Date effectiveDate)
Returns a list of Installments for tax calculation, based on the effective date
|
Map<String,Date> |
getLatestCollRcptDateForProp(String consumerCode) |
static Property |
getLatestProperty(BasicProperty basicProperty,
Character status)
Gives the latest Property (Recent property) for the BasicProperty
|
org.egov.infra.admin.master.entity.User |
getLoggedInUser(Map<String,Object> sessionMap)
This method returns the User instance associated with the logged in user
|
Date |
getLowestInstallmentForProperty(Property property)
Method to get lowest installment for property
|
static int |
getMonthsBetweenDates(Date fromDate,
Date toDate)
This method returns the number of months between dates (inclusive of
month).
|
int |
getNoOfYears(Date fromDate,
Date toDate) |
static Long |
getNumberOfDays(Date fromDate,
Date toDate)
Returns the number of days between fromDate and toDate
|
Date |
getOrder(Date date,
int reasonOrder) |
List<org.egov.commons.Installment> |
getOrderedInstallmentsFromGivenDate(Date date) |
static String |
getOwnerAddress(List<PropertyOwnerInfo> ownerSet)
Gives the Owner Address as string
|
Map<Date,Property> |
getPropertiesByOccupancy(BasicProperty basicProperty)
Gives the properties and occupancy date map
|
Map<Date,Property> |
getPropertiesForPenlatyCalculation(BasicProperty basicProperty) |
List<PropertyArrearBean> |
getPropertyArrears(List<PropertyArrear> arrears) |
Date |
getPropertyOccupancyDate(Property property) |
BigDecimal |
getPropertyTaxDetails(Long basicPropId,
org.egov.commons.CFinancialYear finyear) |
PropertyWiseConsumptions |
getPropertyWiseConsumptions(String basicPropertyId) |
org.egov.commons.Installment |
getPTInstallmentForDate(Date date) |
static String |
getRevisedDemandYear(Property property)
Gives the lowest year from which demand is effective for the give
property
|
String |
getRolesForUserId(Long userId) |
Date |
getStartDateOfLowestInstallment() |
TaxCalculationInfo |
getTaxCalculationInfoClone(TaxCalculationInfo taxCalInfo)
Returns TaxCalculationInfo clone
|
TaxCalculationInfo |
getTaxCalInfo(Ptdemand demand) |
Map<org.egov.commons.Installment,TaxCalculationInfo> |
getTaxCalInfoMap(Set<Ptdemand> ptDmdSet) |
Map<Date,TaxCalculationInfo> |
getTaxCalInfoMap(Set<Ptdemand> ptDmdSet,
Date occupancyDate) |
Map<String,BigDecimal> |
getTaxDetailsForInstallment(Property property,
org.egov.commons.Installment effectiveInstallment,
org.egov.commons.Installment demandInstallment)
Returns map containing tax amount for demand reasons other than Penalty
and Advance
|
UnitTaxCalculationInfo |
getUnitTaxCalculationInfoClone(UnitTaxCalculationInfo unit) |
static Date |
getWaterTaxEffectiveDateForPenalty() |
WorkflowDetails |
initWorkflowAction(PropertyImpl propertyModel,
WorkflowBean workflowBean,
Long loggedInUserId,
org.egov.eis.service.EisCommonService eisCommonService) |
Boolean |
isCorporation() |
static boolean |
isNonResidentialUnit(String usageName) |
static boolean |
isNotNull(Object object)
Returns true if the
object is not null |
static boolean |
isNotZero(BigDecimal value) |
static boolean |
isNull(Object object)
Returns true if the
object |
static boolean |
isOpenPlotUnit(String usageName) |
Boolean |
isPrimaryServiceApplicable() |
static boolean |
isPropertyModified(Property property)
Tells you whether property is modified or not
|
boolean |
isRebatePeriodActive()
Checks if we are within a rebate period.
|
static boolean |
isResidentialUnit(String usageName) |
Boolean |
isSeaShoreULB() |
static boolean |
isZero(BigDecimal amount)
Returns true if the amount is equal to 0 else false if amount is null or
if its not 0
|
Properties |
loadTaxRates() |
void |
makeTheEgBillAsHistory(BasicProperty basicProperty) |
Map<String,Map<String,BigDecimal>> |
prepareDemandDetForView(Property property,
org.egov.commons.Installment currentInstallment) |
Map<String,BigDecimal> |
prepareDemandDetForWorkflowProperty(Property property,
org.egov.commons.Installment dmdInstallment,
org.egov.commons.Installment dmdDetInstallment) |
List<org.egov.model.instrument.InstrumentType> |
prepareInstrumentTypeList() |
List<PropertyMaterlizeView> |
prepareQueryforArrearRegisterReport(Long zoneId,
Long wardId,
Long areaId,
Long localityId) |
org.hibernate.Query |
prepareQueryforCollectionSummaryReport(String fromDate,
String toDate,
String collMode,
String transMode,
String mode,
String boundaryId,
String propTypeCategoryId,
Long zoneId,
Long wardId,
Long blockId) |
org.hibernate.Query |
prepareQueryforDefaultersReport(Long wardId,
String fromDemand,
String toDemand,
Integer limit,
String ownerShipType,
String proptype)
Prepare query for Defaulters report
|
org.hibernate.Query |
prepareQueryforTitleTransferReport(Long zoneId,
Long wardId,
Long areaId,
String fromDate,
String toDate) |
Map<String,Map<org.egov.commons.Installment,BigDecimal>> |
prepareReasonWiseDenandAndCollection(Property property,
org.egov.commons.Installment currentInstallment) |
Map<org.egov.commons.Installment,BigDecimal> |
prepareRsnWiseCollForProp(Property property)
Prepares a map of installment and respective collection for each
installment
|
Map<org.egov.commons.Installment,BigDecimal> |
prepareRsnWiseDemandForProp(Property property)
Prepares a map of installment and respective demand for each installment
|
Map<String,BigDecimal> |
prepareTaxNameAndALV(Map<String,BigDecimal> taxNameAndALV,
FloorwiseDemandCalculations floorDmdCalc,
Set<String> applicableTaxes) |
static BigDecimal |
roundOffTax(BigDecimal tax) |
void |
setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService) |
public void setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService)
public org.egov.commons.CFinancialYear getFinancialYearforDate(Date date)
CFinancialYear for the given date.date - an instance of Date for which the financial year
is to be retrieved. representing the financial year for
the given datepublic Category getCategoryForBoundary(org.egov.infra.admin.master.entity.Boundary boundary)
public List<org.egov.commons.Installment> getInstallmentListByStartDate(Date startDate)
public List<org.egov.commons.Installment> getInstallmentListByStartDateToCurrFinYear(Date startDate)
public List<org.egov.commons.Installment> getInstallmentListByStartDateToCurrFinYearDesc(Date startDate)
public org.egov.demand.model.EgDemandReason getDemandReasonByCodeAndInstallment(String demandReasonCode, org.egov.commons.Installment installment)
public org.egov.demand.model.EgDemandReasonDetails getDemandReasonDetailsByDemandReasonId(org.egov.demand.model.EgDemandReason demandReason,
BigDecimal grossAnnualRentAfterDeduction)
public List<org.egov.demand.model.EgDemandReasonDetails> getDemandReasonDetails(String demandReasonCode, BigDecimal grossAnnualRentAfterDeduction, org.egov.commons.Installment installment)
public String getAppConfigValue(String moduleName, String key, String defaultValue)
moduleName - a String representing the module namekey - a String representing the keydefaultValue - Default value to be returned in case the key is not definedString representing the configuration valuepublic TaxCalculationInfo getTaxCalInfo(Ptdemand demand)
public static BigDecimal roundOffTax(BigDecimal tax)
public Map<String,Map<String,BigDecimal>> getDemandDues(String propertyId)
propertyId - public org.egov.infra.admin.master.entity.User getLoggedInUser(Map<String,Object> sessionMap)
sessionMap - Map of session variablespublic HashMap<String,Integer> generateOrderForDemandDetails(Set<org.egov.demand.model.EgDemandDetails> demandDetails, PropertyTaxBillable billable, List<org.egov.commons.Installment> advanceInstallments)
public List<org.egov.infra.admin.master.entity.Department> getDepartmentsForLoggedInUser(org.egov.infra.admin.master.entity.User user)
sessionMap - map of session variablespublic org.egov.pims.commons.Designation getDesignationForUser(Long userId)
public org.egov.demand.model.EgBillType getBillTypeByCode(String typeCode)
public Map<org.egov.commons.Installment,BigDecimal> prepareRsnWiseDemandForProp(Property property)
property - public Map<org.egov.commons.Installment,BigDecimal> prepareRsnWiseCollForProp(Property property)
property - public Map<String,BigDecimal> prepareTaxNameAndALV(Map<String,BigDecimal> taxNameAndALV, FloorwiseDemandCalculations floorDmdCalc, Set<String> applicableTaxes)
public UnitTaxCalculationInfo getUnitTaxCalculationInfoClone(UnitTaxCalculationInfo unit)
public TaxCalculationInfo getTaxCalculationInfoClone(TaxCalculationInfo taxCalInfo)
taxCalInfo - public void addMiscellaneousTaxesClone(UnitTaxCalculationInfo unit, UnitTaxCalculationInfo clone)
unit - clone - public Date getStartDateOfLowestInstallment()
public static Long getNumberOfDays(Date fromDate, Date toDate)
fromDate - the datetoDate - the datepublic Boolean between(Date date, Date fromDate, Date toDate)
date - fromDate - toDate - public static int getMonthsBetweenDates(Date fromDate, Date toDate)
fromDate - the from datetoDate - the to datepublic List<PropertyArrearBean> getPropertyArrears(List<PropertyArrear> arrears)
public Map<String,BigDecimal> getDemandAndCollection(Property property)
property - public static boolean isPropertyModified(Property property)
property - public void makeTheEgBillAsHistory(BasicProperty basicProperty)
public static String buildAddress(org.egov.infra.persistence.entity.Address address)
address - public static String getOwnerAddress(List<PropertyOwnerInfo> ownerSet)
Set - public Map<String,Date> getLatestCollRcptDateForProp(String consumerCode)
public static Property getLatestProperty(BasicProperty basicProperty, Character status)
This API is used during Data Entry and Modification to get the recent property when the Occupancy Date after Data Entry or Modification is in between installment
basicProperty - public Map<org.egov.commons.Installment,TaxCalculationInfo> getTaxCalInfoMap(Set<Ptdemand> ptDmdSet)
public Map<Date,TaxCalculationInfo> getTaxCalInfoMap(Set<Ptdemand> ptDmdSet, Date occupancyDate)
public WorkflowDetails initWorkflowAction(PropertyImpl propertyModel, WorkflowBean workflowBean, Long loggedInUserId, org.egov.eis.service.EisCommonService eisCommonService)
public List<Property> getHistoryProperties(BasicProperty basicProperty)
public static boolean isNull(Object object)
object is nullobject - object is nullpublic static boolean isNotNull(Object object)
object is not nullobject - object is not nullpublic static boolean isNotZero(BigDecimal value)
public Date getPropertyOccupancyDate(Property property)
Property - public static boolean isResidentialUnit(String usageName)
public static boolean isNonResidentialUnit(String usageName)
public static boolean isOpenPlotUnit(String usageName)
public static boolean isZero(BigDecimal amount)
amount - public org.egov.commons.Installment getPTInstallmentForDate(Date date)
public static Property getInactiveDemandProperty(BasicProperty basicProperty)
Property whose status is I is Inactive Demand property, demand will be activated either if the citizen pays tax or after 21 days from the date of notice generation
basicProperty - public static String getRevisedDemandYear(Property property)
property - public List<String> getAdvanceYearsFromCurrentInstallment()
property - ParseExceptionpublic List<org.egov.commons.Installment> getOrderedInstallmentsFromGivenDate(Date date)
public Map<String,org.egov.demand.model.EgDemandDetails> getEgDemandDetailsAndReasonAsMap(Set<org.egov.demand.model.EgDemandDetails> egDemandDetails)
egDemandDetails - public Date getEarliestModificationDate(String propertyId)
propertyId - public static Date getWaterTaxEffectiveDateForPenalty()
dateFormat - waterTaxEffectiveDate - public Map<Date,Property> getPropertiesByOccupancy(BasicProperty basicProperty)
public Map<String,Map<org.egov.commons.Installment,BigDecimal>> prepareReasonWiseDenandAndCollection(Property property, org.egov.commons.Installment currentInstallment)
public Map<String,Map<String,BigDecimal>> prepareDemandDetForView(Property property, org.egov.commons.Installment currentInstallment) throws ParseException
ParseExceptionpublic Map<Date,Property> getPropertiesForPenlatyCalculation(BasicProperty basicProperty)
public static boolean afterOrEqual(Date date, Date dateToCompare)
date - dateToCompare - public List<DemandNoticeDetailsInfo> getDemandNoticeDetailsInfo(BasicProperty basicProperty, PropertyWiseConsumptions propertyWiseConsumptions)
basicProperty - propertyWiseConsumptions - public org.egov.demand.model.DepreciationMaster getDepreciationByDate(Date constructionDate, Date effectiveDate)
public List<org.egov.model.instrument.InstrumentType> prepareInstrumentTypeList()
public Boolean isCorporation()
public Boolean isSeaShoreULB()
public Boolean isPrimaryServiceApplicable()
public PropertyWiseConsumptions getPropertyWiseConsumptions(String basicPropertyId)
basicPropertyId - public Properties loadTaxRates()
public org.hibernate.Query prepareQueryforCollectionSummaryReport(String fromDate, String toDate, String collMode, String transMode, String mode, String boundaryId, String propTypeCategoryId, Long zoneId, Long wardId, Long blockId)
fromDate - toDate - collMode - transMode - mode - boundaryId - (used in case of collection summary report other than
usagewise)propTypeCategoryId - zoneId - wardId - areaId - public List<PropertyMaterlizeView> prepareQueryforArrearRegisterReport(Long zoneId, Long wardId, Long areaId, Long localityId)
zoneId - wardId - areaId - localityId - public org.hibernate.Query prepareQueryforTitleTransferReport(Long zoneId, Long wardId, Long areaId, String fromDate, String toDate)
zoneId - wardId - areaId - fromDate - toDate - public BigDecimal getPropertyTaxDetails(Long basicPropId, org.egov.commons.CFinancialYear finyear)
basicPropId - finyear - public Map<String,BigDecimal> prepareDemandDetForWorkflowProperty(Property property, org.egov.commons.Installment dmdInstallment, org.egov.commons.Installment dmdDetInstallment)
public boolean enableVacancyRemission(String upicNo)
public boolean enableMonthlyUpdate(String upicNo)
public boolean enableVRApproval(String upicNo)
public boolean checkForParentUsedInBifurcation(String upicNo)
upicNo - of the parent propertypublic Date getLowestInstallmentForProperty(Property property)
property - public boolean checkIsNagarPanchayat()
public org.hibernate.Query prepareQueryforDefaultersReport(Long wardId, String fromDemand, String toDemand, Integer limit, String ownerShipType, String proptype)
wardId - fromDemand - toDemand - limit - public List<org.egov.commons.Installment> getInstallments(PropertyImpl property)
public Map<String,org.egov.commons.Installment> getInstallmentsForCurrYear(Date currDate)
public boolean isRebatePeriodActive()
public Date getEffectiveDateForProperty()
public Map<String,BigDecimal> getTaxDetailsForInstallment(Property property, org.egov.commons.Installment effectiveInstallment, org.egov.commons.Installment demandInstallment)
property - effectiveInstallment - demandInstallment - public List<org.egov.commons.Installment> getInstallmentsListByEffectiveDate(Date effectiveDate)
effectiveDate - Copyright © 2015–2017 eGovernments Foundation. All rights reserved.