Return-Path: Delivered-To: apmail-sling-commits-archive@www.apache.org Received: (qmail 71087 invoked from network); 2 Oct 2010 17:35:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Oct 2010 17:35:17 -0000 Received: (qmail 71428 invoked by uid 500); 2 Oct 2010 17:35:17 -0000 Delivered-To: apmail-sling-commits-archive@sling.apache.org Received: (qmail 71359 invoked by uid 500); 2 Oct 2010 17:35:17 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 71352 invoked by uid 99); 2 Oct 2010 17:35:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 02 Oct 2010 17:35:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.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; Sat, 02 Oct 2010 17:35:16 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 883D72388A02; Sat, 2 Oct 2010 17:34:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1003843 - /sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java Date: Sat, 02 Oct 2010 17:34:56 -0000 To: commits@sling.apache.org From: fmeschbe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101002173456.883D72388A02@eris.apache.org> Author: fmeschbe Date: Sat Oct 2 17:34:56 2010 New Revision: 1003843 URL: http://svn.apache.org/viewvc?rev=1003843&view=rev Log: SLING-1796 By default do not checkout checked-in nodes before applying modifications. This is to not enable modifications which were not possible before adding versioning support. This may still be overwritten by configuration to automatically checkout checked-in nodes before modification. Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java Modified: sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java URL: http://svn.apache.org/viewvc/sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java?rev=1003843&r1=1003842&r2=1003843&view=diff ============================================================================== --- sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java (original) +++ sling/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/VersioningConfiguration.java Sat Oct 2 17:34:56 2010 @@ -5,9 +5,9 @@ * licenses this file to You under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -22,11 +22,11 @@ package org.apache.sling.servlets.post; * nodes are handled in the post servlet. */ public class VersioningConfiguration implements Cloneable { - - private boolean autoCheckout = true; - + + private boolean autoCheckout = false; + private boolean checkinOnNewVersionableNode = false; - + private boolean autoCheckin = true; @Override @@ -61,5 +61,5 @@ public class VersioningConfiguration imp public void setCheckinOnNewVersionableNode(boolean checkinOnNewVersionableNode) { this.checkinOnNewVersionableNode = checkinOnNewVersionableNode; } - + }