@Service @Transactional(readOnly=true) public class DrawingOfficerService extends Object implements EntityTypeService
| Constructor and Description |
|---|
DrawingOfficerService(DrawingOfficerRepository drawingOfficerRepository) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(DrawingOfficer officer) |
void |
delete(DrawingOfficer officer) |
List<? extends EntityType> |
filterActiveEntities(String filterKey,
int maxRecords,
Integer accountDetailTypeId)
Returns the list of active entities filtered using the given filter key.
|
DrawingOfficer |
findById(Long id)
Get drawing officer object by id
|
List<EntityType> |
getAllActiveEntities(Integer accountDetailTypeId)
to get the list of active Entities that will used for posting.
|
List<DrawingOfficer> |
getAllDrawingOfficers() |
List |
getAssetCodesForProjectCode(Integer accountdetailkey)
Returns the list of Asset Codes linked to accountdetailkey (projectCodeId).
|
DrawingOfficer |
getDrawingOfficerByCode(String code)
Get drawing officer by drawing officer code
|
DrawingOfficer |
getDrawingOfficerByName(String name)
Get drawing officer object by drawing officer name
|
DrawingOfficer |
getDrawingOfficerByPosition(Long posId)
Get drawing officer associated with a particular position
|
List<EntityType> |
getEntitiesById(List<Long> idsList) |
List<DrawingOfficer> |
getListOfDrawingOfficerByCodeLike(String code)
Get List of drawing officer objects containing given code string
|
List<DrawingOfficer> |
getListOfDrawingOfficersByNameLike(String name)
Get List of drawing officer objects containing given name string
|
void |
update(DrawingOfficer officer) |
List<EntityType> |
validateEntityForRTGS(List<Long> idsList) |
@Autowired public DrawingOfficerService(DrawingOfficerRepository drawingOfficerRepository)
public List<DrawingOfficer> getAllDrawingOfficers()
public DrawingOfficer findById(Long id)
id - public DrawingOfficer getDrawingOfficerByName(String name)
name - public DrawingOfficer getDrawingOfficerByCode(String code)
code - public DrawingOfficer getDrawingOfficerByPosition(Long posId)
posId - public List<DrawingOfficer> getListOfDrawingOfficersByNameLike(String name)
name - public List<DrawingOfficer> getListOfDrawingOfficerByCodeLike(String code)
code - @Transactional public void create(DrawingOfficer officer)
@Transactional public void update(DrawingOfficer officer)
@Transactional public void delete(DrawingOfficer officer)
public List<EntityType> getAllActiveEntities(Integer accountDetailTypeId)
EntityTypeServicegetAllActiveEntities in interface EntityTypeServicepublic List<? extends EntityType> filterActiveEntities(String filterKey, int maxRecords, Integer accountDetailTypeId)
EntityTypeServicefilterActiveEntities in interface EntityTypeServicefilterKey - The filter keymaxRecords - Maximum number of records to be returned. If this is passed as
-1, the method should return all the records.accountDetailTypeId - The account detail type idpublic List getAssetCodesForProjectCode(Integer accountdetailkey) throws org.egov.infra.validation.exception.ValidationException
EntityTypeServicegetAssetCodesForProjectCode in interface EntityTypeServiceorg.egov.infra.validation.exception.ValidationExceptionpublic List<EntityType> validateEntityForRTGS(List<Long> idsList) throws org.egov.infra.validation.exception.ValidationException
validateEntityForRTGS in interface EntityTypeServiceorg.egov.infra.validation.exception.ValidationException - returns only those which are invalid for RTGSPaymentpublic List<EntityType> getEntitiesById(List<Long> idsList) throws org.egov.infra.validation.exception.ValidationException
getEntitiesById in interface EntityTypeServiceorg.egov.infra.validation.exception.ValidationException - will return entities for the given ids which are same as accountdetailkeyidCopyright © 2015–2017 eGovernments Foundation. All rights reserved.