@Service @Transactional(readOnly=true) public class PositionMasterService extends Object
| Constructor and Description |
|---|
PositionMasterService(PositionMasterRepository positionMasterRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
createPosition(org.egov.pims.commons.Position position) |
void |
deletePosition(org.egov.pims.commons.Position position) |
List<org.egov.pims.commons.Position> |
findByNameContainingIgnoreCase(String positionName) |
String |
generatePositionByDeptDesig(org.egov.infra.admin.master.entity.Department department,
org.egov.pims.commons.Designation designation) |
List<org.egov.pims.commons.Position> |
getAllPositions() |
List<org.egov.pims.commons.Position> |
getAllPositionsByDeptDesigId(Long deptDesigId) |
List<org.egov.pims.commons.Position> |
getAllPositionsByNameLike(String name) |
org.egov.pims.commons.Position |
getCurrentPositionForUser(Long userId) |
List<org.egov.pims.commons.Position> |
getPageOfPositions(Long departmentId,
Long designationId) |
org.egov.pims.commons.Position |
getPositionById(Long posId) |
org.egov.pims.commons.Position |
getPositionByName(String name) |
org.egov.pims.commons.Position |
getPositionByUserId(Long userId)
Returns employee position for user
|
List<org.egov.pims.commons.Position> |
getPositionsByDepartment(Long deptId) |
List<org.egov.pims.commons.Position> |
getPositionsByDepartmentAndDesignation(Long deptId,
Long desigId) |
List<org.egov.pims.commons.Position> |
getPositionsByDepartmentAndDesignationForGivenRange(Long departmentId,
Long designationId,
Date givenDate) |
List<org.egov.pims.commons.Position> |
getPositionsByDesignation(Long desigId) |
List<org.egov.pims.commons.Position> |
getPositionsForDeptDesigAndName(Long departmentId,
Long designationId,
Date fromDate,
Date toDate,
String posName) |
List<org.egov.pims.commons.Position> |
getPositionsForDeptDesigAndNameLike(Long departmentId,
Long designationId,
String posName) |
List<org.egov.pims.commons.Position> |
getPositionsForEmployee(Long employeeId)
Returns list of positions for an employee irrespective of assignment date
|
List<org.egov.pims.commons.Position> |
getPositionsForEmployee(Long employeeId,
Date forDate)
Return list of positions of an employee for employee id and given date, if null is passed to given date then it is replaced
with current date
|
org.egov.pims.commons.Position |
getPrimaryAssignmentPositionForEmp(Long empId)
Returns primary assignment position for employee id
|
org.egov.pims.commons.Position |
getSuperiorPositionByObjectAndObjectSubTypeAndPositionFrom(Integer objectId,
String objectSubType,
Long posId)
Returns the superior employee position
|
org.egov.pims.commons.Position |
getSuperiorPositionByObjectTypeAndPositionFrom(Integer objectId,
Long posId)
Returns the superior employee position
|
Integer |
getTotalOutSourcedPosts(Long departmentId,
Long designationId) |
Integer |
getTotalSanctionedPosts(Long departmentId,
Long designationId) |
void |
updatePosition(org.egov.pims.commons.Position position) |
boolean |
validatePosition(org.egov.pims.commons.Position position) |
@Autowired public PositionMasterService(PositionMasterRepository positionMasterRepository)
@Transactional public void createPosition(org.egov.pims.commons.Position position)
@Transactional public void updatePosition(org.egov.pims.commons.Position position)
@Transactional public void deletePosition(org.egov.pims.commons.Position position)
public org.egov.pims.commons.Position getPositionByName(String name)
public org.egov.pims.commons.Position getPositionById(Long posId)
public List<org.egov.pims.commons.Position> getAllPositions()
public List<org.egov.pims.commons.Position> getAllPositionsByNameLike(String name)
public List<org.egov.pims.commons.Position> getAllPositionsByDeptDesigId(Long deptDesigId)
public List<org.egov.pims.commons.Position> getPositionsForDeptDesigAndName(Long departmentId, Long designationId, Date fromDate, Date toDate, String posName)
public List<org.egov.pims.commons.Position> getPositionsForDeptDesigAndNameLike(Long departmentId, Long designationId, String posName)
public boolean validatePosition(org.egov.pims.commons.Position position)
public List<org.egov.pims.commons.Position> getPageOfPositions(Long departmentId, Long designationId)
public List<org.egov.pims.commons.Position> findByNameContainingIgnoreCase(String positionName)
public Integer getTotalOutSourcedPosts(Long departmentId, Long designationId)
public Integer getTotalSanctionedPosts(Long departmentId, Long designationId)
public List<org.egov.pims.commons.Position> getPositionsByDepartmentAndDesignationForGivenRange(Long departmentId, Long designationId, Date givenDate)
public org.egov.pims.commons.Position getCurrentPositionForUser(Long userId)
public org.egov.pims.commons.Position getSuperiorPositionByObjectTypeAndPositionFrom(Integer objectId, Long posId)
objectId - posId - public org.egov.pims.commons.Position getSuperiorPositionByObjectAndObjectSubTypeAndPositionFrom(Integer objectId, String objectSubType, Long posId)
objectId - objectSubType - posId - public List<org.egov.pims.commons.Position> getPositionsForEmployee(Long employeeId, Date forDate)
employeeId - forDate - public List<org.egov.pims.commons.Position> getPositionsForEmployee(Long employeeId)
empId - public org.egov.pims.commons.Position getPositionByUserId(Long userId)
userId - public org.egov.pims.commons.Position getPrimaryAssignmentPositionForEmp(Long empId)
empId - public String generatePositionByDeptDesig(org.egov.infra.admin.master.entity.Department department, org.egov.pims.commons.Designation designation)
public List<org.egov.pims.commons.Position> getPositionsByDepartment(Long deptId)
public List<org.egov.pims.commons.Position> getPositionsByDesignation(Long desigId)
Copyright © 2015–2017 eGovernments Foundation. All rights reserved.