</properties>
<dependencies>
+ <dependency>
+ <artifactId>lucene-analyzers-common</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ <scope>provided</scope>
+ <version>4.7.2</version>
+ </dependency>
+ <dependency>
+ <artifactId>lucene-sandbox</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ <scope>provided</scope>
+ <version>4.7.2</version>
+ </dependency>
+ <dependency>
+ <artifactId>lucene-queries</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ <scope>provided</scope>
+ <version>4.7.2</version>
+ </dependency>
+ <dependency>
+ <artifactId>lucene-core</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ <scope>provided</scope>
+ <version>4.7.2</version>
+ </dependency>
+ <dependency>
+ <artifactId>lucene-queryparser</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ <scope>provided</scope>
+ <version>4.7.2</version>
+ </dependency>
+
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
<scope>test</scope>
</dependency>
- <!-- CollectionSpace dependencies -->
- <dependency>
- <groupId>org.collectionspace.services</groupId>
- <artifactId>org.collectionspace.services.authority.service</artifactId>
- <version>${project.version}</version>
- <exclusions>
- <exclusion>
- <artifactId>nuxeo-core-facade</artifactId>
- <groupId>org.nuxeo.ecm.core</groupId>
- </exclusion>
- <exclusion>
- <artifactId>servlet-api-2.5</artifactId>
- <groupId>org.mortbay.jetty</groupId>
- </exclusion>
- <exclusion>
- <artifactId>jaxb-xjc</artifactId>
- <groupId>com.sun.xml.bind</groupId>
- </exclusion>
- </exclusions>
- </dependency>
+ <!-- CollectionSpace dependencies -->
<dependency>
<groupId>org.collectionspace.services</groupId>
<artifactId>org.collectionspace.services.authorization.service</artifactId>
<artifactId>jersey-core</artifactId>
<groupId>com.sun.jersey</groupId>
</exclusion>
+ <exclusion>
+ <artifactId>lucene-sandbox</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>lucene-queries</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>lucene-core</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>lucene-queryparser</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>lucene-analyzers-common</artifactId>
+ <groupId>org.apache.lucene</groupId>
+ </exclusion>
</exclusions>
</dependency>
<dependency>
<artifactId>ant</artifactId>
<version>1.7.0</version>
</dependency>
+ <dependency>
+ <groupId>org.collectionspace.services</groupId>
+ <artifactId>
+ org.collectionspace.services.authority.service
+ </artifactId>
+ <version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <artifactId>nuxeo-core-facade</artifactId>
+ <groupId>org.nuxeo.ecm.core</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>servlet-api-2.5</artifactId>
+ <groupId>org.mortbay.jetty</groupId>
+ </exclusion>
+ <exclusion>
+ <artifactId>jaxb-xjc</artifactId>
+ <groupId>com.sun.xml.bind</groupId>
+ </exclusion>
+ </exclusions>
+ </dependency>
</dependencies>
<build>
Blob nuxeoBlob, Boolean getContentFlag) {
BlobsCommon result = new BlobsCommon();
- if (documentModel != null) {
+ if (documentModel != null && nuxeoBlob != null) {
result.setMimeType(nuxeoBlob.getMimeType());
result.setName(nuxeoBlob.getFilename());
result.setLength(Long.toString(nuxeoBlob.getLength()));
isNonImageDerivative = true;
}
}
+
+ if (logger.isDebugEnabled()) {
+ if (docBlob == null) {
+ String msg = String.format("Could not retrieve document blob for Nuxeo document ID = '%s' CSID = '%s'",
+ repositoryId, NuxeoUtils.getCsid(documentModel));
+ logger.warn(msg);
+ }
+ }
//
// Create the result instance that will contain the blob metadata