Return-Path: X-Original-To: apmail-manifoldcf-commits-archive@www.apache.org Delivered-To: apmail-manifoldcf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C81E3E72F for ; Fri, 7 Dec 2012 01:38:13 +0000 (UTC) Received: (qmail 65589 invoked by uid 500); 7 Dec 2012 01:38:13 -0000 Delivered-To: apmail-manifoldcf-commits-archive@manifoldcf.apache.org Received: (qmail 65548 invoked by uid 500); 7 Dec 2012 01:38:13 -0000 Mailing-List: contact commits-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list commits@manifoldcf.apache.org Received: (qmail 65541 invoked by uid 99); 7 Dec 2012 01:38:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 01:38:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2012 01:38:11 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 2CA9C238890B; Fri, 7 Dec 2012 01:37:50 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@manifoldcf.apache.org From: kwright@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121207013750.2CA9C238890B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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)