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/notificationstore/v1/web/rs/service/NotificationStoreTransportRest.java 508
fr/paris/lutece/plugins/notificationstore/v1/web/rs/service/NotificationStoreTransportRest.java 551
        _logger.debug( "Create demand type" );

        Map<String, String> mapHeaders = new HashMap<>( );
        Map<String, String> mapParams = new HashMap<>( );
        mapHeaders.put( HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_FORM_URLENCODED_VALUE);

        if ( demandType != null && demandType.getIdDemandType( ) > 0 )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_DT_ID_DEMAND_TYPE,  String.valueOf( demandType.getIdDemandType( ) ));
        }
        if ( demandType != null && StringUtils.isNotEmpty( demandType.getLabel( ) ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_DT_LABEL, demandType.getLabel( )  );
        }
        if ( demandType != null && StringUtils.isNotEmpty( demandType.getUrl( ) ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_DT_URL, demandType.getUrl( ) );
        }
        if ( demandType != null && StringUtils.isNotEmpty( demandType.getAppCode( ) ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_DT_APP_CODE, demandType.getAppCode( ) );
        }
        if ( demandType != null && StringUtils.isNotEmpty( demandType.getCategory( ) ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_DT_CATEGORY, demandType.getCategory( )  );
        }

        try
        {
            String strResponse = _httpTransport.doPost( _strNotificationStoreEndPoint + NotificationStoreConstants.PATH_DEMAND_TYPES,  mapParams, mapHeaders );
Fichier Ligne
fr/paris/lutece/plugins/notificationstore/v1/web/rs/service/NotificationStoreTransportRest.java 285
fr/paris/lutece/plugins/notificationstore/v1/web/rs/service/NotificationStoreTransportRest.java 316
        _logger.debug( "Create category" );

        Map<String, String> mapHeaders = new HashMap<>( );
        Map<String, String> mapParams = new HashMap<>( );
        mapHeaders.put( HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_FORM_URLENCODED_VALUE);

        if ( category != null && StringUtils.isNotEmpty( category.getCode( ) ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_CODE, category.getCode( ) );
        }
        if ( category != null && StringUtils.isNotEmpty( category.getLabel( ) ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_LABEL, category.getLabel( ) );
        }

        try
        {
            String strResponse = _httpTransport.doPost( _strNotificationStoreEndPoint + NotificationStoreConstants.PATH_CATEGORY,  mapParams, mapHeaders );
Fichier Ligne
fr/paris/lutece/plugins/notificationstore/v1/web/rs/service/NotificationStoreTransportRest.java 103
fr/paris/lutece/plugins/notificationstore/v1/web/rs/service/NotificationStoreTransportRest.java 149
        _logger.debug( "Get list of demand for customer id " + strCustomerId );

        Map<String, String> mapParams = new HashMap<>( );
        if ( StringUtils.isNotEmpty( strCustomerId ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_CUSTOMER_ID, strCustomerId );
        }
        if ( StringUtils.isNotEmpty( strIdDemandType ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_ID_DEMAND_TYPE, strIdDemandType );
        }
        if ( StringUtils.isNotEmpty( strIndex ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_INDEX, strIndex );
        }
        
        if ( StringUtils.isNotEmpty( strLimitResult ) )
        {
            mapParams.put( NotificationStoreConstants.QUERY_PARAM_LIMIT, strLimitResult );
        }

        if ( StringUtils.isNotEmpty( strNotificationType ) )