@Service @Transactional(readOnly=true) public class AccountEntityService extends Object implements EntityTypeService
| Constructor and Description |
|---|
AccountEntityService(AccountEntityRepository accountEntityRepository) |
| Modifier and Type | Method and Description |
|---|---|
AccountEntity |
create(AccountEntity accountEntity) |
List<? extends EntityType> |
filterActiveEntities(String filterKey,
int maxRecords,
Integer accountDetailTypeId)
Returns the list of active entities filtered using the given filter key.
|
List<AccountEntity> |
findAll() |
AccountEntity |
findByCode(String code) |
AccountEntity |
findByName(String name) |
AccountEntity |
findOne(Integer id) |
List<? extends EntityType> |
getAllActiveEntities(Integer accountDetailTypeId)
to get the list of active Entities that will used for posting.
|
List |
getAssetCodesForProjectCode(Integer accountdetailkey)
Returns the list of Asset Codes linked to accountdetailkey (projectCodeId).
|
List<? extends EntityType> |
getEntitiesById(List<Long> idsList) |
List<AccountEntity> |
search(AccountEntity accountEntity) |
AccountEntity |
update(AccountEntity accountEntity) |
List<? extends EntityType> |
validateEntityForRTGS(List<Long> idsList) |
@Autowired public AccountEntityService(AccountEntityRepository accountEntityRepository)
@Transactional public AccountEntity create(AccountEntity accountEntity)
@Transactional public AccountEntity update(AccountEntity accountEntity)
public List<AccountEntity> findAll()
public AccountEntity findByName(String name)
public AccountEntity findByCode(String code)
public AccountEntity findOne(Integer id)
public List<AccountEntity> search(AccountEntity accountEntity)
public List<? extends 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<? extends 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<? extends 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.