@RequestMapping(value = "/findById", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findById(@RequestBody FindByBean findByBean)
     throws SpartanPersistenceException, Exception {
   com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean();
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   klickakartk.app.shared.contacts.CommunicationGroup lstcommunicationgroup =
       communicationGrouprepo.findById((String) findByBean.getFindKey());
   responseBean.add("success", true);
   responseBean.add("message", "Successfully retrived ");
   responseBean.add("data", lstcommunicationgroup);
   return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus);
 }
 @RequestMapping(value = "/findByDeptCode", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findByDeptCode(@RequestBody FindByBean findByBean)
     throws SpartanPersistenceException, Exception {
   com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean();
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   List<klickakartk.app.shared.onlineshopping.ItemBrand> lstitembrand =
       itemBrandrepo.findByDeptCode((java.lang.String) findByBean.getFindKey());
   responseBean.add("success", true);
   responseBean.add("message", "Successfully retrived ");
   responseBean.add("data", lstitembrand);
   return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus);
 }
 @RequestMapping(value = "/findById", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findById(@RequestBody FindByBean findByBean)
     throws SpartanPersistenceException, Exception {
   com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean();
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   sales.app.shared.authentication.PasswordPolicy lstpasswordpolicy =
       passwordPolicyrepo.findById((String) findByBean.getFindKey());
   responseBean.add("success", true);
   responseBean.add("message", "Successfully retrived ");
   responseBean.add("data", lstpasswordpolicy);
   return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus);
 }
Esempio n. 4
0
 @RequestMapping(value = "/findById", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findById(@RequestBody FindByBean findByBean)
     throws SpartanPersistenceException, Exception {
   com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean();
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   try {
     project1.app.shared.location.Taluka lsttaluka =
         talukarepo.findById((String) findByBean.getFindKey());
     responseBean.add("success", true);
     responseBean.add("message", "Successfully retrived ");
     responseBean.add("data", lsttaluka);
   } catch (org.springframework.transaction.TransactionException e) {
     throw new com.athena.framework.server.exception.repository.SpartanTransactionException(
         "can not find ID", e.getRootCause());
   }
   return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus);
 }
 @RequestMapping(value = "/findByRelationCode", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findByRelationCode(@RequestBody FindByBean findByBean)
     throws SpartanPersistenceException, Exception {
   com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean();
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   try {
     List<com.app.shared.issuetrackerboundedcontext.issuetracker.IssueRelation> lstissuerelation =
         issueRelationrepo.findByRelationCode((java.lang.String) findByBean.getFindKey());
     responseBean.add("success", true);
     responseBean.add("message", "Successfully retrived ");
     responseBean.add("data", lstissuerelation);
   } catch (org.springframework.transaction.TransactionException e) {
     throw new com.athena.framework.server.exception.repository.SpartanTransactionException(
         "can not find ID", e.getRootCause());
   }
   return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus);
 }
 @RequestMapping(value = "/findByInputTypeId", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findByInputTypeId(@RequestBody FindByBean findByBean)
     throws SpartanPersistenceException, Exception {
   com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean();
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   try {
     List<singx.app.shared.singx.CfgMasterAddress> lstcfgmasteraddress =
         cfgMasterAddressrepo.findByInputTypeId((java.lang.Integer) findByBean.getFindKey());
     responseBean.add("success", true);
     responseBean.add("message", "Successfully retrived ");
     responseBean.add("data", lstcfgmasteraddress);
   } catch (org.springframework.transaction.TransactionException e) {
     throw new com.athena.framework.server.exception.repository.SpartanTransactionException(
         "can not find ID", e.getCause());
   }
   return new org.springframework.http.ResponseEntity<ResponseBean>(responseBean, httpStatus);
 }
 @RequestMapping(value = "/findById", method = RequestMethod.POST)
 @Override
 public HttpEntity<ResponseBean> findById(@RequestBody FindByBean findByBean) throws Exception {
   org.springframework.http.HttpStatus httpStatus = org.springframework.http.HttpStatus.OK;
   com.basehr.app.shared.aaaboundedcontext.authentication.UserAccessDomain lstuseraccessdomain =
       userAccessDomainrepo.findById((java.lang.String) findByBean.getFindKey());
   AppAlarm appAlarm = Log.getAlarm("null");
   com.athena.framework.server.bean.ResponseBean responseBean = new ResponseBean(appAlarm);
   responseBean.add("message", String.format(appAlarm.getMessage(), "UserAccessDomain"));
   responseBean.add("data", lstuseraccessdomain);
   Log.out.println(
       "null",
       runtimeLogInfoHelper.getRequestHeaderBean(),
       "UserAccessDomainServiceImpl",
       "save",
       "UserAccessDomain");
   return new org.springframework.http.ResponseEntity<ResponseBean>(
       responseBean, HttpStatus.valueOf(appAlarm.getAlarmStatus()));
 }