Changeset 28471
- Timestamp:
- 01/04/08 00:29:58 (1 year ago)
- Files:
-
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-archive-facade/src/main/java/org/nuxeo/ecm/platform/archive/service/NXArchiveFactoryService.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-archive-web/src/main/java/org/nuxeo/ecm/platform/archive/web/listener/ejb/ArchiveManagerActionsBean.java (modified) (5 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-audit-core/src/main/java/org/nuxeo/ecm/platform/audit/service/NXAuditEventsService.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-ldap/src/main/java/org/nuxeo/ecm/directory/ldap/LDAPReference.java (modified) (6 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/TableReference.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/repository/Column.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-imaging-transform/src/main/java/org/nuxeo/ecm/platform/imaging/transform/impl/ImagingTransformPluginImpl.java (modified) (3 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-io-api/src/main/java/org/nuxeo/ecm/platform/io/api/IOManager.java (modified) (18 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-notification-core/src/main/java/org/nuxeo/ecm/platform/ec/notification/service/NotificationRegistryImpl.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-notification-web/src/main/java/org/nuxeo/ecm/webapp/notification/SubscriptionsAction.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-relations-jena-plugin/src/main/java/org/nuxeo/ecm/platform/relations/jena/JenaGraph.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/FakeSearchService.java (modified) (10 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/ResourceHelper.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestCompassBackendInternals.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestQueryConverter.java (modified) (6 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestResourceBuilder.java (modified) (4 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestUtil.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-syndication/src/main/java/org/nuxeo/ecm/platform/syndication/FeedItemAdapter.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-types-core/src/main/java/org/nuxeo/ecm/platform/types/TypeService.java (modified) (5 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/directory/ChainSelect.java (modified) (8 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/model/impl/SelectDataModelRowImpl.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-uidgen-core/src/main/java/org/nuxeo/ecm/platform/uidgen/AbstractUIDGenerator.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-usermanager-facade/src/main/java/org/nuxeo/ecm/platform/usermanager/ejb/EJBExceptionHandler.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/dashboard/DashBoardItemImpl.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/documentsLists/BaseDocumentsListsManager.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/helpers/LogoHelper.java (modified) (5 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/querydata/QueryDataService.java (modified) (3 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/table/cell/DateTableCell.java (modified) (3 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/table/row/UserPermissionsTableRow.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/table/sort/SortableTableModel.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-workflow-api/src/main/java/org/nuxeo/ecm/platform/workflow/api/client/wfmc/impl/WMProcessInstanceImpl.java (modified) (3 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-workflow-client/src/main/java/org/nuxeo/ecm/platform/workflow/web/adapter/ProcessDocumentAdapter.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform-workflow-document/src/main/java/org/nuxeo/ecm/platform/workflow/document/service/WorkflowRulesService.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ejb/EJBExceptionHandler.java (modified) (1 diff)
- org.nuxeo.ecm.platform/trunk/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ws/NuxeoRemotingBean.java (modified) (3 diffs)
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 70 70 } 71 71 72 public Class<ArchiveRecordFactory> getArchiveRecordFactoryKlass() {72 public static Class<ArchiveRecordFactory> getArchiveRecordFactoryKlass() { 73 73 return archiveRecordFactoryKlass; 74 74 } 75 75 76 public ArchiveRecordFactory getArchiveRecordFactory() {77 Class<ArchiveRecordFactory> klass = getArchiveRecordFactoryKlass();76 public static ArchiveRecordFactory getArchiveRecordFactory() { 77 Class<ArchiveRecordFactory> klass = archiveRecordFactoryKlass; 78 78 ArchiveRecordFactory factory = null; 79 79 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 268 268 269 269 public boolean getShowCreateForm() { 270 return this.showCreateForm;270 return showCreateForm; 271 271 } 272 272 … … 277 277 public void toggleCreateForm(ActionEvent event) { 278 278 if (getShowCreateForm()) { 279 s etShowCreateForm(false);279 showCreateForm = false; 280 280 } else { 281 s etShowCreateForm(true);281 showCreateForm = true; 282 282 required = true; 283 283 try { 284 selectedArchiveRecord = archiveService.getArchiveRecordFactory().generateArchiveRecordFrom(284 selectedArchiveRecord = NXArchiveFactoryService.getArchiveRecordFactory().generateArchiveRecordFrom( 285 285 navigationContext.getCurrentDocument()); 286 286 } catch (Exception e) { … … 292 292 commandName2 = "command.cancel"; 293 293 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 { 299 299 log.debug("Initializing ..."); 300 300 } … … 311 311 log.debug("cancel adding/editing archive record ..."); 312 312 selectedArchiveRecord = null; 313 s etShowCreateForm(false);313 showCreateForm = false; 314 314 return "document_archive"; 315 315 } … … 403 403 private CoreSession getCurrentSession() throws Exception { 404 404 405 CoreSession currentSession = null;406 405 DocumentModel currentDocument = navigationContext.getCurrentDocument(); 407 currentSession = CoreInstance.getInstance().getSession(406 CoreSession currentSession = CoreInstance.getInstance().getSession( 408 407 currentDocument.getSessionId()); 409 408 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 127 127 128 128 public LogEntryFactory getLogEntryFactory() { 129 Class<LogEntryFactory> klass = getLogEntryFactoryKlass();129 Class<LogEntryFactory> klass = logEntryFactoryKlass; 130 130 LogEntryFactory factory = null; 131 131 if (klass != null) { org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-ldap/src/main/java/org/nuxeo/ecm/directory/ldap/LDAPReference.java
r28021 r28471 446 446 } 447 447 // step #2: resolve dynamic references 448 String dynamicAttributeId = getDynamicAttributeId();448 String dynamicAttributeId = this.dynamicAttributeId; 449 449 if (dynamicAttributeId != null) { 450 450 … … 586 586 LDAPSession targetSession = (LDAPSession) targetDirectory.getSession(); 587 587 588 Attribute staticAttribute = null;589 Attribute dynamicAttribute = null;590 591 588 try { 592 589 String baseDn = pseudoNormalizeDn(targetDirconfig.getSearchBaseDn()); … … 594 591 // step #1: fetch ids referenced by static attributes 595 592 String staticAttributeId = getStaticAttributeId(); 593 Attribute staticAttribute = null; 596 594 if (staticAttributeId != null) { 597 595 staticAttribute = attributes.get(staticAttributeId); … … 599 597 if (staticAttribute != null) { 600 598 NamingEnumeration<?> targetDns = staticAttribute.getAll(); 601 String targetDn;602 599 String[] attributeIdsToCollect = new String[] { targetSession.idAttribute }; 603 600 604 601 while (targetDns.hasMore()) { 605 targetDn = targetDns.next().toString();602 String targetDn = targetDns.next().toString(); 606 603 607 604 if (!pseudoNormalizeDn(targetDn).endsWith(baseDn)) { … … 650 647 } 651 648 // step #2: fetched dynamically referenced ids 652 String dynamicAttributeId = getDynamicAttributeId(); 649 String dynamicAttributeId = this.dynamicAttributeId; 650 Attribute dynamicAttribute = null; 653 651 if (dynamicAttributeId != null) { 654 652 dynamicAttribute = attributes.get(dynamicAttributeId); … … 700 698 NamingEnumeration<SearchResult> results = targetSession.dirContext.search( 701 699 linkDn, filter, scts); 702 String collectedId;703 700 while (results.hasMore()) { 704 collectedId = results.next().getAttributes().get(701 String collectedId = results.next().getAttributes().get( 705 702 targetSession.idAttribute).get().toString(); 706 703 targetIds.add(collectedId); org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/TableReference.java
r27827 r28471 445 445 446 446 public Table getTable() throws DirectoryException { 447 if (t his.table == null) {447 if (table == null) { 448 448 try { 449 t his.table = new Table(tableName);450 String columnName = getSourceColumn();449 table = new Table(tableName); 450 String columnName = sourceColumn; 451 451 Column column = new Column(columnName, 452 452 FieldMapper.getSqlField("string"), columnName); 453 453 table.addColumn(column); 454 454 455 columnName = getTargetColumn();455 columnName = targetColumn; 456 456 column = new Column(columnName, 457 457 FieldMapper.getSqlField("string"), columnName); … … 466 466 467 467 private Dialect getDialect() throws DirectoryException { 468 if ( this.dialect == null) {468 if (dialect == null) { 469 469 Directory dir = getSourceDirectory(); 470 470 if (dir instanceof SQLDirectoryProxy) { 471 471 dir = ((SQLDirectoryProxy) dir).getDirectory(); 472 472 } 473 this.dialect = ((SQLDirectory) dir).getDialect();473 dialect = ((SQLDirectory) dir).getDialect(); 474 474 } 475 475 return dialect; org.nuxeo.ecm.platform/trunk/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/repository/Column.java
r20218 r28471 119 119 120 120 public void setPrecision(int scale) { 121 this.precision = scale;121 precision = scale; 122 122 } 123 123 … … 147 147 148 148 public String getSqlTypeString(Dialect dialect) { 149 return dialect.getTypeName(sqlType, getLength(), getPrecision(), 150 getScale()); 149 return dialect.getTypeName(sqlType, length, precision, scale); 151 150 } 152 151 org.nuxeo.ecm.platform/trunk/nuxeo-platform-imaging-transform/src/main/java/org/nuxeo/ecm/platform/imaging/transform/impl/ImagingTransformPluginImpl.java
r25233 r28471 51 51 int width = Integer.parseInt((String) options.get(OPTION_RESIZE_WIDTH)); 52 52 int height = Integer.parseInt((String) options.get(OPTION_RESIZE_HEIGHT)); 53 for ( int i = 0; i < sources.length; ++i) {54 if (source s[i]!= null) {55 InputStream in = source s[i].getBlob().getStream();53 for (TransformDocument source : sources) { 54 if (source != null) { 55 InputStream in = source.getBlob().getStream(); 56 56 if (in != null) { 57 57 InputStream result = service.resize(in, width, height); … … 64 64 } else if (OPERATION_ROTATE.equals(operation)) { 65 65 int angle = Integer.parseInt((String) options.get(OPTION_ROTATE_ANGLE)); 66 for ( int i = 0; i < sources.length; ++i) {67 if (source s[i]!= null) {68 InputStream in = source s[i].getBlob().getStream();66 for (TransformDocument source : sources) { 67 if (source != null) { 68 InputStream in = source.getBlob().getStream(); 69 69 if (in != null) { 70 70 InputStream result = service.rotate(in, angle); … … 78 78 } else { 79 79 throw new IllegalArgumentException("Unsupported operation <" 80 + operation + ">");80 + operation + '>'); 81 81 } 82 82 return results; org.nuxeo.ecm.platform/trunk/nuxeo-platform-io-api/src/main/java/org/nuxeo/ecm/platform/io/api/IOManager.java
r28467 r28471 35 35 /** 36 36 * Service handling complex import/export of documents and associated resources. 37 * 37 * 38 38 * @author <a href="mailto:at@nuxeo.com">Anahide Tchertchian</a> 39 39 */ … … 44 44 /** 45 45 * Returns the adapter with given name. 46 * 46 * 47 47 * @throws ClientException 48 48 */ … … 51 51 /** 52 52 * Adds an adapter with given name and definition. 53 * 53 * 54 54 * @throws ClientException 55 55 */ … … 59 59 /** 60 60 * Removes adapter with given name. 61 * 61 * 62 62 * @throws ClientException 63 63 */ … … 67 67 * Import document and resources described by given input stream at given 68 68 * document location. 69 * 69 * 70 70 * @param in stream representing the documents and resources to import. Can 71 71 * be a zip file of a group of export files. The service is … … 85 85 /** 86 86 * Export documents and resources. 87 * 87 * 88 88 * @param repo TODO 89 89 * @param sources locations of documents to export. … … 93 93 * @param stream that can be turned into a zip holding a group of file for 94 94 * each additional resources types. 95 * 95 * 96 96 * @throws IOException 97 97 * @throws ClientException … … 105 105 /** 106 106 * Copy documents and resources to another location (on a same machine). 107 * 107 * 108 108 * @param repo the initial repository name. 109 109 * @param sources locations of documents to export. … … 120 120 /** 121 121 * Remote copy. Copy documents and resources to another location. 122 * 122 * 123 123 * @param sourceLocation 124 124 * @param uri … … 133 133 /** 134 134 * Remote copy. Copy documents and resources to another location. 135 * 135 * 136 136 * @param sourceLocation 137 137 * @param uri … … 145 145 146 146 /** 147 * Cop ydocuments and resources associated with the given sources from the147 * Copies documents and resources associated with the given sources from the 148 148 * local repository to a remote repository instance (available on a machine 149 149 * with the given serverAddress). 150 * <p> 150 151 * Also if there are custom DocumentReader and DocumentWriter classes that should 151 152 * be used when externalizing documents and/or when re-creating them at the … … 153 154 * (specified as class names). These factory classes are instantiated and 154 155 * provided with the given factoryParams in order to build custom DocumentReader 155 * or DocumentWriter objects. 156 * 156 * or DocumentWriter objects. 157 * 157 158 * @param repo 158 159 * @param sources … … 160 161 * @param jndiPort 161 162 * @param targetLocation 162 * @param docReaderFactory Name classname for a DocumentReaderFactory custom implementation163 * @param docReaderFactoryClassName classname for a DocumentReaderFactory custom implementation 163 164 * @param rFactoryParams params to be given to custom DocumentReaderFactory to create DocumentReader 164 * @param docWriterFactory Name classname for a DocumentWriterFactory custom implementation165 * @param docWriterFactoryClassName classname for a DocumentWriterFactory custom implementation 165 166 * @param wFactoryParams params to be given to custom DocumentWriterFactory to create DocumentWriter 166 167 * @param ioAdapters … … 178 179 * external reachable URI (through stream service) from where a client could 179 180 * download the export. 180 * 181 * 181 182 * @param repo 182 183 * @param sources … … 193 194 * URI (through stream service) from where a client could download the 194 195 * export. 195 * 196 * 196 197 * @param repo 197 198 * @param docReaderFactoryName … … 204 205 Map<String, Object> readerFactoryParams, 205 206 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 * 210 212 * @param uri 211 213 * @throws ClientException … … 215 217 /** 216 218 * Will be called after a successful export to import data from the file. 217 * 219 * 218 220 * @param uri 219 221 * @param targetLocation … … 225 227 /** 226 228 * Will be called after a successful export to import data from the file. 227 * 228 * @param uri 229 * @param targetLocation 230 * @param docWriterFactory Name229 * 230 * @param uri 231 * @param targetLocation 232 * @param docWriterFactoryClassName 231 233 * @param wFactoryParams 232 234 * @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 54 54 notif.getSubject(), notif.getAvailableIn(), notif.getLabel()); 55 55 if (notif.getEnabled()) { 56 getNotifications().add(notification);56 notificationList.add(notification); 57 57 if (events != null && !events.isEmpty()) { 58 58 for (String event : events) { … … 66 66 67 67 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()); 70 71 notificationList.remove(notification); 71 72 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 119 119 @Factory("inheritedNotifications") 120 120 public void loadInheritedNotifications() throws ClientException, ClassNotFoundException { 121 setInheritedNotifications(new ArrayList<Notification>());121 inheritedNotifications = new ArrayList<Notification>(); 122 122 DocumentModel currentDoc = navigationContext.getCurrentDocument(); 123 123 NuxeoPrincipal principal = (NuxeoPrincipal) FacesContext … … 127 127 for (String inheritedNotification : notifs) { 128 128 Notification notif = notificationManager.getNotificationByName(inheritedNotification); 129 getInheritedNotifications().add(notif);129 inheritedNotifications.add(notif); 130 130 } 131 131 } org.nuxeo.ecm.platform/trunk/nuxeo-platform-relations-jena-plugin/src/main/java/org/nuxeo/ecm/platform/relations/jena/JenaGraph.java
r28462 r28471 172 172 } 173 173 } 174 175 } 176 174 } 175 176 @SuppressWarnings({"ThrowableInstanceNeverThrown"}) 177 177 protected static RuntimeException wrapException(Exception e) { 178 178 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 73 73 public class FakeSearchService implements SearchServiceInternals { 74 74 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; 82 82 83 83 public FakeSearchService() { … … 100 100 101 101 public String getDefaultSearchEngineBakendName() { 102 // Auto-generated method stub103 102 return null; 104 103 } 105 104 106 105 public Map<String, IndexableDocType> getIndexableDocTypes() { 107 // Auto-generated method stub108 106 return null; 109 107 } 110 108 111 109 public String getPreferedBackendNameFor(ResolvedResource resource) { 112 // Auto-generated method stub113 110 return null; 114 111 } 115 112 116 113 public SearchEngineBackend getSearchEngineBackendByName(String name) { 117 // Auto-generated method stub118 114 return null; 119 115 } 120 116 121 117 public Map<String, SearchEngineBackend> getSearchEngineBackends() { 122 // Auto-generated method stub123 118 return null; 124 119 } 125 120 126 121 public void setDefaultSearchEngineBackendName(String backendName) { 127 // Auto-generated method stub128 129 122 } 130 123 131 124 public void deleteAggregatedResources(String key) throws IndexingException { 132 // Auto-generated method stub133 134 125 } 135 126 136 127 public void deleteAtomicResource(String key) throws IndexingException { 137 // Auto-generated method stub138 139 128 } 140 129 141 130 public String[] getAvailableBackendNames() { 142 // Auto-generated method stub143 131 return null; 144 132 } … … 146 134 public IndexableResourceConf getIndexableResourceConfByName(String name, 147 135 boolean full) { 148 // Auto-generated method stub149 136 return null; 150 137 } 151 138 152 139 public Map<String, IndexableResourceConf> getIndexableResourceConfs() { 153 // Auto-generated method stub154 140 return null; 155 141 } 156 142 157 143 public IndexableDocType getIndexableDocTypeFor(String docType) { 158 // Auto-generated method stub159 144 return null; 160 145 } 161 146 162 147 public List<String> getSupportedAnalyzersFor(String backendName) { 163 // Auto-generated method stub164 148 return null; 165 149 } 166 150 167 151 public List<String> getSupportedFieldTypes(String backendName) { 168 // Auto-generated method stub169 152 return null; 170 153 } 171 154 172 155 public void index(IndexableResources sources) throws IndexingException { 173 // Auto-generated method stub174 175 156 } 176 157 177 158 public ResultSet searchQuery(ComposedNXQuery nxqlQuery, int offset, 178 159 int range) throws SearchException { 179 // Auto-generated method stub180 160 return null; 181 161 } … … 183 163 public ResultSet searchQuery(NativeQuery nativeQuery, int offset, int range) 184 164 throws SearchException { 185 // Auto-generated method stub186 165 return null; 187 166 } … … 189 168 public ResultSet searchQuery(NativeQueryString queryString, 190 169 String backendName, int offset, int range) throws SearchException { 191 // Auto-generated method stub192 170 return null; 193 171 } 194 172 195 173 public SearchPrincipal getSearchPrincipal(Principal principal) { 196 // Auto-generated method stub197 174 return null; 198 175 } … … 200 177 public IndexableResourceConf getIndexableResourceConfByPrefix( 201 178 String prefix, boolean full) { 202 // Auto-generated method stub203 179 return null; 204 180 } 205 181 206 182 public boolean isEnabled() { 207 // TODO Auto-generated method stub208 183 return false; 209 184 } 210 185 211 186 public void setStatus(boolean active) { 212 // TODO Auto-generated method stub213 214 187 } 215 188 … … 240 213 241 214 public IndexableResourceDataConf getIndexableDataConfByName(String name) { 242 // TODO Auto-generated method stub243 215 return null; 244 216 } 245 217 246 218 public void invalidateComputedIndexableResourceConfs() { 247 // TODO Auto-generated method stub248 249 219 } 250 220 251 221 public void clear() throws IndexingException { 252 // TODO Auto-generated method stub253 254 222 } 255 223 … … 259 227 260 228 public IndexingEventConf getIndexingEventConfByName(String name) { 261 // TODO Auto-generated method stub262 229 return null; 263 230 } 264 231 265 232 public BlobExtractor getBlobExtractorByName(String name) { 266 // TODO Auto-generated method stub267 233 return null; 268 234 } 269 235 270 236 public boolean hasAsynchronousIndexing() { 271 // TODO Auto-generated method stub272 237 return false; 273 238 } 274 239 275 240 public ResourceTypeDescriptor getResourceTypeDescriptorByName(String name) { 276 // TODO Auto-generated method stub277 241 return null; 278 242 } 279 243 280 244 public void index(ResolvedResources sources) throws IndexingException { 281 // TODO Auto-generated method stub282 283 245 } 284 246 285 247 public void index(IndexableResources sources, boolean fulltext) 286 248 throws IndexingException { 287 // TODO Auto-generated method stub288 289 249 } 290 250 291 251 public int getNumberOfIndexingThreads() { 292 // TODO Auto-generated method stub293 252 return 0; 294 253 } … … 296 255 public void indexInThread(DocumentModel dm, Boolean recursive, 297 256 boolean fulltext) { 298 // TODO Auto-generated method stub299 300 257 } 301 258 302 259 public void closeSession(String sid) { 303 // TODO Auto-generated method stub304 305 260 } 306 261 307 262 public SearchServiceSession openSession() { 308 // TODO Auto-generated method stub309 263 return null; 310 264 } 311 265 312 266 public int getIndexingDocBatchSize() { 313 // TODO Auto-generated method stub314 267 return 1; 315 268 } 316 269 317 270 public void setIndexingDocBatchSize(int docBatchSize) { 318 // TODO Auto-generated method stub319 320 271 } 321 272 322 273 public void setNumberOfIndexingThreads(int numberOfIndexingThreads) { 323 // TODO Auto-generated method stub324 325 274 } 326 275 327 276 public void saveAllSessions() throws IndexingException { 328 // TODO Auto-generated method stub329 330 277 } 331 278 332 279 public void reindexAll(String repoName, String path, boolean fulltext) 333 280 throws IndexingException { 334 // TODO Auto-generated method stub335 336 281 } 337 282 338 283 public int getActiveIndexingTasks() { 339 // TODO Auto-generated method stub340 284 return 0; 341 285 } 342 286 343 287 public long getTotalCompletedIndexingTasks() { 344 // TODO Auto-generated method stub345 288 return 0; 346 289 } … … 348 291 public void indexInThread(ResolvedResources sources) 349 292 throws IndexingException { 350 // TODO Auto-generated method stub351 352 293 } 353 294 org.nuxeo.ecm.platform/trunk/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/ResourceHelper.java
r19068 r28471 39 39 public static List<String> getListProperty(Resource r, String propName) { 40 40 Property[] props = r.getProperties(propName); 41 ArrayList<String> propVals = new ArrayList<String>();41 List<String> propVals = new ArrayList<String>(); 42 42 for (Property propItem : props) { 43 43 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 67 67 IntrospectableCompassBackend backend; 68 68 69 HashMap<String, FakeIndexableResourceDataDescriptor> dataConfs; 70 69 Map<String, FakeIndexableResourceDataDescriptor> dataConfs; 70 71 @Override 71 72 public void setUp() { 72 73 backend = new IntrospectableCompassBackend("/testcompass.cfg.xml"); … … 92 93 } 93 94 94 private ComposedNXQuery composeQuery(String query) {95 private static ComposedNXQuery composeQuery(String query) { 95 96 SQLQuery nxqlQuery = SQLQueryParser.parse(query); 96 97 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 20 20 package org.nuxeo.ecm.core.search.backend.compass; 21 21 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; 22 import java.util.*; 27 23 28 24 import junit.framework.TestCase; … … 40 36 QueryConverter converter;
