コード例 #1
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;
   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);
 }