Changeset 28463
- Timestamp:
- 01/03/08 19:02:05 (1 year ago)
- Files:
-
- org.nuxeo.common/branches/1.4/src/main/java/org/nuxeo/common/debug/Profiler.java (modified) (2 diffs)
- org.nuxeo.common/branches/1.4/src/main/java/org/nuxeo/common/mock/jndi/MockContext.java (modified) (1 diff)
- org.nuxeo.common/branches/1.4/src/main/java/org/nuxeo/common/mock/jndi/MockContextFactory.java (modified) (1 diff)
- org.nuxeo.common/branches/1.4/src/main/java/org/nuxeo/common/mock/jndi/MockContextNameParser.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-archive-facade/src/main/java/org/nuxeo/ecm/platform/archive/service/NXArchiveFactoryService.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-archive-web/src/main/java/org/nuxeo/ecm/platform/archive/web/listener/ejb/ArchiveManagerActionsBean.java (modified) (5 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-audit-core/src/main/java/org/nuxeo/ecm/platform/audit/service/NXAuditEventsService.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-directory-ldap/src/main/java/org/nuxeo/ecm/directory/ldap/LDAPReference.java (modified) (6 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/TableReference.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/repository/Column.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-imaging-transform/src/main/java/org/nuxeo/ecm/platform/imaging/transform/impl/ImagingTransformPluginImpl.java (modified) (5 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-io-core/src/test/java/org/nuxeo/ecm/platform/io/test/RelationsTestHelper.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-notification-core/src/main/java/org/nuxeo/ecm/platform/ec/notification/service/NotificationRegistryImpl.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-notification-facade/src/main/java/org/nuxeo/ecm/platform/ec/notification/ejb/NotificationMessageListener.java (modified) (3 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-notification-web/src/main/java/org/nuxeo/ecm/webapp/notification/SubscriptionsAction.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-relations-jena-plugin/src/main/java/org/nuxeo/ecm/platform/relations/jena/JenaGraph.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/FakeSearchService.java (modified) (10 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/ResourceHelper.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestCompassBackendInternals.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestResourceBuilder.java (modified) (4 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestUtil.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-syndication/src/main/java/org/nuxeo/ecm/platform/syndication/FeedItemAdapter.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-types-core/src/main/java/org/nuxeo/ecm/platform/types/TypeService.java (modified) (5 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/directory/ChainSelect.java (modified) (8 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-ui-web/src/main/java/org/nuxeo/ecm/platform/ui/web/model/impl/SelectDataModelRowImpl.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-uidgen-core/src/main/java/org/nuxeo/ecm/platform/uidgen/AbstractUIDGenerator.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-usermanager-facade/src/main/java/org/nuxeo/ecm/platform/usermanager/ejb/EJBExceptionHandler.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/dashboard/DashBoardItemImpl.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/documentsLists/BaseDocumentsListsManager.java (modified) (3 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/helpers/LogoHelper.java (modified) (5 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/querydata/QueryDataService.java (modified) (3 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/table/cell/DateTableCell.java (modified) (3 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/table/row/UserPermissionsTableRow.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/table/sort/SortableTableModel.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/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/branches/5.1/nuxeo-platform-workflow-api/src/main/java/org/nuxeo/ecm/platform/workflow/api/common/WrappedException.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-workflow-client/src/main/java/org/nuxeo/ecm/platform/workflow/web/adapter/ProcessDocumentAdapter.java (modified) (2 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-workflow-document/src/main/java/org/nuxeo/ecm/platform/workflow/document/service/WorkflowRulesService.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ejb/EJBExceptionHandler.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform/src/main/java/org/nuxeo/ecm/platform/ws/NuxeoRemotingBean.java (modified) (8 diffs)
- org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/Utils.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.common/branches/1.4/src/main/java/org/nuxeo/common/debug/Profiler.java
r19100 r28463 21 21 22 22 import java.util.Hashtable; 23 import java.util.Map; 23 24 24 25 /** … … 38 39 public final class Profiler { 39 40 40 private static final Hashtable<String, CheckPoint> checkpoints = new Hashtable<String, CheckPoint>();41 private static final Map<String, CheckPoint> checkpoints = new Hashtable<String, CheckPoint>(); 41 42 42 43 private Profiler() { org.nuxeo.common/branches/1.4/src/main/java/org/nuxeo/common/mock/jndi/MockContext.java
r28457 r28463 94 94 * @author Dimitar Gospodinov 95 95 */ 96 @SuppressWarnings({" SuppressionAnnotation"})96 @SuppressWarnings({"ALL"}) 97 97 public class MockContext implements Context { 98 98 org.nuxeo.common/branches/1.4/src/main/java/org/nuxeo/common/mock/jndi/MockContextFactory.java
r17788 r28463 37 37 * @author Dimitar Gospodinov 38 38 */ 39 @SuppressWarnings({"ALL"}) 39 40 public class MockContextFactory implements InitialContextFactory { 40 41 org.nuxeo.common/branches/1.4/src/main/java/org/nuxeo/common/mock/jndi/MockContextNameParser.java
r17788 r28463 31 31 * @author Dimitar Gospodinov 32 32 */ 33 @SuppressWarnings({"ALL"}) 33 34 class MockContextNameParser implements NameParser { 34 35 org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-archive-facade/src/main/java/org/nuxeo/ecm/platform/archive/service/NXArchiveFactoryService.java
r28443 r28463 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/branches/5.1/nuxeo-platform-archive-web/src/main/java/org/nuxeo/ecm/platform/archive/web/listener/ejb/ArchiveManagerActionsBean.java
r25661 r28463 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/branches/5.1/nuxeo-platform-audit-core/src/main/java/org/nuxeo/ecm/platform/audit/service/NXAuditEventsService.java
r19481 r28463 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/branches/5.1/nuxeo-platform-directory-ldap/src/main/java/org/nuxeo/ecm/directory/ldap/LDAPReference.java
r28020 r28463 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/branches/5.1/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/TableReference.java
r28055 r28463 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/branches/5.1/nuxeo-platform-directory-sql/src/main/java/org/nuxeo/ecm/directory/sql/repository/Column.java
r20218 r28463 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/branches/5.1/nuxeo-platform-imaging-transform/src/main/java/org/nuxeo/ecm/platform/imaging/transform/impl/ImagingTransformPluginImpl.java
r24477 r28463 34 34 /** 35 35 * @author Max Stepanov 36 * 36 * 37 37 */ 38 38 public class ImagingTransformPluginImpl extends AbstractPlugin implements … … 41 41 private static final long serialVersionUID = 1L; 42 42 43 /**44 *45 */46 47 /*48 * (non-Javadoc)49 *50 * @see org.nuxeo.ecm.platform.transform.plugin.AbstractPlugin#transform(java.util.Map,51 * org.nuxeo.ecm.platform.transform.interfaces.TransformDocument[])52 */53 43 @Override 54 44 public List<TransformDocument> transform(Map<String, Serializable> options, … … 61 51 int width = Integer.parseInt((String) options.get(OPTION_RESIZE_WIDTH)); 62 52 int height = Integer.parseInt((String) options.get(OPTION_RESIZE_HEIGHT)); 63 for ( int i = 0; i < sources.length; ++i) {64 if (source s[i]!= null) {65 InputStream in = source s[i].getBlob().getStream();53 for (TransformDocument source : sources) { 54 if (source != null) { 55 InputStream in = source.getBlob().getStream(); 66 56 if (in != null) { 67 57 InputStream result = service.resize(in, width, height); … … 74 64 } else if (OPERATION_ROTATE.equals(operation)) { 75 65 int angle = Integer.parseInt((String) options.get(OPTION_ROTATE_ANGLE)); 76 for ( int i = 0; i < sources.length; ++i) {77 if (source s[i]!= null) {78 InputStream in = source s[i].getBlob().getStream();66 for (TransformDocument source : sources) { 67 if (source != null) { 68 InputStream in = source.getBlob().getStream(); 79 69 if (in != null) { 80 70 InputStream result = service.rotate(in, angle); … … 107 97 } else { 108 98 throw new IllegalArgumentException("Unsupported operation <" 109 + operation + ">");99 + operation + '>'); 110 100 } 111 101 return results; org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-io-core/src/test/java/org/nuxeo/ecm/platform/io/test/RelationsTestHelper.java
r28461 r28463 51 51 52 52 private static RelationManager relationManager; 53 54 private RelationsTestHelper() { 55 } 53 56 54 57 public static DocumentModel createSampleComment( org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-notification-core/src/main/java/org/nuxeo/ecm/platform/ec/notification/service/NotificationRegistryImpl.java
r22588 r28463 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/branches/5.1/nuxeo-platform-notification-facade/src/main/java/org/nuxeo/ecm/platform/ec/notification/ejb/NotificationMessageListener.java
r28443 r28463 47 47 import org.nuxeo.ecm.core.api.DocumentModel; 48 48 import org.nuxeo.ecm.core.api.NuxeoPrincipal; 49 import org.nuxeo.ecm.core.api.impl.DocumentModelImpl;50 49 import org.nuxeo.ecm.core.api.repository.Repository; 51 50 import org.nuxeo.ecm.core.api.repository.RepositoryManager; … … 138 137 continue; 139 138 } 140 List<String> users = getUsersForMultiReci epient(recipient);139 List<String> users = getUsersForMultiRecipients(recipient); 141 140 for (String user : users) { 142 141 sendNotificationSignalForUser(notif, user, doc); … … 151 150 } 152 151 153 private List<String> getUsersForMultiReci epient(String recipient)152 private List<String> getUsersForMultiRecipients(String recipient) 154 153 throws ClientException { 155 154 String[] recipients = recipient.split("\\|"); 156 155 List<String> users = new ArrayList<String>(); 157 156 158 for (int i = 0; i < recipients.length; i++) { 159 String user = recipients[i]; 160 users.addAll(getUsersForReciepient(user)); 157 for (String user : recipients) { 158 users.addAll(getUsersForRecipient(user)); 161 159 } 162 160 return users; 163 161 } 164 162 165 private List<String> getUsersForReci epient(String recipient)163 private List<String> getUsersForRecipient(String recipient) 166 164 throws ClientException { 167 165 List<String> users = new ArrayList<String>(); org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-notification-web/src/main/java/org/nuxeo/ecm/webapp/notification/SubscriptionsAction.java
r27477 r28463 117 117 @Factory("inheritedNotifications") 118 118 public void loadInheritedNotifications() throws ClientException, ClassNotFoundException { 119 setInheritedNotifications(new ArrayList<Notification>());119 inheritedNotifications = new ArrayList<Notification>(); 120 120 DocumentModel currentDoc = navigationContext.getCurrentDocument(); 121 121 NuxeoPrincipal principal = (NuxeoPrincipal) FacesContext … … 125 125 for (String inheritedNotification : notifs) { 126 126 Notification notif = notificationManager.getNotificationByName(inheritedNotification); 127 getInheritedNotifications().add(notif);127 inheritedNotifications.add(notif); 128 128 } 129 129 } org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-relations-jena-plugin/src/main/java/org/nuxeo/ecm/platform/relations/jena/JenaGraph.java
r28456 r28463 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/branches/5.1/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/FakeSearchService.java
r25673 r28463 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/branches/5.1/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/ResourceHelper.java
r19068 r28463 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/branches/5.1/nuxeo-platform-search-compass-plugin/src/test/java/org/nuxeo/ecm/core/search/backend/compass/TestCompassBackendInternals.java
r28460 r28463 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);
