Fork me on GitHub

Résultats CPD

Le document suivant contient les résultats de l'inspection CPD CPD 6.13.0.

Duplicatas

Fichier Ligne
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentFormResourcesJspBean.java 333
fr/paris/lutece/plugins/appointment/modules/resource/web/AppointmentFormResourcesJspBean.java 427
    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, getUser( ) ) )
        {
            throw new AccessDeniedException( AppointmentResourceIdService.PERMISSION_MODIFY_FORM );
        }