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/ctv/util/Utils.java 68
fr/paris/lutece/plugins/ctv/util/Utils.java 275
    public static void controlRequiredFields( String key, Object objectToControl, HashMap<String, List<String>> requiredFielsInError )
    {
        if ( objectToControl != null )
        {
            List<String> requiredFieldsNameInError = new ArrayList<String>( );
            Class<?> class1 = objectToControl.getClass( );
            List<Field> fieldList = new ArrayList<Field>( );

            fieldList = getAllFields( fieldList, class1 );

            // fieldList.addAll(Arrays.asList(class1.getSuperclass().getDeclaredFields()));
            // fieldList.addAll(Arrays.asList(class1.getDeclaredFields()));

            for ( Field field : fieldList )
            {
                if ( field.isAnnotationPresent( Required.class ) )
                {
                    Required annotationRequired = field.getAnnotation( Required.class );
                    String conditionalPropertyName = annotationRequired.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, Required.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, Required.class );
                    }
                } else if ( field.isAnnotationPresent( NotNull.class ) )
                {
                    NotNull annotationNotNull = field.getAnnotation( NotNull.class );
                    String conditionalPropertyName = annotationNotNull.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, NotNull.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, NotNull.class );
                    }

                }
            }
            if ( !requiredFieldsNameInError.isEmpty( ) )
            {
                requiredFielsInError.put( key, requiredFieldsNameInError );
            }
        }
    }
Fichier Ligne
fr/paris/lutece/plugins/ctv/service/AbstractTableauDeBordControllerService.java 194
fr/paris/lutece/plugins/ctv/service/TableauDeBordConcessionnaireControllerService.java 420
                    searchBean.setIdsUnit( setUnitIds( user ) );
                    searchBean.setAlert( true );
                }
                else
                {
                    if(( request.getParameter( "typeDemande" ) != null ) && !"".equals( request.getParameter( "typeDemande" ) ))
                    {
                        searchBean.setTypesDemande( new TypeDemande [ ] {
                                TypeDemande.valueOf( request.getParameter( "typeDemande" ) )
                        } );
                    }
                    else
                    {
                        searchBean.setTypesDemande( getTypesDemandes( ) );
                    }

                    statusDemande.addAll( getStatusBySearchCriteria( ) );

                    ConvertUtils.register( new CustomDateConverter( ), Date.class );
                    ConvertUtils.register( new EnumConverter( ), StatutEmprise.class );

                    populate( searchBean, request );

                    if ( searchBean.getNomIntervenant( ) != null )
                    {
                        String nomIntervenant = searchBean.getNomIntervenant( );
                        nomIntervenant = nomIntervenant.replace( "\"", "&quot;" );
                        searchBean.setNomIntervenant( nomIntervenant );
                    }

                    if ( searchBean.getNumProjetIntervenant( ) != null )
                    {
                        String numIntervenant = searchBean.getNumProjetIntervenant( );
                        numIntervenant = numIntervenant.replace( "\"", "&quot;" );
                        searchBean.setNumProjetIntervenant( numIntervenant );
                    }

                    if ( searchBean.getNomVoie( ) != null )
                    {
                        String nomVoie = searchBean.getNomVoie( );
                        nomVoie = nomVoie.replace( "\"", "&quot;" );
                        searchBean.setNomVoie( nomVoie );
                    }

                    model.put( "searchCriteria", searchBean );

                    StatutDemande [ ] array = new StatutDemande [ statusDemande.size( )];
Fichier Ligne
fr/paris/lutece/plugins/ctv/bo/controller/tdb/TableauDeBordJspBean.java 129
fr/paris/lutece/plugins/ctv/service/CtvProfileService.java 114
    }

    private String selectDefaultProfileByPriority( HttpServletRequest request, List<String> userProfiles )
    {
        String strSelectedProfile = "";
        if ( userProfiles.size( ) > 1 )
        {
            String selectedProfileInRequest = request.getParameter( "profile_default" );
            TypeProfileCtv selectedProfil = null;
            if ( selectedProfileInRequest == null
                    || ( selectedProfileInRequest != null && !userProfiles.contains( TypeProfileCtv.getEnum( selectedProfileInRequest ) ) ) )
            {

                if ( userProfiles.contains( TypeProfileCtv.ADMIN_FONC.getKey( ) ) )
                {
                    selectedProfil = TypeProfileCtv.ADMIN_FONC;
                }
                else
                    if ( userProfiles.contains( TypeProfileCtv.SUPERVISEUR_2.getKey( ) ) )
                    {
                        selectedProfil = TypeProfileCtv.SUPERVISEUR_2;
                    }
                    else
                        if ( userProfiles.contains( TypeProfileCtv.SUPERVISEUR_1.getKey( ) ) )
                        {
                            selectedProfil = TypeProfileCtv.SUPERVISEUR_1;
                        }
                        else
                            if ( userProfiles.contains( TypeProfileCtv.INSTRUCTEUR.getKey( ) ) )
                            {
                                selectedProfil = TypeProfileCtv.INSTRUCTEUR;
                            }
                            else
                                if ( userProfiles.contains( TypeProfileCtv.CONCESSIONNAIRE.getKey( ) ) )
                                {
                                    selectedProfil = TypeProfileCtv.CONCESSIONNAIRE;
                                }

                if ( selectedProfil != null )
                {
                    request.getSession( ).setAttribute( "profile_default", selectedProfil );
                    strSelectedProfile = selectedProfil.getKey( );
                }
            }
        }
        else
        {
            strSelectedProfile = userProfiles.get( 0 );
        }

        return strSelectedProfile;
    }
Fichier Ligne
fr/paris/lutece/plugins/ctv/service/FormulaireDemandeIntentionServiceImpl.java 247
fr/paris/lutece/plugins/ctv/service/FormulaireDemandeOccupationServiceImpl.java 154
            for ( Emprise emprise : emprises )
            {
                Integer numEmprise = emprise.getEmpriseNumero( );

                if ( emprise.getEmpriseType( ).equals( TypeEmprise.ECHAFAUDAGE ) )
                {
                    int empriseId = emprise.getEmpriseId( );
                    DetailsEmprise detailsEmprise = empriseService.findDetailsEmpriseById( empriseId );
                    if ( null != detailsEmprise )
                    {
                        List<Object> msgArgs = new ArrayList<>( );
                        msgArgs.add( numEmprise );
                        Utils.checkFields( numEmprise.toString( ), detailsEmprise, emprisesInError, IEchafaudageValidationGroup.class, msgArgs );
                    }
                }

                DetailsEmprise detailsEmprise = empriseService.findDetailsEmpriseById( emprise.getEmpriseId( ) );
                emprise.setDetails( detailsEmprise );
                emprisesInError.putAll( putMessagesErrorsForEmprise( emprise, detailsEmprise, emprisesInError, getNumDemande( request ) ) );
                Utils.controlRequiredFields( "emprise_" + numEmprise, emprise, requiredFielsEmprisesInError );
                /*
                 * added control fields intention emprise step
                 */
                if ( ( request.getParameter( "emprise_id" ) != null )
                        && ( emprise.getEmpriseId( ) == Integer.parseInt( request.getParameter( "emprise_id" ) ) ) )
                {
                    Utils.controlRequiredFields( ETAPE_EMPRISE, emprise, requiredFielsEmprisesError );
                    requiredFielsInError.putAll( requiredFielsEmprisesError );

                }

            }
Fichier Ligne
fr/paris/lutece/plugins/ctv/bo/controller/demandes/intervention/ValidationJspBean.java 219
fr/paris/lutece/plugins/ctv/controller/front/ValidationApp.java 172
        ctvDemandeUploadHandler.removeFilesInSession( request );
        InfosSuperviseur oldInfosSuperviseur = infosSuperviseurService.findByNumDemande( demandeId );
        InfosSuperviseur infos = new InfosSuperviseur( );
        if ( oldInfosSuperviseur == null )
        {
            infos.setInfosSuperviseurPrescriptionParticuliere( DatastoreService
                    .getDataValue( "sitelabels.site_property.bloc.qualification.prescription.particuliere", "prescriptions particulières par défaut" ) );
            infosSuperviseurService.update( infos, demandeId );
        }
        else
            if ( oldInfosSuperviseur.getInfosSuperviseurPrescriptionParticuliere( ) == null )
            {
                oldInfosSuperviseur.setInfosSuperviseurPrescriptionParticuliere( DatastoreService
                        .getDataValue( "sitelabels.site_property.bloc.qualification.prescription.particuliere", "prescriptions particulières par défaut" ) );
                infosSuperviseurService.update( oldInfosSuperviseur, demandeId );
            }
        // màj empriseAEnvoyerASavoi pour les demandes dont le demandeur siret est non taxable
        String demandeurSiret = entiteDemandeService.getDemandeurByNumDemande( demandeId ).getSirenSiret( );
        String numSiretNonTaxables = DatastoreService.getDataValue( "parametre.numeric.flux.savoi2.siret.non.taxable", "" );
        
        if ( ( ( demandeurSiret != null ) && !"".equals(demandeurSiret) ) && numSiretNonTaxables.contains( demandeurSiret ) ) {      
            empriseService.updateEmpriseConvention( demandeId, false );
        }
        else if ( premiereSoumission && Boolean.TRUE.equals(demande.isDemandeConvention()) )
        {
        	emailTask.sendEmail( CtvConstants.EMAIL_SOUMISSION_CONVENTION, demandeId, request.getLocale( ), request, -1 );
        }
    }
Fichier Ligne
fr/paris/lutece/plugins/ctv/util/Utils.java 83
fr/paris/lutece/plugins/ctv/util/Utils.java 242
                if ( field.isAnnotationPresent( Required.class ) )
                {
                    Required annotationRequired = field.getAnnotation( Required.class );
                    String conditionalPropertyName = annotationRequired.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, Required.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, Required.class );
                    }
                } else if ( field.isAnnotationPresent( NotNull.class ) )
                {
                    NotNull annotationNotNull = field.getAnnotation( NotNull.class );
                    String conditionalPropertyName = annotationNotNull.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, NotNull.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, NotNull.class );
                    }

                }
            }
            if ( !requiredFieldsNameInError.isEmpty( ) )
            {
                requiredFielsInError.put( key, requiredFieldsNameInError );
            }
        }
    }

    public static void controlRequiredFieldsIntExecutant( String key, Object objectToControl, HashMap<String, List<String>> requiredFielsInError )
Fichier Ligne
fr/paris/lutece/plugins/ctv/util/Utils.java 242
fr/paris/lutece/plugins/ctv/util/Utils.java 291
                if ( field.isAnnotationPresent( Required.class ) )
                {
                    Required annotationRequired = field.getAnnotation( Required.class );
                    String conditionalPropertyName = annotationRequired.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, Required.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, Required.class );
                    }
                } else if ( field.isAnnotationPresent( NotNull.class ) )
                {
                    NotNull annotationNotNull = field.getAnnotation( NotNull.class );
                    String conditionalPropertyName = annotationNotNull.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, NotNull.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, NotNull.class );
                    }

                }
            }
            if ( !requiredFieldsNameInError.isEmpty( ) )
            {

                requiredFielsInError.put( key, requiredFieldsNameInError );
            }
        }
    }
Fichier Ligne
fr/paris/lutece/plugins/ctv/util/Utils.java 134
fr/paris/lutece/plugins/ctv/util/Utils.java 187
                            || ( field.getName( ) == "reprensentantLieuNaissance" ) || ( field.getName( ) == "reprensentantDateNaissance" ) )
                    {
                        continue;
                    }
                    Required annotationRequired = field.getAnnotation( Required.class );
                    String conditionalPropertyName = annotationRequired.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, Required.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, Required.class );
                    }
                } else if ( field.isAnnotationPresent( NotNull.class ) )
                {
                    NotNull annotationNotNull = field.getAnnotation( NotNull.class );
                    String conditionalPropertyName = annotationNotNull.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, NotNull.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, NotNull.class );
                    }

                }
            }
            if ( !requiredFieldsNameInError.isEmpty( ) )
            {

                requiredFielsInError.put( key, requiredFieldsNameInError );
            }
        }
    }

    public static void controlRequiredFieldsIntDemandeur( String key, Object objectToControl, HashMap<String, List<String>> requiredFielsInError )
Fichier Ligne
fr/paris/lutece/plugins/ctv/util/Utils.java 85
fr/paris/lutece/plugins/ctv/util/Utils.java 138
fr/paris/lutece/plugins/ctv/util/Utils.java 192
fr/paris/lutece/plugins/ctv/util/Utils.java 244
                    Required annotationRequired = field.getAnnotation( Required.class );
                    String conditionalPropertyName = annotationRequired.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, Required.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, Required.class );
                    }
                } else if ( field.isAnnotationPresent( NotNull.class ) )
                {
                    NotNull annotationNotNull = field.getAnnotation( NotNull.class );
                    String conditionalPropertyName = annotationNotNull.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, NotNull.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, NotNull.class );
                    }

                }
            }
            if ( !requiredFieldsNameInError.isEmpty( ) )
            {
                requiredFielsInError.put( key, requiredFieldsNameInError );
            }
        }
    }

    public static void controlRequiredFieldsIntExecutant( String key, Object objectToControl, HashMap<String, List<String>> requiredFielsInError )
Fichier Ligne
fr/paris/lutece/plugins/ctv/util/Utils.java 138
fr/paris/lutece/plugins/ctv/util/Utils.java 192
fr/paris/lutece/plugins/ctv/util/Utils.java 293
                    Required annotationRequired = field.getAnnotation( Required.class );
                    String conditionalPropertyName = annotationRequired.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, Required.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, Required.class );
                    }
                } else if ( field.isAnnotationPresent( NotNull.class ) )
                {
                    NotNull annotationNotNull = field.getAnnotation( NotNull.class );
                    String conditionalPropertyName = annotationNotNull.conditionalPropertyName( );
                    if ( !"".equals( conditionalPropertyName ) )
                    {
                        controlConditionnal( objectToControl, requiredFieldsNameInError, class1, field, conditionalPropertyName, NotNull.class );
                    } else
                    {
                        control( objectToControl, field, requiredFieldsNameInError, NotNull.class );
                    }

                }
            }
            if ( !requiredFieldsNameInError.isEmpty( ) )
            {

                requiredFielsInError.put( key, requiredFieldsNameInError );
            }
        }
    }
Fichier Ligne
fr/paris/lutece/plugins/ctv/bo/controller/demandes/intervention/GestionConflitsJspBean.java 63
fr/paris/lutece/plugins/ctv/bo/controller/demandes/occupation/GestionConflitsJspBean.java 64
    @View( defaultView = true, value = VIEW_GESTION_CONFLITS )
    public String getConflitsView( HttpServletRequest request )
    {
        Map<String, Object> model = getConflitsModel( request );
        return getPage( GESTION_CONFLITS_TITLE, TEMPLATE_GESTION_CONFLITS, model );
    }

    @Action( ACTION_SEARCH )
    public String doSearchAction( HttpServletRequest request )
    {
        Map<String, Object> model = getSearchActionModel( request );
        return getPage( GESTION_CONFLITS_TITLE, TEMPLATE_GESTION_CONFLITS, model );
    }

    @Action( ACTION_SAVE )
    public String saveButtonPress( HttpServletRequest request )
    {
        String nextStepPath = request.getParameter( PARAMETER_NEXT_STEP );
        GestionConflitsFormBean conflitBean = new GestionConflitsFormBean( );
        populate( conflitBean, request );
        if ( conflitBean.getHasConflits( ) )
        {
            addConflit( request );

        }
        else
        {
            deleteConflit( request );
        }

        if ( StringUtils.isNullOrEmpty( nextStepPath ) )
        {
            return redirect( request, "../demandeIntervention.jsp" );
Fichier Ligne
fr/paris/lutece/plugins/ctv/bo/controller/demandes/intervention/DemandeInterventionJspBean.java 181
fr/paris/lutece/plugins/ctv/bo/controller/demandes/occupation/DemandeOccupationJspBean.java 184
            return redirect( request, "../demandeIntervention.jsp" );
        }
        return redirect( request, nextStepPath );
    }

    private boolean canAccessDemande( DemandeReading demande, HttpServletRequest request )
    {
        boolean canAccessDemande = true;
        boolean isConcessionnaire = ctvProfileService.hasUserProfile( getUser( ), TypeProfileCtv.CONCESSIONNAIRE, getPlugin( ), request );
        if ( isConcessionnaire )
        {
            Unit concession = unitService.getUnitUserByType( getUser( ), TypeUnit.CONCESSIONNAIRE );
            List<Integer> concessionId = unitService.getAllUnitsIdByUnit( concession );
            List<String> listLabelUnits = new ArrayList<String>( );
            for ( int unitId : concessionId )
            {
                Unit unit = unitService.getUnit( unitId, false );
                listLabelUnits.add( unit.getLabel( ) );
            }
            if ( !listLabelUnits.contains( demande.getRaisonSociale( ) ) )
            {
                canAccessDemande = false;
            }
        }
        return canAccessDemande;
    }

}
Fichier Ligne
fr/paris/lutece/plugins/ctv/service/FormulaireDemandeIntentionServiceImpl.java 221
fr/paris/lutece/plugins/ctv/service/FormulaireDemandeInterventionServiceImpl.java 148
    }

    private void alimentationRecapitulatif( HttpServletRequest request, Map<String, Object> model )
    {

        HashMap<String, List<String>> requiredFielsInError = new HashMap<String, List<String>>( );
        Map<String, Map<String, String>> fieldsInError = new HashMap<String, Map<String, String>>( );
        Map<String, Map<String, String>> emprisesInError = new HashMap<>( );
        int id = getNumDemande( request );

        EntiteDemande entiteDemaneur = entiteDemandeService.getDemandeurByNumDemande( id );
        model.put( ETAPE_DEMANDEUR, entiteDemaneur );
        Utils.controlRequiredFieldsIntDemandeur( ETAPE_DEMANDEUR, entiteDemaneur != null ? entiteDemaneur : new EntiteDemande( ), requiredFielsInError );
        Utils.checkFields( ETAPE_DEMANDEUR, entiteDemaneur, fieldsInError, IEntiteDemandeValidationGroup.class, null );
Fichier Ligne
fr/paris/lutece/plugins/ctv/util/Utils.java 488
fr/paris/lutece/plugins/ctv/util/Utils.java 534
                message = DatastoreService.replaceKeys( message );
                // Récupération du libellé du champ
                String attributeLabel = getAttributeLabel( key, property );
                Object maxProperty = constraint.getConstraintDescriptor( ).getAttributes( ).get( "max" );
                // Remplacement des variables
                if ( null != maxProperty )
                {
                    msgArgs.add( 0, attributeLabel );
                    msgArgs.add( 1, maxProperty );
                }
                if ( !msgArgs.isEmpty( ) )
                {
                    Object[] args = msgArgs.toArray( );
                    message = MessageFormat.format( message, args );
                }
                errorsList.put( constraint.getPropertyPath( ).toString( ), message );
            }
            if ( !errorsList.isEmpty( ) )
            {
                fieldsInError.put( key, errorsList );
            }
        }
    }

    public static void checkFieldsOccuption( String key, EntiteDemande objectToControl, Map<String, Map<String, String>> fieldsInError, Class<?> validationGroup, List<Object> msgArgs )
Fichier Ligne
fr/paris/lutece/plugins/ctv/util/Utils.java 115
fr/paris/lutece/plugins/ctv/util/Utils.java 169
    public static void controlRequiredFieldsIntExecutant( String key, Object objectToControl, HashMap<String, List<String>> requiredFielsInError )
    {
        if ( objectToControl != null )
        {
            List<String> requiredFieldsNameInError = new ArrayList<String>( );
            Class<?> class1 = objectToControl.getClass( );
            List<Field> fieldList = new ArrayList<Field>( );

            fieldList = getAllFields( fieldList, class1 );

            // fieldList.addAll(Arrays.asList(class1.getSuperclass().getDeclaredFields()));
            // fieldList.addAll(Arrays.asList(class1.getDeclaredFields()));

            for ( Field field : fieldList )
            {

                if ( field.isAnnotationPresent( Required.class ) )
                {
                    if ( ( field.getName( ) == "contactCourrielConnexion" ) || ( field.getName( ) == "formeJuridique" ) || ( field.getName( ) == "siegeSocial" )
Fichier Ligne
fr/paris/lutece/plugins/ctv/controller/front/DocumentApp.java 160
fr/paris/lutece/plugins/ctv/controller/front/MonEspaceDemandeurApp.java 480
    }

    private List<FileItem> getFileItemList( HttpServletRequest request, int demandeNumero )
    {
        HttpSession session = request.getSession( );
        session.setAttribute( CtvConstants.SESSION_NUM_DEMANDE_ID, Integer.toString( demandeNumero ) );
        ctvDemandeUploadHandler.removeFilesInSession( request );
        List<FileItem> fileList = ctvDemandeUploadHandler.getListUploadedFiles( Document.ROC_PV, session );
        fileList.addAll( ctvDemandeUploadHandler.getListUploadedFiles( Document.ROC_AUTRES, session ) );
        fileList.addAll( ctvDemandeUploadHandler.getListUploadedFiles( Document.SAISINE_AUTRE_SERVICE, session ) );
        fileList.addAll( ctvDemandeUploadHandler.getListUploadedFiles( Document.SAISINE_COMMISSARIAT, session ) );
        fileList.addAll( ctvDemandeUploadHandler.getListUploadedFiles( Document.SAISINE_PREFECTURE_POLICE, session ) );
Fichier Ligne
fr/paris/lutece/plugins/ctv/bo/controller/demandes/intervention/SuperviseurJspBean.java 117
fr/paris/lutece/plugins/ctv/bo/controller/demandes/occupation/SuperviseurJspBean.java 109
    }

    @Action( ACTION_QUICK_SIGNER )
    public String doQuickSignerAction( HttpServletRequest request )
    {
        return doQuickSigner( request );
    }

    @Action( ACTION_RECUPERATION_DEMANDE )
    public String recuperationDemande( HttpServletRequest request )
    {
        int numDemande = getFormulaireService( ).getNumDemande( request );
        demandeService.updateDemandeStatut( numDemande, StatutDemande.A_TRAITER );

        List<Emprise> listEmprises = empriseService.findEmprisesByDemandeId( numDemande );

        for ( Emprise emprise : listEmprises )
        {
            empriseService.updateStatut( emprise.getEmpriseId( ), StatutEmprise.A_TRAITER );
        }
        demandeService.setLastInstructeur( getUser( ).getUserId( ), numDemande );

        return redirect( request, "superviseur.jsp" );
    }

    @Action( ACTION_SAVE )
Fichier Ligne
fr/paris/lutece/plugins/ctv/service/AbstractTableauDeBordControllerService.java 107
fr/paris/lutece/plugins/ctv/service/TableauDeBordConcessionnaireControllerService.java 149
        model.put( "type_demandes", getTypesDemandes( ) );

    }

    @Override
    public String getTableauDeBord( HttpServletRequest request, AdminUser user )
    {
        Map<String, Object> model = getModel( );
        putDemandes( request, model, user );
        putCompteurs( model, user, request );
        AddressParam addressParam = AddressParamHome.getAddressParameters( );
        addressParam.setListType( "VOIE" );
        model.put( PARAMETER_ADD, addressParam );
        if ( request.getSession( ).getAttribute( "profile_default" ) != null )
        {
            model.put( "profileInSession", ( (TypeProfileCtv) request.getSession( ).getAttribute( "profile_default" ) ).getKey( ) );
        }
Fichier Ligne
fr/paris/lutece/plugins/ctv/service/FormulaireDemandeIntentionServiceImpl.java 319
fr/paris/lutece/plugins/ctv/service/FormulaireDemandeOccupationServiceImpl.java 215
        List<FileItem> justificatifsConvention = ctvDemandeUploadHandler.getListUploadedFiles(JUSTIFICATIFS_CONVENTION, request.getSession( ) );
        int numDemande = getNumDemande( request );
        DemandeReading demande = demandeService.findByNumDemande( numDemande );
        if ((demande.isDemandeConvention()) && (( justificatifsConvention == null ) || ( justificatifsConvention.isEmpty()) ))  {
            filesInError.add( JUSTIFICATIFS_CONVENTION );
            if ( requiredFielsInError.get( ETAPE_DEMANDEUR ) != null ) {
            	requiredFielsInError.get( ETAPE_DEMANDEUR ).add( JUSTIFICATIFS_CONVENTION );
            } else {
            	requiredFielsInError.put( ETAPE_DEMANDEUR, Arrays.asList( JUSTIFICATIFS_CONVENTION ) );
            }
        }
Fichier Ligne
fr/paris/lutece/plugins/ctv/service/TableauDeBordInstructionControllerService.java 424
fr/paris/lutece/plugins/ctv/service/TableauDeBordInstructionControllerService.java 435
    private void getCompteurFromProfileEnCours( AdminUser user, Map<String, Integer> compteurs, List<BanniereViewObject> listeBanniere )
    {

        for ( BanniereViewObject bvo : listeBanniere )
        {
            boolean isTransformNull = isIntention( bvo.getName( ) );
            compteurs.put( bvo.getName( ), demandeService.getNombreTotalDemandes( user.getUserId( ), Arrays.asList( bvo.getStatutEmprise( ) ),
                    getStatusBySearchCriteria( ), isTransformNull, null, bvo.getName( ), bvo.getUserType( ), setUnitIds( user ), bvo.getTypeDemande( ) ) );
        }
    }
Fichier Ligne
fr/paris/lutece/plugins/ctv/bo/controller/demandes/intention/DemandeIntentionJspBean.java 234
fr/paris/lutece/plugins/ctv/bo/controller/demandes/intervention/DemandeInterventionJspBean.java 189
fr/paris/lutece/plugins/ctv/bo/controller/demandes/occupation/DemandeOccupationJspBean.java 192
        String currentProfile = ctvProfileService.getCurrentProfile( getUser( ), getPlugin( ), request );
        if ( isConcessionnaire )
        {
            Unit concession = unitService.getUnitUserByType( getUser( ), TypeUnit.CONCESSIONNAIRE );
            List<Integer> concessionId = unitService.getAllUnitsIdByUnit( concession );
            List<String> listLabelUnits = new ArrayList<String>( );
            for ( int unitId : concessionId )
            {
                Unit unit = unitService.getUnit( unitId, false );
                listLabelUnits.add( unit.getLabel( ) );
            }
            if ( !listLabelUnits.contains( demande.getRaisonSociale( ) ) )
            {
                canAccessDemande = false;
            }
        }