manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1418159 - /manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Date Fri, 07 Dec 2012 01:37:49 GMT
Author: kwright
Date: Fri Dec  7 01:37:48 2012
New Revision: 1418159

URL: http://svn.apache.org/viewvc?rev=1418159&view=rev
Log:
Add primitives for getting general metadata info

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

Modified: manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java?rev=1418159&r1=1418158&r2=1418159&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-578/connectors/livelink/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/livelink/LivelinkConnector.java
Fri Dec  7 01:37:48 2012
@@ -4943,8 +4943,65 @@ public class LivelinkConnector extends o
       }
       return obj;
     }
-  
-    public LLValue getObjectValue()
+
+    /** Get OpenText document name.
+    */
+    public String getName()
+      throws ServiceInterruption, ManifoldCFException
+    {
+      LLValue elem = getObjectValue();
+      if (elem == null)
+        return null;
+      return elem.toString("NAME"); 
+    }
+
+    /** Get OpenText comments/description.
+    */
+    public String getComments()
+      throws ServiceInterruption, ManifoldCFException
+    {
+      LLValue elem = getObjectValue();
+      if (elem == null)
+        return null;
+      return elem.toString("COMMENT"); 
+    }
+
+    /** Get owner ID.
+    */
+    public int getOwnerId()
+      throws ServiceInterruption, ManifoldCFException
+    {
+      LLValue elem = getObjectValue();
+      if (elem == null)
+        return -1;
+      return elem.toInteger("USERID"); 
+    }
+    
+    /** Get creation date.
+    */
+    public Date getCreationDate()
+      throws ServiceInterruption, ManifoldCFException
+    {
+      LLValue elem = getObjectValue();
+      if (elem == null)
+        return null;
+      return elem.toDate("CREATEDATE"); 
+    }
+    
+    /** Get creator ID.
+    */
+    public int getCreatorId()
+      throws ServiceInterruption, ManifoldCFException
+    {
+      LLValue elem = getObjectValue();
+      if (elem == null)
+        return -1;
+      return elem.toInteger("CREATEDBY"); 
+    }
+
+    /** Get the objInfo object.
+    */
+    protected LLValue getObjectValue()
       throws ServiceInterruption, ManifoldCFException
     {
       if (objectValue == null)



Mime
View raw message