@Test public void register() { RegisterPatientAction action = getTestAction(); PLCSessionHelper.setPatientDemographics(TestPLCEntityFactory.createPatientDemographics(), action.getSession()); PLCUser user = TestPLCEntityFactory.createPLCUser(); action.setUser(user); assertEquals(ActionSupport.SUCCESS, action.register()); }
public String register() { PatientAccount account = new PatientAccount(); account.setPlcUser(user); account.setPatientDemographics(PLCSessionHelper.getPatientDemographics(getSession())); ChallengeQuestion qa = new ChallengeQuestion(); qa.setQuestion(challengeQuestion); qa.setAnswer(challengeAnswer); account.getChallengeQuestions().add(qa); patientService.registerPatient(account); return SUCCESS; }
RegisterPatientAction extends ConsentWizardAction { public String register() { PatientAccount account = new PatientAccount(); account.setPlcUser(user); account.setPatientDemographics(PLCSessionHelper.getPatientDemographics(getSession())); ChallengeQuestion qa = new ChallengeQuestion(); qa.setQuestion(challengeQuestion); qa.setAnswer(challengeAnswer); account.getChallengeQuestions().add(qa); patientService.registerPatient(account); return SUCCESS; } }
RegisterPatientAction extends ConsentWizardAction { public String register() { PatientAccount account = new PatientAccount(); account.setPlcUser(user); account.setPatientDemographics(PLCSessionHelper.getPatientDemographics(getSession())); ChallengeQuestion qa = new ChallengeQuestion(); qa.setQuestion(challengeQuestion); qa.setAnswer(challengeAnswer); account.getChallengeQuestions().add(qa); patientService.registerPatient(account); return SUCCESS; } @Inject  RegisterPatientAction(PatientInformationService patientService); }
RegisterPatientAction extends ConsentWizardAction { public String register() { PatientAccount account = new PatientAccount(); account.setPlcUser(user); account.setPatientDemographics(PLCSessionHelper.getPatientDemographics(getSession())); ChallengeQuestion qa = new ChallengeQuestion(); qa.setQuestion(challengeQuestion); qa.setAnswer(challengeAnswer); account.getChallengeQuestions().add(qa); patientService.registerPatient(account); return SUCCESS; } @Inject  RegisterPatientAction(PatientInformationService patientService); String register(); @Override void validate(); PLCUser getUser(); void setUser(PLCUser user); String getRepeatPassword(); void setRepeatPassword(String repeatPassword); String getRepeatEmail(); void setRepeatEmail(String repeatEmail); String getChallengeQuestion(); void setChallengeQuestion(String challengeQuestion); String getChallengeAnswer(); void setChallengeAnswer(String challengeAnswer); }
RegisterPatientAction extends ConsentWizardAction { public String register() { PatientAccount account = new PatientAccount(); account.setPlcUser(user); account.setPatientDemographics(PLCSessionHelper.getPatientDemographics(getSession())); ChallengeQuestion qa = new ChallengeQuestion(); qa.setQuestion(challengeQuestion); qa.setAnswer(challengeAnswer); account.getChallengeQuestions().add(qa); patientService.registerPatient(account); return SUCCESS; } @Inject  RegisterPatientAction(PatientInformationService patientService); String register(); @Override void validate(); PLCUser getUser(); void setUser(PLCUser user); String getRepeatPassword(); void setRepeatPassword(String repeatPassword); String getRepeatEmail(); void setRepeatEmail(String repeatEmail); String getChallengeQuestion(); void setChallengeQuestion(String challengeQuestion); String getChallengeAnswer(); void setChallengeAnswer(String challengeAnswer);  }