public void addGroupOwnership(StepsovcCase stepsovcCase) { Beneficiary beneficiary = allBeneficiaries.findBeneficiaryByCode(stepsovcCase.getBeneficiary_code()); if (beneficiary != null) { commcareGateway.addGroupOwnership( populateBeneficiaryCase(stepsovcCase, beneficiary), stepsovcCase.getFacility_code()); } }
public void changeOwnershipForRequestOwnershipCase(StepsovcCase stepsovcCase) { commcareGateway.addGroupOwnership( new BeneficiaryMapper().createOwnershipInfo(stepsovcCase), CommcareGateway.ALL_USERS_GROUP); }