use of org.cerberus.crud.entity.AppService in project cerberus-source by cerberustesting.
the class AppServiceService method readByKeyWithDependency.
@Override
public AnswerItem readByKeyWithDependency(String key, String activedetail) {
AnswerItem answerAppService = this.readByKey(key);
AppService appService = (AppService) answerAppService.getItem();
try {
AnswerList content = appServiceContentService.readByVarious(key, activedetail);
appService.setContentList((List<AppServiceContent>) content.getDataList());
AnswerList header = appServiceHeaderService.readByVarious(key, activedetail);
appService.setHeaderList((List<AppServiceHeader>) header.getDataList());
answerAppService.setItem(appService);
} catch (Exception e) {
LOG.error(e);
}
return answerAppService;
}
Aggregations