manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piergior...@apache.org
Subject svn commit: r1452984 - in /manifoldcf/trunk: CHANGES.txt connectors/cmis/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/cmis/CmisRepositoryConnector.java
Date Tue, 05 Mar 2013 20:29:34 GMT
Author: piergiorgio
Date: Tue Mar  5 20:29:33 2013
New Revision: 1452984

URL: http://svn.apache.org/r1452984
Log:
added the support of created date and modified date for CMIS (CONNECTORS-660)

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=1452984&r1=1452983&r2=1452984&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Tue Mar  5 20:29:33 2013
@@ -2,6 +2,9 @@ ManifoldCF Change Log
 $Id$
 
 ======================= 1.2-dev =====================
+CONNECTORS-660: CMIS connector created date and modified date support
+(Piergiorgio Lucidi)
+
 CONNECTORS-659: Alfresco connector created date and modified date support
 (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=1452984&r1=1452983&r2=1452984&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
Tue Mar  5 20:29:33 2013
@@ -26,6 +26,7 @@ import java.math.BigInteger;
 import java.rmi.NotBoundException;
 import java.rmi.RemoteException;
 import java.text.SimpleDateFormat;
+import java.util.Date;
 import java.util.GregorianCalendar;
 import java.util.HashMap;
 import java.util.List;
@@ -1072,8 +1073,13 @@ public class CmisRepositoryConnector ext
         
         try {
           RepositoryDocument rd = new RepositoryDocument();
+          Date createdDate = document.getCreationDate().getTime();
+          Date modifiedDate = document.getLastModificationDate().getTime();
+          
           rd.setFileName(document.getContentStreamFileName());
           rd.setMimeType(document.getContentStreamMimeType());
+          rd.setCreatedDate(createdDate);
+          rd.setModifiedDate(modifiedDate);
           
           //binary
           if(fileLength>0 && document.getContentStream()!=null){



Mime
View raw message