@Service public class EmployeeServiceImpl extends Object implements EmployeeServiceOld
| Constructor and Description |
|---|
EmployeeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLangKnown(PersonalInformation personalInformation,
LangKnown langKnown) |
boolean |
checkDuplication(String name,
String className) |
boolean |
checkPos(Integer posId,
Date fromDate,
Date toDate,
Integer empId,
String isPrimary) |
void |
createAssignment(Assignment egEmpAssignment) |
PersonalInformation |
createEmloyee(PersonalInformation egpimsPersonalInformation) |
void |
deleteLangKnownForEmp(PersonalInformation personalInformation) |
List |
getAllActiveUsersByGivenDesg(Integer DesgId)
Returns the list of active users who are assigned to the given
designation.
|
List |
getAllDesignationByDept(Integer deptId)
return all distinct Designations to which employees are assigned in the
given department for current date.
|
List<PersonalInformation> |
getAllEmpByGrade(Integer gradeId) |
List<PersonalInformation> |
getAllEmployees()
returns all the employees who has active assignment period
|
Map |
getAllPIMap() |
org.egov.infra.admin.master.service.AppConfigValueService |
getAppConfigValuesService() |
Assignment |
getAssignmentByEmpAndDate(Date date,
Integer empId) |
Assignment |
getAssignmentById(Integer assignmentId) |
AssignmentDAO |
getAssignmentDAO() |
List<Integer> |
getAssignmentsForEmp(Integer empId,
Date givenDate)
Returns a list of assignment ids.
|
org.hibernate.Session |
getCurrentSession() |
EisUtilService |
getEisService() |
PersonalInformation |
getEmloyeeById(Integer employeeId) |
PersonalInformation |
getEmpForPositionAndDate(Date dateEntered,
Integer posId) |
PersonalInformation |
getEmpForUserId(Long userId) |
List<PersonalInformation> |
getEmpListForPositionAndDate(Date dateEntered,
Integer posId)
Returns list of employees for a given position and date
|
PersonalInformation |
getEmployee(Integer deptId,
Integer designationId,
Long Boundaryid)
This is used for workflow Getting employee by passing dept,desig,boundary
|
PersonalInformation |
getEmployeeByFunctionary(Long deptId,
Long designationId,
Long Boundaryid,
Integer functionaryId)
This is used for workflow Getting employee by passing
dept,desig,boundary,functionary
|
String |
getEmployeeCode() |
PersonalInformation |
getEmployeeforPosition(org.egov.pims.commons.Position pos) |
List<EmployeeView> |
getEmployeeInfoBasedOnDeptAndDate(Integer deptId,
Date date)
Returns the list of Employees who are assigned to the given department as
of given date.
|
List<EmployeeView> |
getEmployeeInfoBasedOnDeptAndDesg(Integer deptId,
Integer desgId)
Returns the list of Employees who are assigned to the given department
and designation as of current date.
|
List<EmployeeView> |
getEmployeeWithTempAssignment(Date givenDate,
Integer posId)
Returns the list of employees (EmployeeView) who have a temporary
assignment as on the given date assigned to the given position
|
List<EmployeeView> |
getEmployeeWithTempAssignment(String code,
Date givenDate,
Integer posId)
Returns the list of employees (EmployeeView) who have a temporary
assignment as on the given date assigned to the given position and has
the employee code equal to the given code
|
List |
getEmpPrimaryAssignment(String code,
Date givenDate,
Integer posId)
Returns a list of primary Assignments as on given date for employees that
have the given code and position.
|
List |
getEmpTempAssignment(String code,
Date givenDate,
Integer posId)
Returns a list of temporary Assignments as on given date for employees
that have the given code and position.
|
org.egov.pims.model.GenericMaster |
getGenericMaster(Integer masterId,
String masterName) |
Assignment |
getLastAssignmentByEmp(Integer empId) |
Assignment |
getLatestAssignmentForEmployee(Integer empId) |
Assignment |
getLatestAssignmentForEmployeeByToDate(Integer empId,
Date todate) |
List |
getListOfDeptBasedOnUserDept(String userName)
Returns the list of departments that the user is assigned to.
|
List |
getListOfEmpforDept(Integer deptId) |
List |
getListOfEmpforDesignation(Integer desigId) |
List |
getListOfEmployeeWithoutAssignment(Date fromdate) |
List |
getListOfPersonalInformationByEmpIdsList(List empIdsList) |
List |
getListOfUsersNotMappedToEmp()
List of users not mapped to any of the employees
|
Map |
getMapForList(List list) |
Map |
getMapForList(List list,
String fieldName1,
String fieldName2)
Returns Map for a given list
|
EmployeeNamePoJo |
getNameOfEmployee(Integer empId) |
Integer |
getNextVal() |
org.egov.infstr.services.PersistenceService |
getPersistenceService() |
PersonalInformationDAO |
getPersonalInformationDAO() |
org.egov.pims.commons.Position |
getPositionforEmp(Integer empId) |
List<org.egov.pims.commons.Position> |
getPositionsForUser(org.egov.infra.admin.master.entity.User user,
Date date)
API that will return all positions for a user(temporary and permanent)
for a date.
|
org.egov.pims.commons.Designation |
getPresentDesignation(Integer idPersonalInformation) |
ServiceHistory |
getServiceId(Integer id) |
boolean |
isFilterByDept() |
List |
searchEmployee(Integer empId) |
List |
searchEmployee(Integer status,
Date fromDate,
Date toDate)
Api Used to get the report for employee,Retired,Deceased,Suspended based
on the dates.
|
List |
searchEmployee(Integer departmentId,
Integer designationId,
Integer functionaryId,
String code,
String name,
Integer status) |
List |
searchEmployee(Integer departmentId,
Integer designationId,
Integer functionaryId,
String code,
String name,
Integer status,
Integer empType)
Deprecated.
|
List |
searchEmployee(Integer departmentId,
Integer designationId,
String code,
String name,
Integer status) |
List |
searchEmployee(Integer departmentId,
Integer designationId,
String code,
String name,
String searchAll)
Deprecated.
|
List<EmployeeView> |
searchEmployee(Integer designationId,
String code,
String name,
Integer status,
Integer empType,
Map<String,Integer> finParams) |
List<EmployeeView> |
searchEmployeeByGrouping(LinkedList<String> groupingByOrder) |
void |
setAppConfigValuesService(org.egov.infra.admin.master.service.AppConfigValueService appConfigValuesService) |
void |
setAssignmentDAO(AssignmentDAO assignmentDAO) |
void |
setEisService(EisUtilService eisService) |
void |
setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService) |
void |
setPersonalInformationDAO(PersonalInformationDAO personalInformationDAO) |
void |
updateAssignment(Assignment assignment) |
void |
updateEmloyee(PersonalInformation egpimsPersonalInformation) |
public org.hibernate.Session getCurrentSession()
public org.egov.infstr.services.PersistenceService getPersistenceService()
public void setPersistenceService(org.egov.infstr.services.PersistenceService persistenceService)
@Deprecated public List searchEmployee(Integer departmentId, Integer designationId, String code, String name, String searchAll) throws Exception
searchEmployee in interface EmployeeServiceOldExceptionpublic List searchEmployee(Integer departmentId, Integer designationId, String code, String name, Integer status) throws Exception
searchEmployee in interface EmployeeServiceOldExceptionpublic List searchEmployee(Integer departmentId, Integer designationId, Integer functionaryId, String code, String name, Integer status) throws Exception
searchEmployee in interface EmployeeServiceOldExceptionpublic List<EmployeeView> searchEmployee(Integer designationId, String code, String name, Integer status, Integer empType, Map<String,Integer> finParams) throws Exception
searchEmployee in interface EmployeeServiceOlddesignationId - code - name - status - empType - finParams - department,functionary,function optionalException@Deprecated public List searchEmployee(Integer departmentId, Integer designationId, Integer functionaryId, String code, String name, Integer status, Integer empType) throws Exception
searchEmployee in interface EmployeeServiceOldExceptionpublic List<EmployeeView> searchEmployeeByGrouping(LinkedList<String> groupingByOrder) throws Exception
searchEmployeeByGrouping in interface EmployeeServiceOldExceptionpublic List searchEmployee(Integer empId) throws Exception
searchEmployee in interface EmployeeServiceOldExceptionpublic Assignment getAssignmentByEmpAndDate(Date date, Integer empId)
getAssignmentByEmpAndDate in interface EmployeeServiceOldpublic Assignment getLatestAssignmentForEmployee(Integer empId)
getLatestAssignmentForEmployee in interface EmployeeServiceOldpublic PersonalInformation getEmployeeforPosition(org.egov.pims.commons.Position pos)
getEmployeeforPosition in interface EmployeeServiceOldpublic org.egov.pims.commons.Position getPositionforEmp(Integer empId)
getPositionforEmp in interface EmployeeServiceOldpublic boolean checkDuplication(String name, String className)
checkDuplication in interface EmployeeServiceOldpublic PersonalInformation getEmpForUserId(Long userId)
getEmpForUserId in interface EmployeeServiceOldpublic void createAssignment(Assignment egEmpAssignment)
public PersonalInformation createEmloyee(PersonalInformation egpimsPersonalInformation)
createEmloyee in interface EmployeeServiceOldpublic void updateEmloyee(PersonalInformation egpimsPersonalInformation)
updateEmloyee in interface EmployeeServiceOldpublic PersonalInformation getEmloyeeById(Integer employeeId)
getEmloyeeById in interface EmployeeServiceOldpublic org.egov.pims.model.GenericMaster getGenericMaster(Integer masterId, String masterName)
getGenericMaster in interface EmployeeServiceOldpublic Assignment getAssignmentById(Integer assignmentId)
getAssignmentById in interface EmployeeServiceOldpublic void updateAssignment(Assignment assignment)
updateAssignment in interface EmployeeServiceOldpublic void addLangKnown(PersonalInformation personalInformation, LangKnown langKnown)
addLangKnown in interface EmployeeServiceOldpublic List getListOfEmpforDept(Integer deptId)
getListOfEmpforDept in interface EmployeeServiceOldpublic List getListOfEmpforDesignation(Integer desigId)
getListOfEmpforDesignation in interface EmployeeServiceOldpublic EmployeeNamePoJo getNameOfEmployee(Integer empId)
getNameOfEmployee in interface EmployeeServiceOldpublic Map getAllPIMap()
getAllPIMap in interface EmployeeServiceOldpublic Map getMapForList(List list)
getMapForList in interface EmployeeServiceOldpublic Map getMapForList(List list, String fieldName1, String fieldName2)
getMapForList in interface EmployeeServiceOldlist - public void deleteLangKnownForEmp(PersonalInformation personalInformation)
deleteLangKnownForEmp in interface EmployeeServiceOldpublic Integer getNextVal()
getNextVal in interface EmployeeServiceOldpublic String getEmployeeCode()
getEmployeeCode in interface EmployeeServiceOldpublic boolean checkPos(Integer posId, Date fromDate, Date toDate, Integer empId, String isPrimary)
checkPos in interface EmployeeServiceOldpublic List getListOfPersonalInformationByEmpIdsList(List empIdsList)
getListOfPersonalInformationByEmpIdsList in interface EmployeeServiceOldpublic List getListOfEmployeeWithoutAssignment(Date fromdate)
getListOfEmployeeWithoutAssignment in interface EmployeeServiceOldpublic Assignment getLatestAssignmentForEmployeeByToDate(Integer empId, Date todate) throws Exception
getLatestAssignmentForEmployeeByToDate in interface EmployeeServiceOldExceptionpublic PersonalInformation getEmployee(Integer deptId, Integer designationId, Long Boundaryid) throws org.egov.commons.exception.TooManyValuesException, org.egov.commons.exception.NoSuchObjectException
getEmployee in interface EmployeeServiceOlddeptId - designationId - Boundaryid - org.egov.commons.exception.TooManyValuesExceptionorg.egov.commons.exception.NoSuchObjectExceptionpublic PersonalInformation getEmployeeByFunctionary(Long deptId, Long designationId, Long Boundaryid, Integer functionaryId) throws org.egov.commons.exception.TooManyValuesException, org.egov.commons.exception.NoSuchObjectException
getEmployeeByFunctionary in interface EmployeeServiceOlddeptId - designationId - Boundaryid - org.egov.commons.exception.TooManyValuesExceptionorg.egov.commons.exception.NoSuchObjectExceptionpublic Assignment getLastAssignmentByEmp(Integer empId)
getLastAssignmentByEmp in interface EmployeeServiceOldpublic ServiceHistory getServiceId(Integer id)
getServiceId in interface EmployeeServiceOldpublic List<PersonalInformation> getAllEmpByGrade(Integer gradeId)
getAllEmpByGrade in interface EmployeeServiceOldpublic PersonalInformation getEmpForPositionAndDate(Date dateEntered, Integer posId) throws Exception
getEmpForPositionAndDate in interface EmployeeServiceOldExceptionpublic List<PersonalInformation> getEmpListForPositionAndDate(Date dateEntered, Integer posId) throws Exception
getEmpListForPositionAndDate in interface EmployeeServiceOlddateEntered - posId - Exceptionpublic List getAllDesignationByDept(Integer deptId)
getAllDesignationByDept in interface EmployeeServiceOlddepartmentId - givenDate - public List getAllActiveUsersByGivenDesg(Integer DesgId) throws Exception
getAllActiveUsersByGivenDesg in interface EmployeeServiceOldDesgId - Exceptionpublic List<EmployeeView> getEmployeeWithTempAssignment(Date givenDate, Integer posId)
getEmployeeWithTempAssignment in interface EmployeeServiceOldgivenDate - posId - public List<EmployeeView> getEmployeeWithTempAssignment(String code, Date givenDate, Integer posId)
getEmployeeWithTempAssignment in interface EmployeeServiceOldgivenDate - posId - public List getEmpTempAssignment(String code, Date givenDate, Integer posId)
getEmpTempAssignment in interface EmployeeServiceOldcode - givenDate - posId - public List<Integer> getAssignmentsForEmp(Integer empId, Date givenDate) throws org.egov.infra.exception.ApplicationException
getAssignmentsForEmp in interface EmployeeServiceOldempId - - Required parameter. If null is passed, the API throws an
ApplicationExceptiongivenDate - . Date as on which the assignments need to be returned. If
this parameter is null, the current date is consideredorg.egov.infra.exception.ApplicationExceptionpublic List<org.egov.pims.commons.Position> getPositionsForUser(org.egov.infra.admin.master.entity.User user, Date date) throws org.egov.infra.exception.ApplicationException
getPositionsForUser in interface EmployeeServiceOlduser - . Required. User object for which the positions are querieddate - Will consider current date if date is not providedorg.egov.infra.exception.ApplicationExceptionpublic List getEmpPrimaryAssignment(String code, Date givenDate, Integer posId)
getEmpPrimaryAssignment in interface EmployeeServiceOldcode - givenDate - posId - public List searchEmployee(Integer status, Date fromDate, Date toDate) throws Exception
searchEmployee in interface EmployeeServiceOldstatus - fromDate - toDate - Exceptionpublic List getListOfDeptBasedOnUserDept(String userName)
getListOfDeptBasedOnUserDept in interface EmployeeServiceOlduserName - public boolean isFilterByDept()
isFilterByDept in interface EmployeeServiceOldpublic List<EmployeeView> getEmployeeInfoBasedOnDeptAndDesg(Integer deptId, Integer desgId)
getEmployeeInfoBasedOnDeptAndDesg in interface EmployeeServiceOlddeptId - - Integer representing id of departmentdesgId - - Integer representing id of designationpublic List<EmployeeView> getEmployeeInfoBasedOnDeptAndDate(Integer deptId, Date date)
getEmployeeInfoBasedOnDeptAndDate in interface EmployeeServiceOlddeptId - - Integer representing id of departmentdate - - Given date. If null, current date is assumed.public List<PersonalInformation> getAllEmployees()
getAllEmployees in interface EmployeeServiceOldpublic List getListOfUsersNotMappedToEmp()
getListOfUsersNotMappedToEmp in interface EmployeeServiceOldpublic org.egov.pims.commons.Designation getPresentDesignation(Integer idPersonalInformation)
getPresentDesignation in interface EmployeeServiceOldpublic EisUtilService getEisService()
public void setEisService(EisUtilService eisService)
public PersonalInformationDAO getPersonalInformationDAO()
public void setPersonalInformationDAO(PersonalInformationDAO personalInformationDAO)
public AssignmentDAO getAssignmentDAO()
public void setAssignmentDAO(AssignmentDAO assignmentDAO)
public org.egov.infra.admin.master.service.AppConfigValueService getAppConfigValuesService()
public void setAppConfigValuesService(org.egov.infra.admin.master.service.AppConfigValueService appConfigValuesService)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.