manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piergior...@apache.org
Subject svn commit: r1452485 - in /manifoldcf/trunk: CHANGES.txt connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
Date Mon, 04 Mar 2013 20:27:51 GMT
Author: piergiorgio
Date: Mon Mar  4 20:27:51 2013
New Revision: 1452485

URL: http://svn.apache.org/r1452485
Log:
added mimetype and filename support to CMIS connector (CONNECTORS-656)

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1452485&r1=1452484&r2=1452485&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Mon Mar  4 20:27:51 2013
@@ -2,6 +2,8 @@ ManifoldCF Change Log
 $Id$
 
 ======================= 1.2-dev =====================
+CONNECTORS-656: Add mimetype and/or filename support to CMIS connector
+(Piergiorgio Lucidi)
 
 CONNECTORS-655: Add mimetype and/or filename support to Alfresco connector
 (Piergiorgio Lucidi)

Modified: manifoldcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java?rev=1452485&r1=1452484&r2=1452485&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
(original)
+++ manifoldcf/trunk/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
Mon Mar  4 20:27:51 2013
@@ -1072,6 +1072,8 @@ public class CmisRepositoryConnector ext
         
         try {
           RepositoryDocument rd = new RepositoryDocument();
+          rd.setFileName(document.getContentStreamFileName());
+          rd.setMimeType(document.getContentStreamMimeType());
           
           //binary
           if(fileLength>0 && document.getContentStream()!=null){



Mime
View raw message