The following document contains the results of PMD's CPD 6.13.0.
File | Line |
---|---|
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentFormResourcesJspBean.java | 334 |
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentFormResourcesJspBean.java | 428 |
public String doModifyFormResourceType( HttpServletRequest request ) throws AccessDeniedException { String strIdFormResourceType = request.getParameter( PARAMETER_ID_FORM_RESOURCE_TYPE ); if ( StringUtils.isEmpty( strIdFormResourceType ) || !StringUtils.isNumeric( strIdFormResourceType ) ) { return redirect( request, AppointmentFormJspBean.getURLManageAppointmentForms( request ) ); } int nIdFormResourceType = Integer.parseInt( strIdFormResourceType ); AppointmentFormResourceType formResourceType = AppointmentFormResourceTypeHome.findByPrimaryKey( nIdFormResourceType ); if ( formResourceType == null ) { return redirect( request, AppointmentFormJspBean.getURLManageAppointmentForms( request ) ); } if ( !RBACService.isAuthorized( AppointmentFormDTO.RESOURCE_TYPE, Integer.toString( formResourceType.getIdAppointmentForm( ) ), AppointmentResourceIdService.PERMISSION_MODIFY_FORM, (User) getUser( ) ) ) { throw new AccessDeniedException( AppointmentResourceIdService.PERMISSION_MODIFY_FORM ); } |