Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-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 66405B1F8 for ; Tue, 10 Jan 2012 21:35:10 +0000 (UTC) Received: (qmail 57423 invoked by uid 500); 10 Jan 2012 21:35:10 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 57380 invoked by uid 500); 10 Jan 2012 21:35:09 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 57372 invoked by uid 99); 10 Jan 2012 21:35:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 21:35:09 +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; Tue, 10 Jan 2012 21:35:06 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id A54562388ABA; Tue, 10 Jan 2012 21:34:45 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1229747 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java Date: Tue, 10 Jan 2012 21:34:45 -0000 To: commits@chemistry.apache.org From: jens@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120110213445.A54562388ABA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jens Date: Tue Jan 10 21:34:45 2012 New Revision: 1229747 URL: http://svn.apache.org/viewvc?rev=1229747&view=rev Log: change maxItems parameter for example requests add getAllowableActions call Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java?rev=1229747&r1=1229746&r2=1229747&view=diff ============================================================================== --- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java (original) +++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-util/src/main/java/org/apache/chemistry/opencmis/util/specexamples/Main.java Tue Jan 10 21:34:45 2012 @@ -70,9 +70,9 @@ import org.apache.commons.logging.LogFac public class Main { private static final Log LOG = LogFactory.getLog(Main.class.getName()); - private static final BigInteger MAX_ITEMS = BigInteger.valueOf(-1); + private static final BigInteger TYPE_DEPTH_ALL = BigInteger.valueOf(-1); + private static final BigInteger MAX_ITEMS = null; private static final BigInteger SKIP_COUNT = BigInteger.valueOf(0); - // private static final String COMPLEX_TYPE = "ComplexType"; private static final String TOPLEVEL_TYPE = "DocumentTopLevel"; private static final String VERSIONED_TYPE = "VersionableType"; private static String LOGDIR = System.getProperty("java.io.tmpdir");// + File.separator; @@ -99,8 +99,7 @@ public class Main { } public void runAllBindings() { -// for (int i = 0; i < BINDINGS.length; i++) { - for (int i = 0; i < 2; i++) { + for (int i = 0; i < BINDINGS.length; i++) { bindingType = BINDINGS[i]; init(URLS[i], BINDINGS[i]); run(); @@ -115,6 +114,7 @@ public class Main { getRepositoryInfo(); getRepositories(); + String docId = getTestDocId(); String folderId = getTestFolderId(); @@ -129,6 +129,7 @@ public class Main { getAcl(docId); String id1 = createDocument("SampleDocument", TOPLEVEL_TYPE, rootFolderId, VersioningState.NONE); updateProperties(id1, PropertyIds.NAME, "RenamedDocument"); + getAllowableActions(id1); deleteObject(id1); // Discovery Service: @@ -443,9 +444,8 @@ public class Main { } private void getTypeDescendants(String typeId) { - final BigInteger DEPTH = BigInteger.valueOf(-1); LOG.debug("getTypeDescendants " + typeId); - repSvc.getTypeDescendants(repositoryId, typeId, DEPTH, true /* includePropertyDefinitions */, null); + repSvc.getTypeDescendants(repositoryId, typeId, TYPE_DEPTH_ALL, true /* includePropertyDefinitions */, null); renameFiles("getTypeDescendants"); LOG.debug("getTypeDescendants() done."); }