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); }