manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1493208 - /manifoldcf/branches/CONNECTORS-714/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Date Fri, 14 Jun 2013 19:07:13 GMT
Author: kwright
Date: Fri Jun 14 19:07:13 2013
New Revision: 1493208

URL: http://svn.apache.org/r1493208
Log:
Use FileDataSize

Modified:
    manifoldcf/branches/CONNECTORS-714/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java

Modified: manifoldcf/branches/CONNECTORS-714/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-714/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java?rev=1493208&r1=1493207&r2=1493208&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-714/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-714/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Fri Jun 14 19:07:13 2013
@@ -4258,7 +4258,7 @@ public class LivelinkConnector extends o
         String mimeType = versInfo.getMimeType();
         if (activities.checkMimeTypeIndexable(mimeType))
         {
-          Long dataSize = objInfo.getDataSize();
+          Long dataSize = versInfo.getDataSize();
           if (dataSize != null && activities.checkLengthIndexable(dataSize.longValue()))
           {
             String fileName = versInfo.getFileName();
@@ -5601,7 +5601,18 @@ public class LivelinkConnector extends o
     {
       return getVersionValue() != null;
     }
-    
+
+    /** Get data size.
+    */
+    public Long getDataSize()
+      throws ServiceInterruption, ManifoldCFException
+    {
+      LLValue elem = getVersionValue();
+      if (elem == null)
+        return null;
+      return new Long(elem.toInteger("FILEDATASIZE"));
+    }
+
     /** Get file name.
     */
     public String getFileName()
@@ -5758,17 +5769,6 @@ public class LivelinkConnector extends o
       return "(Volume: "+volumeID+", Object: "+objectID+")";
     }
     
-    /** Get data size.
-    */
-    public Long getDataSize()
-      throws ServiceInterruption, ManifoldCFException
-    {
-      LLValue elem = getObjectValue();
-      if (elem == null)
-        return null;
-      return new Long(elem.toInteger("DATASIZE"));
-    }
-
     /**
     * Returns the object ID specified by the path name.
     * @param startPath is the folder name (a string with dots as separators)



Mime
View raw message