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 pn...@apache.org on 2002/04/05 18:10:15 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/common NamespaceConfig.java

pnever      02/04/05 08:10:15

  Modified:    src/share/org/apache/slide/common NamespaceConfig.java
  Log:
  Added parameter workspacepath
  
  Revision  Changes    Path
  1.20      +30 -6     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.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- NamespaceConfig.java	28 Mar 2002 06:23:12 -0000	1.19
  +++ NamespaceConfig.java	5 Apr 2002 16:10:15 -0000	1.20
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/NamespaceConfig.java,v 1.19 2002/03/28 06:23:12 jericho Exp $
  - * $Revision: 1.19 $
  - * $Date: 2002/03/28 06:23:12 $
  + * $Header: /home/cvs/jakarta-slide/src/share/org/apache/slide/common/NamespaceConfig.java,v 1.20 2002/04/05 16:10:15 pnever Exp $
  + * $Revision: 1.20 $
  + * $Date: 2002/04/05 16:10:15 $
    *
    * ====================================================================
    *
  @@ -81,7 +81,7 @@
    * Configuration of the Namespace.
    * 
    * @author <a href="mailto:remm@apache.org">Remy Maucherat</a>
  - * @version $Revision: 1.19 $
  + * @version $Revision: 1.20 $
    */
   public final class NamespaceConfig {
       
  @@ -235,12 +235,18 @@
       
       
       /**
  -     * URI path for the DeltaV history data.
  +     * Identifies the collection that contains history resources.
        */
       protected String historyPath;
       
       
       /**
  +     * Identifies the collection that may contain workspace resources.
  +     */
  +    protected String workspacePath;
  +    
  +    
  +    /**
        * Controls the DeltaV auto-version behaviour.
        */
       protected String autoVersion;
  @@ -542,6 +548,16 @@
       
       
       /**
  +     * Workspace path accessor.
  +     *
  +     * @return String workspace path
  +     */
  +    public String getWorkspacePath() {
  +        return workspacePath;
  +    }
  +    
  +    
  +    /**
        * Auto-Version accessor.
        *
        * @return String auto-version setting
  @@ -841,7 +857,13 @@
           try {
               historyPath = config.getConfiguration("historypath").getValue();
           } catch (ConfigurationException e) {
  -            historyPath = "";
  +            historyPath = "/history";
  +        }
  +        
  +        try {
  +            workspacePath = config.getConfiguration("workspacepath").getValue();
  +        } catch (ConfigurationException e) {
  +            workspacePath = "/workspace";
           }
           
           try {
  @@ -1076,6 +1098,7 @@
               usersPath = "";
               filesPath = "";
               historyPath = "/history";
  +            workspacePath = "/workspace";
               autoVersion = "checkout-checkin";
               checkoutFork = "forbidden";
               checkinFork = "forbidden";
  @@ -1121,6 +1144,7 @@
               usersPath = "";
               filesPath = "";
               historyPath = "/history";
  +            workspacePath = "/workspace";
               autoVersion = "checkout-checkin";
               checkoutFork = "forbidden";
               checkinFork = "forbidden";
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>