public ActionForward deleteProcedureGroupLocation( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IacucProtocolForm protocolForm = (IacucProtocolForm) form; IacucProtocolStudyGroupBean selectedIacucProtocolStudyGroupBean = getSelectedProcedureBean(request, protocolForm.getIacucProtocolDocument()); IacucProtocolStudyGroup selectedStudyGroup = getSelectedStudyGroup(request, selectedIacucProtocolStudyGroupBean); int selectedLocationIndex = getSelectedBeanIndex(request, BEAN_LOCATION_FIND_PARAM_START, FIND_PARAM_END); IacucProtocolStudyGroupLocation selectedStudyGroupLocation = selectedStudyGroup.getIacucProcedureLocationResponsibleList().get(selectedLocationIndex); String groupName = selectedStudyGroup.getIacucProtocolSpecies().getGroupAndSpecies(); String locationName = selectedStudyGroupLocation.getIacucLocationName().getLocationName(); return confirm( buildParameterizedConfirmationQuestion( mapping, form, request, response, CONFIRM_DELETE_PROCEDURE_GROUP_LOCATION_KEY, KeyConstants.QUESTION_PROCEDURE_GROUP_LOCATION_DELETE_CONFIRMATION, new String[] {groupName, locationName}), CONFIRM_DELETE_PROCEDURE_GROUP_LOCATION_KEY, ""); }
public ActionForward deleteProtocolStudyGroup( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IacucProtocolForm protocolForm = (IacucProtocolForm) form; IacucProtocolStudyGroupBean selectedIacucProtocolStudyGroupBean = getSelectedProcedureBean(request, protocolForm.getIacucProtocolDocument()); IacucProtocolStudyGroup selectedStudyGroup = getSelectedStudyGroup(request, selectedIacucProtocolStudyGroupBean); String speciesAndGroups = selectedStudyGroup.getIacucProtocolSpecies().getGroupAndSpecies(); return deleteProcedureStudyGroup( mapping, protocolForm, request, response, speciesAndGroups, false); }
public ActionForward deleteProcedureGroupPersonResponsible( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IacucProtocolForm protocolForm = (IacucProtocolForm) form; IacucProtocolStudyGroupBean selectedIacucProtocolStudyGroupBean = getSelectedProcedureBean(request, protocolForm.getIacucProtocolDocument()); IacucProtocolStudyGroup selectedStudyGroup = getSelectedStudyGroup(request, selectedIacucProtocolStudyGroupBean); int selectedPersonIndex = getSelectedBeanIndex(request, BEAN_PERSON_FIND_PARAM_START, FIND_PARAM_END); IacucProcedurePersonResponsible selectedPersonResponsible = selectedStudyGroup.getIacucProcedurePersonResponsibleList().get(selectedPersonIndex); getIacucProtocolProcedureService() .deleteProcedureGroupPersonResponsible( selectedStudyGroup, selectedPersonResponsible, getIacucProtocol(form)); return mapping.findForward(Constants.MAPPING_BASIC); }
public ActionForward addProcedureGroupLocation( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IacucProtocolForm protocolForm = (IacucProtocolForm) form; IacucProtocolStudyGroupBean selectedIacucProtocolStudyGroupBean = getSelectedProcedureBean(request, protocolForm.getIacucProtocolDocument()); IacucProtocolStudyGroup selectedStudyGroup = getSelectedStudyGroup(request, selectedIacucProtocolStudyGroupBean); IacucProtocolStudyGroupLocation newStudyGroupLocation = selectedStudyGroup.getNewIacucProtocolStudyGroupLocation(); if (applyRules( new AddProcedureLocationEvent( protocolForm.getIacucProtocolDocument(), newStudyGroupLocation))) { getIacucProtocolProcedureService() .addProcedureGroupLocation( newStudyGroupLocation, selectedStudyGroup, getIacucProtocol(protocolForm)); } return mapping.findForward(Constants.MAPPING_BASIC); }
public ActionForward confirmDeleteProcedureGroupLocation( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { Object question = request.getParameter(KRADConstants.QUESTION_INST_ATTRIBUTE_NAME); if (CONFIRM_DELETE_PROCEDURE_GROUP_LOCATION_KEY.equals(question)) { IacucProtocolForm protocolForm = (IacucProtocolForm) form; IacucProtocolStudyGroupBean selectedIacucProtocolStudyGroupBean = getSelectedProcedureBean(request, protocolForm.getIacucProtocolDocument()); IacucProtocolStudyGroup selectedStudyGroup = getSelectedStudyGroup(request, selectedIacucProtocolStudyGroupBean); int selectedLocationIndex = getSelectedBeanIndex(request, BEAN_LOCATION_FIND_PARAM_START, FIND_PARAM_END); IacucProtocolStudyGroupLocation selectedStudyGroupLocation = selectedStudyGroup.getIacucProcedureLocationResponsibleList().get(selectedLocationIndex); getIacucProtocolProcedureService() .deleteProcedureGroupLocation( selectedStudyGroup, selectedStudyGroupLocation, getIacucProtocol(form)); } return mapping.findForward(IacucConstants.PROCEDURE_LOCATION); }