Changeset 28989
- Timestamp:
- 01/13/08 00:08:51 (11 months ago)
- Files:
-
- org.nuxeo.ecm.core/branches/1.4/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/adapter/DocumentAdapterService.java (modified) (1 diff)
- org.nuxeo.ecm.core/branches/1.4/nuxeo-core-schema/src/main/java/org/nuxeo/ecm/core/schema/types/TypeBindingException.java (modified) (1 diff)
- org.nuxeo.ecm.core/branches/1.4/nuxeo-core/src/main/resources/OSGI-INF/SecurityService.xml (modified) (1 diff)
- org.nuxeo.ecm.core/branches/1.4/nuxeo-core/src/main/resources/OSGI-INF/permissions-contrib.xml (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-content-template-manager/src/test/java/org/nuxeo/ecm/platform/content/template/tests/TestContentTemplateFactory.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-events-core/src/main/java/org/nuxeo/ecm/platform/events/service/JMSDocumentMessageProducerService.java (modified) (5 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) (3 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-mimetype-core/src/test/java/org/nuxeo/ecm/platform/mimetype/TestMimetype.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-search-api/src/main/java/org/nuxeo/ecm/core/search/api/backend/indexing/resources/impl/ResolvedResourceImpl.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) (3 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/test/java/org/nuxeo/ecm/platform/transform/jooconverter/TestJOOoConverter2pdfService.java (modified) (4 diffs)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/security/UserSession.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/wfnotification/NotifDatesEcheancesListener.java (modified) (1 diff)
- org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-ws/src/main/java/org/nuxeo/ecm/platform/api/ws/DocumentProperty.java (modified) (3 diffs)
- org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/elements/ElementFactory.java (modified) (1 diff)
- org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/elements/ElementFormatter.java (modified) (1 diff)
- org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/elements/ElementRenderer.java (modified) (1 diff)
- org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/formats/FormatFactory.java (modified) (1 diff)
- org.nuxeo.theme/branches/5.1/nuxeo-theme-jsf-editor/src/test/java/org/nuxeo/theme/test/jsf/editor/managers/TestUIManager.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
org.nuxeo.ecm.core/branches/1.4/nuxeo-core-api/src/main/java/org/nuxeo/ecm/core/api/adapter/DocumentAdapterService.java
r28924 r28989 64 64 public void registerAdapterFactory(DocumentAdapterDescriptor dae) { 65 65 adapters.put(dae.getInterface(), dae); 66 log.info("Registered document adapter factory " + dae);66 log.info("Registered document adapter factory " + dae); 67 67 } 68 68 org.nuxeo.ecm.core/branches/1.4/nuxeo-core-schema/src/main/java/org/nuxeo/ecm/core/schema/types/TypeBindingException.java
r16046 r28989 32 32 33 33 public TypeBindingException(String typeName) { 34 super("Type co lud not be resolved: " + typeName);34 super("Type could not be resolved: " + typeName); 35 35 this.typeName = typeName; 36 36 } org.nuxeo.ecm.core/branches/1.4/nuxeo-core/src/main/resources/OSGI-INF/SecurityService.xml
r28304 r28989 25 25 and in which order they should be display in management menus. 26 26 27 @author 28 <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a> 29 @author 30 <a href="mailto:og@nuxeo.com">Olivier Grisel</a> 27 @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a> 28 @author <a href="mailto:og@nuxeo.com">Olivier Grisel</a> 31 29 </documentation> 32 30 org.nuxeo.ecm.core/branches/1.4/nuxeo-core/src/main/resources/OSGI-INF/permissions-contrib.xml
r28304 r28989 6 6 org.nuxeo.ecm.core/nuxeo-core/doc/NXCore-Security.txt 7 7 8 @author 9 <a href="mailto:og@nuxeo.com">Olivier Grisel</a> 8 @author <a href="mailto:og@nuxeo.com">Olivier Grisel</a> 10 9 </documentation> 11 10 org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-content-template-manager/src/test/java/org/nuxeo/ecm/platform/content/template/tests/TestContentTemplateFactory.java
r28971 r28989 47 47 super.setUp(); 48 48 49 deployContrib("ServiceManagement.xml");50 deployContrib("LoginComponent.xml");49 //deployContrib("ServiceManagement.xml"); 50 //deployContrib("LoginComponent.xml"); 51 51 deployContrib("RepositoryManager.xml"); 52 deployContrib("RepositoryService.xml");52 //deployContrib("RepositoryService.xml"); 53 53 deployContrib("CoreTestExtensions.xml"); 54 deployContrib("CoreEventListenerService.xml");54 //deployContrib("CoreEventListenerService.xml"); 55 55 deployContrib("DemoRepository.xml"); 56 56 deployContrib("LifeCycleService.xml"); 57 deployContrib("LifeCycleServiceExtensions.xml");57 //deployContrib("LifeCycleServiceExtensions.xml"); 58 58 deployContrib("CoreEventListenerService.xml"); 59 deployContrib("PlatformService.xml");59 //deployContrib("PlatformService.xml"); 60 60 deployContrib("DefaultPlatform.xml"); 61 61 org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-events-core/src/main/java/org/nuxeo/ecm/platform/events/service/JMSDocumentMessageProducerService.java
r28510 r28989 45 45 private static final String CORE_EVENTS_DESTINATION = "topic/NXCoreEvents"; 46 46 47 private static final Log log = LogFactory 48 .getLog(JMSDocumentMessageProducerService.class); 47 private static final Log log = LogFactory.getLog(JMSDocumentMessageProducerService.class); 49 48 50 49 // :TODO: Ensure XA 51 50 private static final String XA_TOPIC_CONNECTION_FACTORY = "JmsNX"; 52 51 //private static final String XA_TOPIC_CONNECTION_FACTORY = "TopicConnectionFactory"; 53 54 52 55 53 /** … … 59 57 @Deprecated 60 58 public void produce(DocumentMessage message) { 59 if (message == null) { 60 log.debug("Incoming message is null. Cancelling..."); 61 } 61 62 log.debug("Producing message.............................."); 62 63 try { … … 68 69 } catch (DocumentMessageProducerException e) { 69 70 log.error("En error occured while trying to send a JMS message on" 70 + "on the topic/NXCoreMessagestopic destination");71 + "on the " + DESTINATION_JNDI_NAME + " topic destination"); 71 72 e.printStackTrace(); 72 73 } … … 74 75 75 76 public void produce(EventMessage message) { 77 if (message == null) { 78 log.debug("Incoming message is null. Cancelling..."); 79 } 76 80 log.debug("Producing message.............................."); 77 81 try { … … 81 85 } catch (DocumentMessageProducerException e) { 82 86 log.error("En error occured while trying to send a JMS message on" 83 + "on the topic/NXCoreMessagestopic destination");87 + "on the " + DESTINATION_JNDI_NAME + " topic destination"); 84 88 e.printStackTrace(); 85 89 } org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-imaging-transform/src/main/java/org/nuxeo/ecm/platform/imaging/transform/impl/ImagingTransformPluginImpl.java
r28476 r28989 39 39 ImagingTransformPlugin { 40 40 41 private static final long serialVersionUID = 1L;41 private static final long serialVersionUID = 8917837724437954053L; 42 42 43 43 @Override … … 69 69 if (in != null) { 70 70 InputStream result = service.rotate(in, angle); 71 /*72 * try { EditableImage image = EditableImage.create( new73 * ReadOp(in, ReadOp.Type.IMAGE)); image =74 * image.execute2( new RotateQuadrantOp(angle));75 * BufferedImage bufferedImage = image.execute(new76 * ConvertToBufferedImageOp()).getBufferedImage();77 * Iterator<ImageWriter> iterator =78 * ImageIO.getImageWritersByMIMEType(getDestinationMimeType());79 * while( iterator.hasNext() ) { ImageWriter writer =80 * iterator.next(); ImageWriteParam writerParams =81 * writer.getDefaultWriteParam(); if82 * (writerParams.canWriteCompressed()) {83 * writerParams.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);84 * writerParams.setCompressionQuality(1.0f); }85 * writer.setOutput(output); writer.write(null, new86 * IIOImage(bufferedImage, null, null), writerParams); } }87 * catch (IOException e) { // TODO Auto-generated catch88 * block e.printStackTrace(); }89 */90 71 // FIXME : local only 91 72 FileBlob blob = new FileBlob(result); … … 101 82 return results; 102 83 } 84 103 85 } org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-mimetype-core/src/test/java/org/nuxeo/ecm/platform/mimetype/TestMimetype.java
r22435 r28989 20 20 package org.nuxeo.ecm.platform.mimetype; 21 21 22 import java.io.File;23 import java.net.URL;24 22 import java.util.ArrayList; 25 23 import java.util.List; 26 import org.nuxeo.common.utils.FileUtils;27 24 28 25 import junit.framework.TestCase; org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-search-api/src/main/java/org/nuxeo/ecm/core/search/api/backend/indexing/resources/impl/ResolvedResourceImpl.java
r21705 r28989 106 106 } 107 107 108 public String toString() { 109 String className = getClass().getSimpleName(); 110 if (resourceProxy == null) { 111 return String.format("%s (uninitialized)", className); 112 } 113 return String.format("%s (for '%s')", getClass().getSimpleName(), 114 getConfiguration().getName()); 115 } 116 108 117 } org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-syndication/src/main/java/org/nuxeo/ecm/platform/syndication/FeedItemAdapter.java
r28463 r28989 28 28 import java.util.List; 29 29 30 31 30 import org.nuxeo.ecm.core.api.ClientException; 32 31 import org.nuxeo.ecm.core.api.DocumentModel; … … 37 36 * 38 37 */ 39 public class FeedItemAdapter {38 public class FeedItemAdapter { 40 39 41 40 private static final DateFormat DATE_PARSER = new SimpleDateFormat( … … 61 60 "description")); 62 61 63 //List<String> contributors = Arrays.asList((String[]) doc.getProperty("dublincore", "contributors"));62 //List<String> contributors = Arrays.asList((String[]) doc.getProperty("dublincore", "contributors")); 64 63 // direct cast fails for some ResultDocuments returned by search service !!! 65 64 List<String> contributors = new ArrayList<String>(); org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-transform-plugins/src/test/java/org/nuxeo/ecm/platform/transform/jooconverter/TestJOOoConverter2pdfService.java
r28924 r28989 29 29 30 30 /** 31 *32 31 * Testing the joooconverter. 33 32 * <p> 34 33 * We request the transformation service directly here. 35 34 * <p> 36 * These tests are conve ting basic documents to pdf35 * These tests are converting basic documents to pdf. 37 36 * 38 37 * @author <a href="mailto:ja@nuxeo.com">Julien Anguenot</a> 39 *40 38 */ 41 39 public class TestJOOoConverter2pdfService extends AbstractPluginTestCase { … … 44 42 45 43 public void testText2pdfConversion() throws Exception { 46 47 44 String path = "test-data/hello.txt"; 48 45 List<TransformDocument> results = service.transform(transformerName, … … 60 57 61 58 public void testDoc2pdfConversion() throws Exception { 62 63 59 String path = "test-data/hello.doc"; 64 60 List<TransformDocument> results = service.transform(transformerName, … … 96 92 /* 97 93 * OpenOffice.org 2.x documents. 98 *99 94 */ 100 95 org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/security/UserSession.java
r28924 r28989 38 38 public class UserSession implements Serializable { 39 39 40 41 40 private static final long serialVersionUID = 7639281445209754L; 42 41 43 42 private Principal currentUser; 44 43 45 @In(create = true, required =false)46 transient CoreSession documentManager;44 @In(create = true, required = false) 45 protected transient CoreSession documentManager; 47 46 48 47 @Factory(value = "currentUser", scope = SESSION) org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-webapp-core/src/main/java/org/nuxeo/ecm/webapp/wfnotification/NotifDatesEcheancesListener.java
r28476 r28989 72 72 + eventId); 73 73 74 if ("checkDatesEcheancesEvent".equals(eventId)) {74 if ("checkDatesEcheancesEvent".equals(eventId)) { 75 75 checkDatesAndSendNotifications(); 76 76 } org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-ws/src/main/java/org/nuxeo/ecm/platform/api/ws/DocumentProperty.java
r28476 r28989 29 29 public class DocumentProperty implements Serializable { 30 30 31 32 31 private static final long serialVersionUID = -5495522067864308283L; 33 32 … … 37 36 38 37 /** 39 * Em tpy ctor needed by tools like jaxb38 * Empty ctor needed by tools like jaxb. 40 39 */ 41 40 public DocumentProperty() { … … 57 56 58 57 /** 59 * Return the field value as a string.58 * Returns the field value as a string. 60 59 * <p> 61 60 * Here, we will always return string for the moment. Request from the org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/elements/ElementFactory.java
r28488 r28989 26 26 27 27 private ElementFactory() { 28 // This class is not supposed to be instan ciated.28 // This class is not supposed to be instantiated. 29 29 } 30 30 org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/elements/ElementFormatter.java
r28488 r28989 32 32 33 33 private ElementFormatter() { 34 // This class is not supposed to be instan ciated.34 // This class is not supposed to be instantiated. 35 35 } 36 36 org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/elements/ElementRenderer.java
r28488 r28989 42 42 43 43 private ElementRenderer() { 44 // This class is not supposed to be instan ciated.44 // This class is not supposed to be instantiated. 45 45 } 46 46 org.nuxeo.theme/branches/5.1/nuxeo-theme-core/src/main/java/org/nuxeo/theme/formats/FormatFactory.java
r20221 r28989 25 25 private static final Log log = LogFactory.getLog(FormatFactory.class); 26 26 27 // This class is not supposed to be instan ciated.27 // This class is not supposed to be instantiated. 28 28 private FormatFactory() { 29 29 } org.nuxeo.theme/branches/5.1/nuxeo-theme-jsf-editor/src/test/java/org/nuxeo/theme/test/jsf/editor/managers/TestUIManager.java
r14608 r28989 26 26 public void setUp() throws Exception { 27 27 super.setUp(); 28 deploy ("nxthemes-core-service.xml");29 deploy ("nxthemes-core-contrib.xml");30 deploy ("nxthemes-jsf-contrib.xml");31 deploy ("fragment-config.xml");28 deployContrib("nxthemes-core-service.xml"); 29 deployContrib("nxthemes-core-contrib.xml"); 30 deployContrib("nxthemes-jsf-contrib.xml"); 31 deployContrib("fragment-config.xml"); 32 32 } 33 33
