You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ju...@apache.org on 2002/03/08 10:11:19 UTC
cvs commit: jakarta-slide/src/share/org/apache/slide/common NamespaceConfig.java
juergen 02/03/08 01:11:19
Modified: src/share/org/apache/slide/common NamespaceConfig.java
Log:
Added configuration "auto-version-control".
Revision Changes Path
1.18 +27 -4 jakarta-slide/src/share/org/apache/slide/common/NamespaceConfig.java
Index: NamespaceConfig.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/NamespaceConfig.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- NamespaceConfig.java 16 Feb 2002 17:26:58 -0000 1.17
+++ NamespaceConfig.java 8 Mar 2002 09:11:19 -0000 1.18
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/NamespaceConfig.java,v 1.17 2002/02/16 17:26:58 pnever Exp $
- * $Revision: 1.17 $
- * $Date: 2002/02/16 17:26:58 $
+ * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/NamespaceConfig.java,v 1.18 2002/03/08 09:11:19 juergen Exp $
+ * $Revision: 1.18 $
+ * $Date: 2002/03/08 09:11:19 $
*
* ====================================================================
*
@@ -81,7 +81,7 @@
* Configuration of the Namespace.
*
* @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
- * @version $Revision: 1.17 $
+ * @version $Revision: 1.18 $
*/
public final class NamespaceConfig {
@@ -311,6 +311,12 @@
*/
protected String autoCreateUsersRole = "slideroles.basic.UserRoleImpl";
+ /**
+ * Indicates if a resource just created by a <code>PUT</code> should be
+ * set under version-control.
+ */
+ protected boolean autoVersionControl = false;
+
// ------------------------------------------------------------- Properties
@@ -564,6 +570,17 @@
return checkinFork;
}
+ /**
+ * Indicates if a resource just created by a <code>PUT</code> should be
+ * set under version-control.
+ *
+ * @return <code>true</code>, if a resource just created by a <code>PUT</code>
+ * should be set under version-control.
+ *
+ */
+ public boolean getAutoVersionControl() {
+ return autoVersionControl;
+ }
/**
* Get default properties for a given role.
@@ -843,6 +860,12 @@
checkinFork = config.getConfiguration("checkin-fork").getValue();
} catch (ConfigurationException e) {
checkinFork = "";
+ }
+
+ try {
+ autoVersionControl = config.getConfiguration("auto-version-control").getValueAsBoolean(false);
+ } catch (ConfigurationException e) {
+ autoVersionControl = false;
}
try {
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>