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 lu...@apache.org on 2004/11/29 19:58:08 UTC

cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/util UriHandler.java

luetzkendorf    2004/11/29 10:58:08

  Modified:    src/webdav/server/org/apache/slide/webdav/util
                        UriHandler.java
  Log:
  adaption to new PropertyName instance pooling and new NodeProperty
  constructor
  
  Revision  Changes    Path
  1.34      +16 -14    jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/UriHandler.java
  
  Index: UriHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/UriHandler.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- UriHandler.java	5 Aug 2004 14:43:30 -0000	1.33
  +++ UriHandler.java	29 Nov 2004 18:58:08 -0000	1.34
  @@ -184,8 +184,8 @@
                   if (nextHnProp == null || nextHnProp.getValue() == null) {
                       // XXX start with historyCollectionHackChildren to assure no
                       // resources are created directly in history folder
  -                    nextHnProp = new NodeProperty(I_NEXT_HISTORY_NAME, "10", NamespaceCache.SLIDE_URI);
  -                    nextHnProp.setKind(NodeProperty.Kind.PROTECTED);
  +                    nextHnProp = new NodeProperty(I_NEXT_HISTORY_NAME, "10", 
  +                            NamespaceCache.SLIDE_URI, true); // protected
                       hpathNrd.setProperty(nextHnProp);
                   }
   
  @@ -240,15 +240,17 @@
                       nextHnProp = hpathNrd.getProperty(I_NEXT_HISTORY_NAME);
                       if (nextHnProp != null) {
                           hpathNrd.removeProperty(nextHnProp);
  -                        nextHnProp = new NodeProperty(I_NEXT_HISTORY_NAME, nextHnProp.getValue(),
  -                                NamespaceCache.SLIDE_URI);
  -                        nextHnProp.setKind(NodeProperty.Kind.PROTECTED);
  +                        nextHnProp = new NodeProperty(I_NEXT_HISTORY_NAME, 
  +                                nextHnProp.getValue(),
  +                                NamespaceCache.SLIDE_URI,
  +                                true); // protected
                           hpathNrd.setProperty(nextHnProp);
                       }
                   }
                   if (nextHnProp == null || nextHnProp.getValue() == null) {
  -                    nextHnProp = new NodeProperty(I_NEXT_HISTORY_NAME, I_INITIAL_HISTORY_NAME, NamespaceCache.SLIDE_URI);
  -                    nextHnProp.setKind(NodeProperty.Kind.PROTECTED);
  +                    nextHnProp = new NodeProperty(I_NEXT_HISTORY_NAME, 
  +                            I_INITIAL_HISTORY_NAME, NamespaceCache.SLIDE_URI,
  +                            true); // protected
                       hpathNrd.setProperty(nextHnProp);
                   }
   
  @@ -308,8 +310,8 @@
                       wrpathNrd.removeProperty(nextWrnProp);
                       nextWrnProp = new NodeProperty(I_NEXT_WORKINGRESOURCE_NAME,
                                                      nextWrnProp.getValue(),
  -                                                   NamespaceCache.SLIDE_URI);
  -                    nextWrnProp.setKind( NodeProperty.Kind.PROTECTED );
  +                                                   NamespaceCache.SLIDE_URI,
  +                                                   true); // protected
                       wrpathNrd.setProperty( nextWrnProp );
                   }
               }
  @@ -318,8 +320,8 @@
                   nextWrnProp =
                       new NodeProperty(I_NEXT_WORKINGRESOURCE_NAME,
                                        I_INITIAL_WORKINGRESOURCE_NAME,
  -                                     NamespaceCache.SLIDE_URI );
  -                nextWrnProp.setKind( NodeProperty.Kind.PROTECTED );
  +                                     NamespaceCache.SLIDE_URI, 
  +                                     true); // protected
                   wrpathNrd.setProperty( nextWrnProp );
               }
               
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org