public class CollectionsUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.egov.eis.service.AssignmentService |
assignmentService |
static SimpleDateFormat |
CHEQUE_DATE_FORMAT |
| Constructor and Description |
|---|
CollectionsUtil() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkChallanValidity(Challan challan)
This method checks if the given challan is valid.
|
Boolean |
checkVoucherCreation(ReceiptHeader receiptHeader) |
CollectionIndex |
constructCollectionIndex(ReceiptHeader receiptHeader) |
org.egov.infra.reporting.engine.ReportOutput |
createReport(org.egov.infra.reporting.engine.ReportRequest reportRequest) |
void |
emailReceiptAsAttachment(ReceiptHeader receiptHeader,
byte[] attachment) |
List |
getAllCounters() |
List<org.egov.commons.Fund> |
getAllFunds() |
List |
getAllLocations() |
List<org.egov.infra.admin.master.entity.Department> |
getAllNonPrimaryAssignmentsOfLoggedInUser() |
List<org.egov.infra.admin.master.entity.Department> |
getAllNonPrimaryAssignmentsOfUser(org.egov.infra.admin.master.entity.User user) |
List<org.egov.commons.EgwStatus> |
getAllReceiptHeaderStatus()
This method returns the List of
EgwStatus for ReceiptHeader |
String |
getAppConfigValue(String moduleName,
String key)
This method returns the config value for the given module name and key
|
String |
getAppConfigValue(String moduleName,
String key,
String defaultValue)
This method returns the currently active config value for the given
module name and key
|
List<org.egov.infra.admin.master.entity.AppConfigValues> |
getAppConfigValues(String moduleName,
String key)
This method returns the list of config values for the given module name
and key
|
String |
getApproverName(org.egov.pims.commons.Position position) |
Object |
getBean(String beanName)
Fetches given bean from application context
|
List |
getBillingServiceList() |
List |
getChallanServiceList() |
List<String> |
getCollectionModesNotAllowed(org.egov.infra.admin.master.entity.User loggedInUser)
This method returns the collection modes that are not allowed based on
rules configured in the script
|
String |
getDepartmentForWorkFlow() |
org.egov.infra.admin.master.entity.Department |
getDepartmentOfLoggedInUser() |
org.egov.infra.admin.master.entity.Department |
getDepartmentOfUser(org.egov.infra.admin.master.entity.User user) |
List<org.egov.infra.admin.master.entity.Department> |
getDepartmentsAllowedForChallanApproval() |
org.egov.pims.commons.Designation |
getDesignationForApprover() |
String |
getDesignationForThirdPartyUser() |
List<org.egov.pims.commons.Designation> |
getDesignationsAllowedForChallanApproval(Integer departmentId) |
org.egov.pims.model.PersonalInformation |
getEmployeeByDepartmentDesignationBoundaryandFunctionary(Long deptId,
Long designationId,
Integer boundaryId,
Integer functionaryId)
This method is invoked from the ReceiptHeader.workFlow script and returns
Employee object for the given Department Id, Designation Id ,Boundary Id
and FunctionaryId
|
org.egov.commons.CFinancialYear |
getFinancialYearforDate(Date date)
This method retrieves the
CFinancialYear for the given date. |
org.egov.infra.admin.master.entity.Location |
getLocationById(Long locationId) |
org.egov.infra.admin.master.entity.Location |
getLocationOfUser(Map<String,Object> sessionMap) |
org.egov.infra.admin.master.entity.User |
getLoggedInUser()
This method returns the User instance associated with the logged in user
|
String |
getLoggedInUserName() |
org.egov.infra.admin.master.entity.Department |
getNonPrimaryDeptOfUser(org.egov.infra.admin.master.entity.User user) |
List<OnlinePayment> |
getOnlineTransactionHistory(String consumerCode) |
org.egov.pims.commons.Position |
getPositionByDeptDesgAndBoundary(org.egov.infra.admin.master.entity.Boundary boundary) |
org.egov.pims.commons.Position |
getPositionById(Long positionId)
Gets position by given position id
|
org.egov.pims.commons.Position |
getPositionByName(String positionName)
Gets position by given position name
|
List<org.egov.eis.entity.EmployeeView> |
getPositionBySearchParameters(String beginsWith,
Integer desId,
Integer deptId,
Integer jurdId,
Integer roleId,
Date userDate,
Integer maxResults) |
org.egov.pims.commons.Position |
getPositionforEmp(Long employeeId)
This method is invoked from the ReceiptHeader.workFlow script and returns
the position for the employee id passed as parameter
|
org.egov.pims.commons.Position |
getPositionOfUser(org.egov.infra.admin.master.entity.User user) |
List<org.egov.pims.commons.Position> |
getPositionsForEmployee(org.egov.infra.admin.master.entity.User user) |
List |
getReceiptCreators() |
org.egov.commons.EgwStatus |
getReceiptStatusForCode(String statusCode)
Returns the Status object for given status code for a receipt
|
String |
getReceiptTemplateName(char receiptType,
String serviceCode) |
List |
getReceiptZoneList() |
Date |
getRemittanceVoucherDate(Date receiptDate) |
org.egov.commons.EgwStatus |
getStatusForModuleAndCode(String moduleName,
String statusCode)
This method returns the
EgwStatus for the given module type
and status code |
List<org.egov.infra.admin.master.entity.AppConfigValues> |
getThirdPartyUserRoles() |
org.egov.infra.admin.master.entity.User |
getUserById(Long userId) |
org.egov.infra.admin.master.entity.User |
getUserByUserName(String userName)
This method returns the User instance for the userName passed as
parameter
|
Boolean |
getVoucherType() |
Boolean |
isEmployee(org.egov.infra.admin.master.entity.User user) |
boolean |
isPropertyTaxArrearAccountHead(String glcode,
String description)
This method checks if the given glcode belongs to an account head
representing an arrear account head (for Property Tax).
|
boolean |
isValidTemplate(String templateName) |
List<ReceiptDetail> |
reconstructReceiptDetail(ReceiptHeader receiptHeader,
List<ReceiptDetail> receiptDetailList) |
void |
setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService) |
void |
setReportService(org.egov.infra.reporting.engine.ReportService reportService) |
void |
setUserService(org.egov.infra.admin.master.service.UserService userService) |
public static final SimpleDateFormat CHEQUE_DATE_FORMAT
@Autowired protected org.egov.eis.service.AssignmentService assignmentService
public org.egov.commons.EgwStatus getReceiptStatusForCode(String statusCode)
statusCode - Status code for which status object is to be returnedpublic org.egov.commons.EgwStatus getStatusForModuleAndCode(String moduleName, String statusCode)
EgwStatus for the given module type
and status codemoduleName - Module name of the required statusstatusCode - Status code of the required statusEgwStatus instancepublic List<org.egov.commons.EgwStatus> getAllReceiptHeaderStatus()
EgwStatus for ReceiptHeaderEgwStatus instancepublic String getLoggedInUserName()
sessionMap - Map of session variablespublic org.egov.infra.admin.master.entity.User getLoggedInUser()
sessionMap - Map of session variablespublic org.egov.infra.admin.master.entity.Department getDepartmentOfUser(org.egov.infra.admin.master.entity.User user)
user - the user whose department is to be returnedpublic org.egov.infra.admin.master.entity.Department getDepartmentOfLoggedInUser()
sessionMap - map of session variablespublic org.egov.infra.admin.master.entity.User getUserByUserName(String userName)
userName - public org.egov.infra.admin.master.entity.Location getLocationOfUser(Map<String,Object> sessionMap)
sessionMap - Map of session variablespublic org.egov.infra.admin.master.entity.Location getLocationById(Long locationId)
public List getAllCounters()
public List getChallanServiceList()
public List getBillingServiceList()
public List getReceiptCreators()
public List getReceiptZoneList()
public List<String> getCollectionModesNotAllowed(org.egov.infra.admin.master.entity.User loggedInUser)
loggedInUser - a User entity representing the logged in user.List of String values representing
the mode of payments supported.public Boolean isEmployee(org.egov.infra.admin.master.entity.User user)
public List<org.egov.infra.admin.master.entity.AppConfigValues> getThirdPartyUserRoles()
public String getDepartmentForWorkFlow()
public org.egov.pims.commons.Position getPositionByDeptDesgAndBoundary(org.egov.infra.admin.master.entity.Boundary boundary)
public String getDesignationForThirdPartyUser()
public org.egov.pims.commons.Position getPositionOfUser(org.egov.infra.admin.master.entity.User user)
sessionMap - Map of session variablespublic List<org.egov.pims.commons.Position> getPositionsForEmployee(org.egov.infra.admin.master.entity.User user)
public org.egov.pims.commons.Position getPositionByName(String positionName)
positionName - Position namepublic 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 boolean checkChallanValidity(Challan challan)
challan - the Challan instance whose validity has to be
checkedpublic Object getBean(String beanName)
beanName - name of bean to be fetchedpublic String getAppConfigValue(String moduleName, String key, String defaultValue)
moduleName - a String representing the module name
@param key
a String representing the keydefaultValue - Default value to be returned in case the key is not definedString representing the configuration valuepublic String getAppConfigValue(String moduleName, String key)
moduleName - a String representing the module name
@param key
a String representing the keyString representing the configuration valuepublic List<org.egov.infra.admin.master.entity.AppConfigValues> getAppConfigValues(String moduleName, String key)
moduleName - a String representing the module name
@param key
a String representing the keyList representing the list of
configuration valuespublic org.egov.pims.commons.Position getPositionById(Long positionId)
positionId - Position Idpublic org.egov.pims.commons.Position getPositionforEmp(Long employeeId)
employeeId - PersonalInformation Idpublic org.egov.pims.model.PersonalInformation getEmployeeByDepartmentDesignationBoundaryandFunctionary(Long deptId, Long designationId, Integer boundaryId, Integer functionaryId)
deptId - Department IddesignationId - Designation IdboundaryId - Boundary IdfunctionaryId - Functionary Idpublic List<org.egov.infra.admin.master.entity.Department> getAllNonPrimaryAssignmentsOfLoggedInUser()
sessionMap - public List<org.egov.infra.admin.master.entity.Department> getAllNonPrimaryAssignmentsOfUser(org.egov.infra.admin.master.entity.User user)
user - the user whose non-primary department list is to be returnedpublic org.egov.infra.admin.master.entity.Department getNonPrimaryDeptOfUser(org.egov.infra.admin.master.entity.User user)
user - the user whose non-primary department is to be returnedpublic List<org.egov.pims.commons.Designation> getDesignationsAllowedForChallanApproval(Integer departmentId)
public List<org.egov.infra.admin.master.entity.Department> getDepartmentsAllowedForChallanApproval()
public boolean isPropertyTaxArrearAccountHead(String glcode, String description)
glcode - The Chart of Accounts Codedescription - Description of the glcodepublic List<org.egov.eis.entity.EmployeeView> getPositionBySearchParameters(String beginsWith, Integer desId, Integer deptId, Integer jurdId, Integer roleId, Date userDate, Integer maxResults) throws org.egov.commons.exception.NoSuchObjectException
org.egov.commons.exception.NoSuchObjectExceptionpublic List<OnlinePayment> getOnlineTransactionHistory(String consumerCode)
consumerCode - public List getAllLocations()
public List<org.egov.commons.Fund> getAllFunds()
public org.egov.infra.admin.master.entity.User getUserById(Long userId)
public boolean isValidTemplate(String templateName)
public org.egov.infra.reporting.engine.ReportOutput createReport(org.egov.infra.reporting.engine.ReportRequest reportRequest)
public CollectionIndex constructCollectionIndex(ReceiptHeader receiptHeader)
public Boolean checkVoucherCreation(ReceiptHeader receiptHeader)
public org.egov.pims.commons.Designation getDesignationForApprover()
public String getApproverName(org.egov.pims.commons.Position position)
public List<ReceiptDetail> reconstructReceiptDetail(ReceiptHeader receiptHeader, List<ReceiptDetail> receiptDetailList)
public Boolean getVoucherType()
public String getReceiptTemplateName(char receiptType, String serviceCode)
serviceCode - Billing service code for which the receipt template is to be
returnedpublic void emailReceiptAsAttachment(ReceiptHeader receiptHeader, byte[] attachment)
public void setUserService(org.egov.infra.admin.master.service.UserService userService)
public void setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService)
public void setReportService(org.egov.infra.reporting.engine.ReportService reportService)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.