Пример #1
0
 @POST
 @Consumes(MediaType.APPLICATION_JSON)
 @Produces(MediaType.APPLICATION_JSON)
 @Path("/updatePartnerProfile/{user}/{token}")
 public Response updatePartnerProfile(
     ProfileData profileData, @PathParam("token") String token, @PathParam("user") String name)
     throws Exception {
   String sectionName = profileData.getSectionName();
   String dataXml = FiinfraUtility.getProfileDataXML(profileData, sectionName);
   int buId = profileData.getBuId();
   int partyId = profileData.getPartyId();
   int recordCount =
       partnerService.updatePartnerProfile(
           sectionName, dataXml, buId, partyId, profileData.getLastModifiedBy());
   BaseResponse<Integer> br = new BaseResponse<>();
   br.setResponseObject(recordCount);
   response = FiinfraResponseBuilder.getSuccessResponse(br, null);
   return response;
 }