manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From piergior...@apache.org
Subject svn commit: r1808257 - /manifoldcf/branches/CONNECTORS-1356-2.7.1/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/agents/output/cmisoutput/CmisOutputConnector.java
Date Wed, 13 Sep 2017 17:10:48 GMT
Author: piergiorgio
Date: Wed Sep 13 17:10:47 2017
New Revision: 1808257

URL: http://svn.apache.org/viewvc?rev=1808257&view=rev
Log:
added agnostic support to the CMIS Output Connector: now it allows content from different
repository connectors (CONNECTORS-1356)

Modified:
    manifoldcf/branches/CONNECTORS-1356-2.7.1/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/agents/output/cmisoutput/CmisOutputConnector.java

Modified: manifoldcf/branches/CONNECTORS-1356-2.7.1/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/agents/output/cmisoutput/CmisOutputConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-1356-2.7.1/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/agents/output/cmisoutput/CmisOutputConnector.java?rev=1808257&r1=1808256&r2=1808257&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-1356-2.7.1/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/agents/output/cmisoutput/CmisOutputConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-1356-2.7.1/connectors/cmis/connector/src/main/java/org/apache/manifoldcf/agents/output/cmisoutput/CmisOutputConnector.java
Wed Sep 13 17:10:47 2017
@@ -958,9 +958,12 @@ public class CmisOutputConnector extends
 				properties.put(PropertyIds.CREATION_DATE, creationDate);
 				properties.put(PropertyIds.LAST_MODIFICATION_DATE, lastModificationDate);
 				
-				ObjectId objId = new ObjectIdImpl(objectId);
-				properties.put(PropertyIds.OBJECT_ID, objId);
-
+				//check objectId
+				if(StringUtils.isNotEmpty(objectId)){
+					ObjectId objId = new ObjectIdImpl(objectId);
+					properties.put(PropertyIds.OBJECT_ID, objId);
+				}
+				
 				// Content Stream
 				InputStream inputStream = document.getBinaryStream();
 				contentStream = new ContentStreamImpl(fileName, BigInteger.valueOf(binaryLength), mimeType,



Mime
View raw message