Fork me on GitHub

CPD Results

The following document contains the results of PMD's CPD 5.3.5.

Duplications

File Line
fr/paris/lutece/plugins/comarquage/modules/solr/search/SolrComarquageLocalIndexer.java 94
fr/paris/lutece/plugins/comarquage/modules/solr/search/SolrComarquagePublicIndexer.java 94
        List<SolrItem> listDocuments = localParser.getLocalSolrItems(  );

        List<String> lstErrors = new ArrayList<String>(  );
        
        for ( SolrItem solrItem : listDocuments )
        {
        	try
        	{
        		SolrIndexerService.write( solrItem );
        	}
            catch ( Exception e )
			{
				lstErrors.add( SolrIndexerService.buildErrorMessage( e ) );
				AppLogService.error( COM_INDEXATION_ERROR , e );
			}
        }
        
        return lstErrors;
    }

    /**
     * {@inheritDoc}
     */
    public boolean isEnable(  )
    {
        return "true".equalsIgnoreCase( AppPropertiesService.getProperty( PROPERTY_INDEXER_ENABLE ) );
    }

    /**
     * {@inheritDoc}
     */
    public List<Field> getAdditionalFields(  )
    {
        // No additional fields for this indexer
        return new ArrayList<Field>(  );
    }

    /**
     * {@inheritDoc}
     */
    public List<SolrItem> getDocuments( String strIdDocument )
    {
        // There is no incremental indexation
        return null;
    }

    /**
     * {@inheritDoc}
     */
    public String getResourceUid( String strResourceId, String strResourceType )
    {
        // There is no incremental indexation
        return null;
    }

    /**
     * {@inheritDoc}
     */
    public List<String> getResourcesName(  )
    {
        // There is no incremental indexation
        return null;
    }
}