@Service @Transactional(readOnly=true) public class EmployeeService extends Object implements org.egov.commons.service.EntityTypeService
| Constructor and Description |
|---|
EmployeeService(EmployeeRepository employeeRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrRemoveUserRole() |
void |
create(Employee employee) |
void |
createEmployeeData(Employee employee) |
void |
delete(Employee employee) |
List<? extends org.egov.commons.utils.EntityType> |
filterActiveEntities(String filterKey,
int maxRecords,
Integer accountDetailTypeId) |
List<Employee> |
findActiveEmployeeByCodeLike(String code) |
List<Employee> |
findByDepartmentDesignationAndBoundary(Long deptId,
Long desigId,
Long boundaryId)
Get List of employee objects by department ,designation and boundary ids
|
List<Employee> |
findEmployeeByCodeLike(String code) |
String |
generateUserNameByDeptDesig(org.egov.infra.admin.master.entity.Department department,
org.egov.pims.commons.Designation designation) |
List<org.egov.commons.utils.EntityType> |
getAllActiveEntities(Integer employeeId)
since it is mapped to only one AccountDetailType -creditor it ignores the input parameter
|
List<Employee> |
getAllEmployees() |
List<org.egov.commons.Functionary> |
getAllFunctionaries() |
List<org.egov.commons.CFunction> |
getAllFunctions() |
List<org.egov.commons.Fund> |
getAllFunds() |
List<org.egov.commons.Fund> |
getAllGrades() |
List |
getAssetCodesForProjectCode(Integer accountdetailkey) |
org.hibernate.Session |
getCurrentSession() |
Employee |
getEmployeeByCode(String code)
Get employee object by code
|
Employee |
getEmployeeById(Long id)
Get employee object by id
|
Employee |
getEmployeeByUserName(String userName)
Get employee by user name
|
Employee |
getEmployeeForPositionAndDate(Long posId,
Date givenDate)
Returns employee object for position id and given date
|
List<Employee> |
getEmployeesByStatus(EmployeeStatus status)
Get list of employee objects by employee status
|
List<Employee> |
getEmployeesByType(Long id)
Get list of employee objects by employee type
|
List<Employee> |
getEmployeesForPosition(Long posId)
Returns list of employee for a given position
|
List<? extends org.egov.commons.utils.EntityType> |
getEntitiesById(List<Long> idsList) |
Employee |
getPrimaryAssignmentEmployeeForPos(Long posId)
Returns primary assignment's employee for position
|
Boolean |
primaryAssignmentExists(Employee employee) |
List<Employee> |
searchEmployees(EmployeeSearchDTO searchParams) |
org.hibernate.Query |
setAssignmentParameter(EmployeeSearchDTO searchParams,
org.hibernate.Query assignQuery) |
org.hibernate.Query |
setParametersToQuery(EmployeeSearchDTO searchParams,
org.hibernate.Query query) |
void |
update(Employee employee) |
void |
updateEmployeeDetails(Employee employee) |
Boolean |
validateEmployeeCode(Employee employee) |
List<? extends org.egov.commons.utils.EntityType> |
validateEntityForRTGS(List<Long> idsList) |
String |
validatePosition(Employee employee,
String removedassignIds) |
@Autowired public EmployeeService(EmployeeRepository employeeRepository)
public org.hibernate.Session getCurrentSession()
public List<org.egov.commons.CFunction> getAllFunctions()
public List<org.egov.commons.Functionary> getAllFunctionaries()
public List<org.egov.commons.Fund> getAllFunds()
public List<org.egov.commons.Fund> getAllGrades()
public List<org.egov.commons.utils.EntityType> getAllActiveEntities(Integer employeeId)
getAllActiveEntities in interface org.egov.commons.service.EntityTypeService@Transactional public void create(Employee employee)
@Transactional public void createEmployeeData(Employee employee)
@Transactional public void update(Employee employee)
@Transactional public void updateEmployeeDetails(Employee employee)
@Transactional public void addOrRemoveUserRole()
public List<Employee> searchEmployees(EmployeeSearchDTO searchParams)
public org.hibernate.Query setParametersToQuery(EmployeeSearchDTO searchParams, org.hibernate.Query query)
public org.hibernate.Query setAssignmentParameter(EmployeeSearchDTO searchParams, org.hibernate.Query assignQuery)
@Transactional public void delete(Employee employee)
public Employee getEmployeeById(Long id)
id - public Employee getEmployeeByCode(String code)
code - public List<Employee> getEmployeesByStatus(EmployeeStatus status)
status - public List<Employee> getEmployeesByType(Long id)
id - public Employee getEmployeeByUserName(String userName)
userName - public List<Employee> findByDepartmentDesignationAndBoundary(Long deptId, Long desigId, Long boundaryId)
deptId - desigId - boundaryId - public List<Employee> getEmployeesForPosition(Long posId)
posId - public Employee getPrimaryAssignmentEmployeeForPos(Long posId)
posId - public Employee getEmployeeForPositionAndDate(Long posId, Date givenDate)
posId - givenDate - public List<? extends org.egov.commons.utils.EntityType> filterActiveEntities(String filterKey, int maxRecords, Integer accountDetailTypeId)
filterActiveEntities in interface org.egov.commons.service.EntityTypeServicepublic List getAssetCodesForProjectCode(Integer accountdetailkey) throws org.egov.infra.validation.exception.ValidationException
getAssetCodesForProjectCode in interface org.egov.commons.service.EntityTypeServiceorg.egov.infra.validation.exception.ValidationExceptionpublic List<? extends org.egov.commons.utils.EntityType> validateEntityForRTGS(List<Long> idsList) throws org.egov.infra.validation.exception.ValidationException
validateEntityForRTGS in interface org.egov.commons.service.EntityTypeServiceorg.egov.infra.validation.exception.ValidationExceptionpublic List<? extends org.egov.commons.utils.EntityType> getEntitiesById(List<Long> idsList) throws org.egov.infra.validation.exception.ValidationException
getEntitiesById in interface org.egov.commons.service.EntityTypeServiceorg.egov.infra.validation.exception.ValidationExceptionpublic String generateUserNameByDeptDesig(org.egov.infra.admin.master.entity.Department department, org.egov.pims.commons.Designation designation)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.