Changeset 28471

Show
Ignore:
Timestamp:
01/04/08 00:29:58 (1 year ago)
Author:
sfermigier
Message:

Forward port.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-archive-facade/src/main/java/org/nuxeo/ecm/platform/archive/service/NXArchiveFactoryService.java

    r28444 r28471  
    7070    } 
    7171 
    72     public Class<ArchiveRecordFactory> getArchiveRecordFactoryKlass() { 
     72    public static Class<ArchiveRecordFactory> getArchiveRecordFactoryKlass() { 
    7373        return archiveRecordFactoryKlass; 
    7474    } 
    7575 
    76     public ArchiveRecordFactory getArchiveRecordFactory() { 
    77         Class<ArchiveRecordFactory> klass = getArchiveRecordFactoryKlass()
     76    public static ArchiveRecordFactory getArchiveRecordFactory() { 
     77        Class<ArchiveRecordFactory> klass = archiveRecordFactoryKlass
    7878        ArchiveRecordFactory factory = null; 
    7979        if (klass != null) { 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-archive-web/src/main/java/org/nuxeo/ecm/platform/archive/web/listener/ejb/ArchiveManagerActionsBean.java

    r25664 r28471  
    268268 
    269269    public boolean getShowCreateForm() { 
    270         return this.showCreateForm; 
     270        return showCreateForm; 
    271271    } 
    272272 
     
    277277    public void toggleCreateForm(ActionEvent event) { 
    278278        if (getShowCreateForm()) { 
    279             setShowCreateForm(false)
     279            showCreateForm = false
    280280        } else { 
    281             setShowCreateForm(true)
     281            showCreateForm = true
    282282            required = true; 
    283283            try { 
    284                 selectedArchiveRecord = archiveService.getArchiveRecordFactory().generateArchiveRecordFrom( 
     284                selectedArchiveRecord = NXArchiveFactoryService.getArchiveRecordFactory().generateArchiveRecordFrom( 
    285285                        navigationContext.getCurrentDocument()); 
    286286            } catch (Exception e) { 
     
    292292            commandName2 = "command.cancel"; 
    293293            style = "none"; 
    294             setEditable(true)
    295         } 
    296     } 
    297  
    298     public void initializeArchiveManager() throws Exception { 
     294            editable = true
     295        } 
     296    } 
     297 
     298    public static void initializeArchiveManager() throws Exception { 
    299299        log.debug("Initializing ..."); 
    300300    } 
     
    311311        log.debug("cancel adding/editing archive record ..."); 
    312312        selectedArchiveRecord = null; 
    313         setShowCreateForm(false)
     313        showCreateForm = false
    314314        return "document_archive"; 
    315315    } 
     
    403403    private CoreSession getCurrentSession() throws Exception { 
    404404 
    405         CoreSession currentSession = null; 
    406405        DocumentModel currentDocument = navigationContext.getCurrentDocument(); 
    407         currentSession = CoreInstance.getInstance().getSession( 
     406        CoreSession currentSession = CoreInstance.getInstance().getSession( 
    408407                currentDocument.getSessionId()); 
    409408        if (currentSession == null) { 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-audit-core/src/main/java/org/nuxeo/ecm/platform/audit/service/NXAuditEventsService.java

    r19481 r28471  
    127127 
    128128    public LogEntryFactory getLogEntryFactory() { 
    129         Class<LogEntryFactory> klass = getLogEntryFactoryKlass()
     129        Class<LogEntryFactory> klass = logEntryFactoryKlass
    130130        LogEntryFactory factory = null; 
    131131        if (klass != null) { 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-ldap/src/main/java/org/nuxeo/ecm/directory/ldap/LDAPReference.java

    r28021 r28471  
    446446        } 
    447447        // step #2: resolve dynamic references 
    448         String dynamicAttributeId = getDynamicAttributeId()
     448        String dynamicAttributeId = this.dynamicAttributeId
    449449        if (dynamicAttributeId != null) { 
    450450 
     
    586586        LDAPSession targetSession = (LDAPSession) targetDirectory.getSession(); 
    587587 
    588         Attribute staticAttribute = null; 
    589         Attribute dynamicAttribute = null; 
    590  
    591588        try { 
    592589            String baseDn = pseudoNormalizeDn(targetDirconfig.getSearchBaseDn()); 
     
    594591            // step #1: fetch ids referenced by static attributes 
    595592            String staticAttributeId = getStaticAttributeId(); 
     593            Attribute staticAttribute = null; 
    596594            if (staticAttributeId != null) { 
    597595                staticAttribute = attributes.get(staticAttributeId); 
     
    599597            if (staticAttribute != null) { 
    600598                NamingEnumeration<?> targetDns = staticAttribute.getAll(); 
    601                 String targetDn; 
    602599                String[] attributeIdsToCollect = new String[] { targetSession.idAttribute }; 
    603600 
    604601                while (targetDns.hasMore()) { 
    605                     targetDn = targetDns.next().toString(); 
     602                    String targetDn = targetDns.next().toString(); 
    606603 
    607604                    if (!pseudoNormalizeDn(targetDn).endsWith(baseDn)) { 
     
    650647            } 
    651648            // step #2: fetched dynamically referenced ids 
    652             String dynamicAttributeId = getDynamicAttributeId(); 
     649            String dynamicAttributeId = this.dynamicAttributeId; 
     650            Attribute dynamicAttribute = null; 
    653651            if (dynamicAttributeId != null) { 
    654652                dynamicAttribute = attributes.get(dynamicAttributeId); 
     
    700698                        NamingEnumeration<SearchResult> results = targetSession.dirContext.search( 
    701699                                linkDn, filter, scts); 
    702                         String collectedId; 
    703700                        while (results.hasMore()) { 
    704                             collectedId = results.next().getAttributes().get( 
     701                            String collectedId = results.next().getAttributes().get( 
    705702                                    targetSession.idAttribute).get().toString(); 
    706703                            targetIds.add(collectedId); 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/TableReference.java

    r27827 r28471  
    445445 
    446446    public Table getTable() throws DirectoryException { 
    447         if (this.table == null) { 
     447        if (table == null) { 
    448448            try { 
    449                 this.table = new Table(tableName); 
    450                 String columnName = getSourceColumn()
     449                table = new Table(tableName); 
     450                String columnName = sourceColumn
    451451                Column column = new Column(columnName, 
    452452                        FieldMapper.getSqlField("string"), columnName); 
    453453                table.addColumn(column); 
    454454 
    455                 columnName = getTargetColumn()
     455                columnName = targetColumn
    456456                column = new Column(columnName, 
    457457                        FieldMapper.getSqlField("string"), columnName); 
     
    466466 
    467467    private Dialect getDialect() throws DirectoryException { 
    468         if (this.dialect == null) { 
     468        if (dialect == null) { 
    469469            Directory dir = getSourceDirectory(); 
    470470            if (dir instanceof SQLDirectoryProxy) { 
    471471                dir = ((SQLDirectoryProxy) dir).getDirectory(); 
    472472            } 
    473             this.dialect = ((SQLDirectory) dir).getDialect(); 
     473            dialect = ((SQLDirectory) dir).getDialect(); 
    474474        } 
    475475        return dialect; 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/repository/Column.java

    r20218 r28471  
    119119 
    120120    public void setPrecision(int scale) { 
    121         this.precision = scale; 
     121        precision = scale; 
    122122    } 
    123123 
     
    147147 
    148148    public String getSqlTypeString(Dialect dialect) { 
    149         return dialect.getTypeName(sqlType, getLength(), getPrecision(), 
    150                 getScale()); 
     149        return dialect.getTypeName(sqlType, length, precision, scale); 
    151150    } 
    152151 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-imaging-transform/src/main/java/org/nuxeo/ecm/platform/imaging/transform/impl/ImagingTransformPluginImpl.java

    r25233 r28471  
    5151            int width = Integer.parseInt((String) options.get(OPTION_RESIZE_WIDTH)); 
    5252            int height = Integer.parseInt((String) options.get(OPTION_RESIZE_HEIGHT)); 
    53             for (int i = 0; i < sources.length; ++i) { 
    54                 if (sources[i] != null) { 
    55                     InputStream in = sources[i].getBlob().getStream(); 
     53            for (TransformDocument source : sources) { 
     54                if (source != null) { 
     55                    InputStream in = source.getBlob().getStream(); 
    5656                    if (in != null) { 
    5757                        InputStream result = service.resize(in, width, height); 
     
    6464        } else if (OPERATION_ROTATE.equals(operation)) { 
    6565            int angle = Integer.parseInt((String) options.get(OPTION_ROTATE_ANGLE)); 
    66             for (int i = 0; i < sources.length; ++i) { 
    67                 if (sources[i] != null) { 
    68                     InputStream in = sources[i].getBlob().getStream(); 
     66            for (TransformDocument source : sources) { 
     67                if (source != null) { 
     68                    InputStream in = source.getBlob().getStream(); 
    6969                    if (in != null) { 
    7070                        InputStream result = service.rotate(in, angle); 
     
    7878        } else { 
    7979            throw new IllegalArgumentException("Unsupported operation <" 
    80                     + operation + ">"); 
     80                    + operation + '>'); 
    8181        } 
    8282        return results; 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-io-api/src/main/java/org/nuxeo/ecm/platform/io/api/IOManager.java

    r28467 r28471  
    3535/** 
    3636 * Service handling complex import/export of documents and associated resources. 
    37  *  
     37 * 
    3838 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a> 
    3939 */ 
     
    4444    /** 
    4545     * Returns the adapter with given name. 
    46      *  
     46     * 
    4747     * @throws ClientException 
    4848     */ 
     
    5151    /** 
    5252     * Adds an adapter with given name and definition. 
    53      *  
     53     * 
    5454     * @throws ClientException 
    5555     */ 
     
    5959    /** 
    6060     * Removes adapter with given name. 
    61      *  
     61     * 
    6262     * @throws ClientException 
    6363     */ 
     
    6767     * Import document and resources described by given input stream at given 
    6868     * document location. 
    69      *  
     69     * 
    7070     * @param in stream representing the documents and resources to import. Can 
    7171     *            be a zip file of a group of export files. The service is 
     
    8585    /** 
    8686     * Export documents and resources. 
    87      *  
     87     * 
    8888     * @param repo TODO 
    8989     * @param sources locations of documents to export. 
     
    9393     * @param stream that can be turned into a zip holding a group of file for 
    9494     *            each additional resources types. 
    95      *  
     95     * 
    9696     * @throws IOException 
    9797     * @throws ClientException 
     
    105105    /** 
    106106     * Copy documents and resources to another location (on a same machine). 
    107      *  
     107     * 
    108108     * @param repo the initial repository name. 
    109109     * @param sources locations of documents to export. 
     
    120120    /** 
    121121     * Remote copy. Copy documents and resources to another location. 
    122      *  
     122     * 
    123123     * @param sourceLocation 
    124124     * @param uri 
     
    133133    /** 
    134134     * Remote copy. Copy documents and resources to another location. 
    135      *  
     135     * 
    136136     * @param sourceLocation 
    137137     * @param uri 
     
    145145 
    146146    /** 
    147      * Copy documents and resources associated with the given sources from the 
     147     * Copies documents and resources associated with the given sources from the 
    148148     * local repository to a remote repository instance (available on a machine 
    149149     * with the given serverAddress). 
     150     * <p> 
    150151     * Also if there are custom DocumentReader and DocumentWriter classes that should 
    151152     * be used when externalizing documents and/or when re-creating them at the 
     
    153154     * (specified as class names). These factory classes are instantiated and 
    154155     * provided with the given factoryParams in order to build custom DocumentReader 
    155      * or DocumentWriter objects.  
    156      *  
     156     * or DocumentWriter objects. 
     157     * 
    157158     * @param repo 
    158159     * @param sources 
     
    160161     * @param jndiPort 
    161162     * @param targetLocation 
    162      * @param docReaderFactoryName classname for a DocumentReaderFactory custom implementation 
     163     * @param docReaderFactoryClassName classname for a DocumentReaderFactory custom implementation 
    163164     * @param rFactoryParams params to be given to custom DocumentReaderFactory to create DocumentReader 
    164      * @param docWriterFactoryName classname for a DocumentWriterFactory custom implementation 
     165     * @param docWriterFactoryClassName classname for a DocumentWriterFactory custom implementation 
    165166     * @param wFactoryParams params to be given to custom DocumentWriterFactory to create DocumentWriter 
    166167     * @param ioAdapters 
     
    178179     * external reachable URI (through stream service) from where a client could 
    179180     * download the export. 
    180      *  
     181     * 
    181182     * @param repo 
    182183     * @param sources 
     
    193194     * URI (through stream service) from where a client could download the 
    194195     * export. 
    195      *  
     196     * 
    196197     * @param repo 
    197198     * @param docReaderFactoryName 
     
    204205            Map<String, Object> readerFactoryParams, 
    205206            Collection<String> ioAdapters) throws ClientException; 
    206      
    207     /** 
    208      * Should be called by client code after using the export created by  
    209      * calling the {@link #externalizeExport(...)} 
     207 
     208    /** 
     209     * Should be called by client code after using the export created by 
     210     * calling the {@link #externalizeExport(...)}. 
     211     * 
    210212     * @param uri 
    211213     * @throws ClientException 
     
    215217    /** 
    216218     * Will be called after a successful export to import data from the file. 
    217      *  
     219     * 
    218220     * @param uri 
    219221     * @param targetLocation 
     
    225227    /** 
    226228     * Will be called after a successful export to import data from the file. 
    227      *  
    228      * @param uri 
    229      * @param targetLocation 
    230      * @param docWriterFactoryName 
     229     * 
     230     * @param uri 
     231     * @param targetLocation 
     232     * @param docWriterFactoryClassName 
    231233     * @param wFactoryParams 
    232234     * @throws ClientException 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-notification-core/src/main/java/org/nuxeo/ecm/platform/ec/notification/service/NotificationRegistryImpl.java

    r22588 r28471  
    5454                notif.getSubject(), notif.getAvailableIn(), notif.getLabel()); 
    5555        if (notif.getEnabled()) { 
    56             getNotifications().add(notification); 
     56            notificationList.add(notification); 
    5757            if (events != null && !events.isEmpty()) { 
    5858                for (String event : events) { 
     
    6666 
    6767    public void unregisterNotification(Notification notif, List<String> events) { 
    68         NotificationImpl notification = new NotificationImpl(notif.getName(), notif.getChannel(), 
    69                 notif.getTemplate(), notif.getAutoSubscribed(), notif.getSubject(), notif.getAvailableIn(), notif.getLabel()); 
     68        NotificationImpl notification = new NotificationImpl(notif.getName(), 
     69                notif.getChannel(), notif.getTemplate(), notif.getAutoSubscribed(), 
     70                notif.getSubject(), notif.getAvailableIn(), notif.getLabel()); 
    7071        notificationList.remove(notification); 
    7172        if (events != null && !events.isEmpty()) { 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-notification-web/src/main/java/org/nuxeo/ecm/webapp/notification/SubscriptionsAction.java

    r26373 r28471  
    119119    @Factory("inheritedNotifications") 
    120120    public void loadInheritedNotifications() throws ClientException, ClassNotFoundException { 
    121         setInheritedNotifications(new ArrayList<Notification>()); 
     121        inheritedNotifications = new ArrayList<Notification>(); 
    122122        DocumentModel currentDoc = navigationContext.getCurrentDocument(); 
    123123        NuxeoPrincipal principal = (NuxeoPrincipal) FacesContext 
     
    127127            for (String inheritedNotification : notifs) { 
    128128                Notification notif = notificationManager.getNotificationByName(inheritedNotification); 
    129                 getInheritedNotifications().add(notif); 
     129                inheritedNotifications.add(notif); 
    130130            } 
    131131        } 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-relations-jena-plugin/src/main/java/org/nuxeo/ecm/platform/relations/jena/JenaGraph.java

    r28462 r28471  
    172172            } 
    173173        } 
    174  
    175     } 
    176  
     174    } 
     175 
     176    @SuppressWarnings({"ThrowableInstanceNeverThrown"}) 
    177177    protected static RuntimeException wrapException(Exception e) { 
    178178        return new RuntimeException(e); 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/FakeSearchService.java

    r26090 r28471  
    7373public class FakeSearchService implements SearchServiceInternals { 
    7474 
    75     public final HashMap<String, FakeIndexableResourceDataDescriptor> dataConfs; 
    76  
    77     public final HashMap<String, Set<String>> facetsToTypes; 
    78  
    79     public final HashMap<String, Set<String>> facetsCollectionToTypes; 
    80  
    81     public final HashMap<String, Set<String>> typeInheritance; 
     75    public final Map<String, FakeIndexableResourceDataDescriptor> dataConfs; 
     76 
     77    public final Map<String, Set<String>> facetsToTypes; 
     78 
     79    public final Map<String, Set<String>> facetsCollectionToTypes; 
     80 
     81    public final Map<String, Set<String>> typeInheritance; 
    8282 
    8383    public FakeSearchService() { 
     
    100100 
    101101    public String getDefaultSearchEngineBakendName() { 
    102         // Auto-generated method stub 
    103102        return null; 
    104103    } 
    105104 
    106105    public Map<String, IndexableDocType> getIndexableDocTypes() { 
    107         // Auto-generated method stub 
    108106        return null; 
    109107    } 
    110108 
    111109    public String getPreferedBackendNameFor(ResolvedResource resource) { 
    112         // Auto-generated method stub 
    113110        return null; 
    114111    } 
    115112 
    116113    public SearchEngineBackend getSearchEngineBackendByName(String name) { 
    117         // Auto-generated method stub 
    118114        return null; 
    119115    } 
    120116 
    121117    public Map<String, SearchEngineBackend> getSearchEngineBackends() { 
    122         // Auto-generated method stub 
    123118        return null; 
    124119    } 
    125120 
    126121    public void setDefaultSearchEngineBackendName(String backendName) { 
    127         // Auto-generated method stub 
    128  
    129122    } 
    130123 
    131124    public void deleteAggregatedResources(String key) throws IndexingException { 
    132         // Auto-generated method stub 
    133  
    134125    } 
    135126 
    136127    public void deleteAtomicResource(String key) throws IndexingException { 
    137         // Auto-generated method stub 
    138  
    139128    } 
    140129 
    141130    public String[] getAvailableBackendNames() { 
    142         // Auto-generated method stub 
    143131        return null; 
    144132    } 
     
    146134    public IndexableResourceConf getIndexableResourceConfByName(String name, 
    147135            boolean full) { 
    148         // Auto-generated method stub 
    149136        return null; 
    150137    } 
    151138 
    152139    public Map<String, IndexableResourceConf> getIndexableResourceConfs() { 
    153         // Auto-generated method stub 
    154140        return null; 
    155141    } 
    156142 
    157143    public IndexableDocType getIndexableDocTypeFor(String docType) { 
    158         // Auto-generated method stub 
    159144        return null; 
    160145    } 
    161146 
    162147    public List<String> getSupportedAnalyzersFor(String backendName) { 
    163         // Auto-generated method stub 
    164148        return null; 
    165149    } 
    166150 
    167151    public List<String> getSupportedFieldTypes(String backendName) { 
    168         // Auto-generated method stub 
    169152        return null; 
    170153    } 
    171154 
    172155    public void index(IndexableResources sources) throws IndexingException { 
    173         // Auto-generated method stub 
    174  
    175156    } 
    176157 
    177158    public ResultSet searchQuery(ComposedNXQuery nxqlQuery, int offset, 
    178159            int range) throws SearchException { 
    179         // Auto-generated method stub 
    180160        return null; 
    181161    } 
     
    183163    public ResultSet searchQuery(NativeQuery nativeQuery, int offset, int range) 
    184164            throws SearchException { 
    185         // Auto-generated method stub 
    186165        return null; 
    187166    } 
     
    189168    public ResultSet searchQuery(NativeQueryString queryString, 
    190169            String backendName, int offset, int range) throws SearchException { 
    191         // Auto-generated method stub 
    192170        return null; 
    193171    } 
    194172 
    195173    public SearchPrincipal getSearchPrincipal(Principal principal) { 
    196         // Auto-generated method stub 
    197174        return null; 
    198175    } 
     
    200177    public IndexableResourceConf getIndexableResourceConfByPrefix( 
    201178            String prefix, boolean full) { 
    202         // Auto-generated method stub 
    203179        return null; 
    204180    } 
    205181 
    206182    public boolean isEnabled() { 
    207         // TODO Auto-generated method stub 
    208183        return false; 
    209184    } 
    210185 
    211186    public void setStatus(boolean active) { 
    212         // TODO Auto-generated method stub 
    213  
    214187    } 
    215188 
     
    240213 
    241214    public IndexableResourceDataConf getIndexableDataConfByName(String name) { 
    242         // TODO Auto-generated method stub 
    243215        return null; 
    244216    } 
    245217 
    246218    public void invalidateComputedIndexableResourceConfs() { 
    247         // TODO Auto-generated method stub 
    248  
    249219    } 
    250220 
    251221    public void clear() throws IndexingException { 
    252         // TODO Auto-generated method stub 
    253  
    254222    } 
    255223 
     
    259227 
    260228    public IndexingEventConf getIndexingEventConfByName(String name) { 
    261         // TODO Auto-generated method stub 
    262229        return null; 
    263230    } 
    264231 
    265232    public BlobExtractor getBlobExtractorByName(String name) { 
    266         // TODO Auto-generated method stub 
    267233        return null; 
    268234    } 
    269235 
    270236    public boolean hasAsynchronousIndexing() { 
    271         // TODO Auto-generated method stub 
    272237        return false; 
    273238    } 
    274239 
    275240    public ResourceTypeDescriptor getResourceTypeDescriptorByName(String name) { 
    276         // TODO Auto-generated method stub 
    277241        return null; 
    278242    } 
    279243 
    280244    public void index(ResolvedResources sources) throws IndexingException { 
    281         // TODO Auto-generated method stub 
    282  
    283245    } 
    284246 
    285247    public void index(IndexableResources sources, boolean fulltext) 
    286248            throws IndexingException { 
    287         // TODO Auto-generated method stub 
    288  
    289249    } 
    290250 
    291251    public int getNumberOfIndexingThreads() { 
    292         // TODO Auto-generated method stub 
    293252        return 0; 
    294253    } 
     
    296255    public void indexInThread(DocumentModel dm, Boolean recursive, 
    297256            boolean fulltext) { 
    298         // TODO Auto-generated method stub 
    299          
    300257    } 
    301258 
    302259    public void closeSession(String sid) { 
    303         // TODO Auto-generated method stub 
    304          
    305260    } 
    306261 
    307262    public SearchServiceSession openSession() { 
    308         // TODO Auto-generated method stub 
    309263        return null; 
    310264    } 
    311265 
    312266    public int getIndexingDocBatchSize() { 
    313         // TODO Auto-generated method stub 
    314267        return 1; 
    315268    } 
    316269 
    317270    public void setIndexingDocBatchSize(int docBatchSize) { 
    318         // TODO Auto-generated method stub 
    319          
    320271    } 
    321272 
    322273    public void setNumberOfIndexingThreads(int numberOfIndexingThreads) { 
    323         // TODO Auto-generated method stub 
    324          
    325274    } 
    326275 
    327276    public void saveAllSessions() throws IndexingException { 
    328         // TODO Auto-generated method stub 
    329          
    330277    } 
    331278 
    332279    public void reindexAll(String repoName, String path, boolean fulltext) 
    333280            throws IndexingException { 
    334         // TODO Auto-generated method stub 
    335          
    336281    } 
    337282 
    338283    public int getActiveIndexingTasks() { 
    339         // TODO Auto-generated method stub 
    340284        return 0; 
    341285    } 
    342286 
    343287    public long getTotalCompletedIndexingTasks() { 
    344         // TODO Auto-generated method stub 
    345288        return 0; 
    346289    } 
     
    348291    public void indexInThread(ResolvedResources sources) 
    349292            throws IndexingException { 
    350         // TODO Auto-generated method stub 
    351          
    352293    } 
    353294 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/ResourceHelper.java

    r19068 r28471  
    3939    public static List<String> getListProperty(Resource r, String propName) { 
    4040        Property[] props = r.getProperties(propName); 
    41         ArrayList<String> propVals = new ArrayList<String>(); 
     41        List<String> propVals = new ArrayList<String>(); 
    4242        for (Property propItem : props) { 
    4343            propVals.add(propItem.getStringValue()); 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestCompassBackendInternals.java

    r28462 r28471  
    6767    IntrospectableCompassBackend backend; 
    6868 
    69     HashMap<String, FakeIndexableResourceDataDescriptor> dataConfs; 
    70  
     69    Map<String, FakeIndexableResourceDataDescriptor> dataConfs; 
     70 
     71    @Override 
    7172    public void setUp() { 
    7273        backend = new IntrospectableCompassBackend("/testcompass.cfg.xml"); 
     
    9293    } 
    9394 
    94     private ComposedNXQuery composeQuery(String query) { 
     95    private static ComposedNXQuery composeQuery(String query) { 
    9596        SQLQuery nxqlQuery = SQLQueryParser.parse(query); 
    9697        return new ComposedNXQueryImpl(nxqlQuery); 
  • org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestQueryConverter.java

    r25903 r28471  
    2020package org.nuxeo.ecm.core.search.backend.compass; 
    2121 
    22 import java.util.Arrays; 
    23 import java.util.HashMap; 
    24 import java.util.HashSet; 
    25 import java.util.List; 
    26 import java.util.Set; 
     22import java.util.*; 
    2723 
    2824import junit.framework.TestCase; 
     
    4036    QueryConverter converter;