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/02/28 13:39:17 UTC

cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind AbstractResourceKind.java Activity.java ActivityImpl.java Baseline.java BaselineImpl.java CheckedInVersionControlled.java CheckedInVersionControlledImpl.java CheckedOut.java CheckedOutImpl.java CheckedOutVersionControlled.java CheckedOutVersionControlledConfiguration.java CheckedOutVersionControlledConfigurationImpl.java CheckedOutVersionControlledImpl.java CollectionVersion.java CollectionVersionImpl.java DeltavCompliant.java DeltavCompliantCollection.java DeltavCompliantCollectionImpl.java DeltavCompliantImpl.java DeltavCompliantUnmappedUrl.java DeltavCompliantUnmappedUrlImpl.java Principal.java PrincipalImpl.java ResourceKind.java Version.java Versionable.java VersionableImpl.java VersionControlled.java VersionControlledCollection.java VersionControlledCollectionImpl.java VersionControlledConfiguration.java VersionControlledConfigurationImpl.java VersionControlledImpl.java VersionHistory.java VersionHistoryImpl.java VersionImpl.java Working.java WorkingImpl.java Workspace.java WorkspaceImpl.java

pnever      02/02/28 04:39:17

  Added:       src/webdav/server/org/apache/slide/webdav/util/resourcekind
                        AbstractResourceKind.java Activity.java
                        ActivityImpl.java Baseline.java BaselineImpl.java
                        CheckedInVersionControlled.java
                        CheckedInVersionControlledImpl.java CheckedOut.java
                        CheckedOutImpl.java
                        CheckedOutVersionControlled.java
                        CheckedOutVersionControlledConfiguration.java
                        CheckedOutVersionControlledConfigurationImpl.java
                        CheckedOutVersionControlledImpl.java
                        CollectionVersion.java CollectionVersionImpl.java
                        DeltavCompliant.java DeltavCompliantCollection.java
                        DeltavCompliantCollectionImpl.java
                        DeltavCompliantImpl.java
                        DeltavCompliantUnmappedUrl.java
                        DeltavCompliantUnmappedUrlImpl.java Principal.java
                        PrincipalImpl.java ResourceKind.java Version.java
                        Versionable.java VersionableImpl.java
                        VersionControlled.java
                        VersionControlledCollection.java
                        VersionControlledCollectionImpl.java
                        VersionControlledConfiguration.java
                        VersionControlledConfigurationImpl.java
                        VersionControlledImpl.java VersionHistory.java
                        VersionHistoryImpl.java VersionImpl.java
                        Working.java WorkingImpl.java Workspace.java
                        WorkspaceImpl.java
  Log:
  Initial
  
  Revision  Changes    Path
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/AbstractResourceKind.java
  
  Index: AbstractResourceKind.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/AbstractResourceKind.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  import java.lang.reflect.*;
  
  import org.apache.slide.content.NodeRevisionDescriptor;
  import org.apache.slide.webdav.util.WebdavConstants;
  import org.apache.slide.webdav.util.DeltavConstants;
  import org.apache.slide.webdav.util.AclConstants;
  import org.apache.slide.webdav.util.DaslConstants;
  
  /**
   * Abstraction of a WebDAV-compliant resource kind.
   */
  abstract public class AbstractResourceKind implements ResourceKind,
  WebdavConstants, DeltavConstants, AclConstants, DaslConstants {
          
      // supported reports
      protected static Set supportedFeatures = new HashSet();
          
      // protected properties
      protected static Set protectedProperties = new HashSet();
          
      // computed properties
      protected static Set computedProperties = new HashSet();
                  
      // static initialization
      static {
          // features
          supportedFeatures.add( F_LOCKING );
          supportedFeatures.add( F_ACCESS_CONTROL );
          supportedFeatures.add( F_SEARCHING_AND_LOCATING );
          supportedFeatures.add( F_VERSION_CONTROL );
          supportedFeatures.add( F_VERSION_HISTORY );
          supportedFeatures.add( F_CHECKOUT_IN_PLACE );
          supportedFeatures.add( F_WORKSPACE );
          supportedFeatures.add( F_WORKING_RESOURCE );
          supportedFeatures.add( F_LABEL );
          supportedFeatures.add( F_UPDATE );
          
          // Computed properties
  //        computedProperties.add( P_LOCKDISCOVERY );
  //        computedProperties.add( P_SUPPORTEDLOCK );
  //        computedProperties.add( P_<some_acl_methods> );
          computedProperties.add( P_SUCCESSOR_SET );
          computedProperties.add( P_CHECKOUT_SET );
          computedProperties.add( P_ROOT_VERSION );
          computedProperties.add( P_VERSION_HISTORY );
          computedProperties.add( P_WORKSPACE_CHECKOUT_SET );
          computedProperties.add( P_VERSION_CONTROLLED_CONFIGURATION );
          computedProperties.add( P_BASELINE_CONTROLLED_COLLECTION_SET );
          computedProperties.add( P_ACTIVITY_VERSION_SET );
          computedProperties.add( P_ACTIVITY_CHECKOUT_SET );
          computedProperties.add( P_CURRENT_WORKSPACE_SET );
          computedProperties.add( P_ECLIPSED_SET );
          computedProperties.add( P_SUPPORTED_LIVE_PROPERTY_SET ); //"protected" in spec but too long for some datastores
          computedProperties.add( P_SUPPORTED_METHOD_SET );        //"protected" in spec but too long for some datastores
          computedProperties.add( P_SUPPORTED_REPORT_SET );        //"protected" in spec but too long for some datastores
          
          // Protected properties
  //        protectedProperties.add( P_SUPPORTED_METHOD_SET );
  //        protectedProperties.add( P_SUPPORTED_LIVE_PROPERTY_SET );
  //        protectedProperties.add( P_SUPPORTED_REPORT_SET );
          protectedProperties.add( P_CHECKED_IN );
          protectedProperties.add( P_CHECKED_OUT );
          protectedProperties.add( P_PREDECESSOR_SET );
          protectedProperties.add( P_VERSION_NAME );
          protectedProperties.add( P_VERSION_SET );
          protectedProperties.add( P_WORKSPACE );
          protectedProperties.add( P_LABEL_NAME_SET );
          protectedProperties.add( P_AUTO_UPDATE );
          protectedProperties.add( P_BASELINE_CONTROLLED_COLLECTION );
          protectedProperties.add( P_BASELINE_COLLECTION );
          protectedProperties.add( P_SUBBASELINE_SET );
          protectedProperties.add( P_VERSION_CONTROLLED_BINDING_SET );
      }
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          return null;
      }
      
      /**
       * Factory method.
       */
      static public ResourceKind determineResourceKind( NodeRevisionDescriptor nrd ) {
          
          if( nrd == null ) {
              return DeltavCompliantUnmappedUrlImpl.getInstance();
          }
          else if( nrd.exists(P_CHECKED_IN) ) {
              return CheckedInVersionControlledImpl.getInstance();
          }
          else if( nrd.exists(P_CHECKED_OUT) ) {
              return CheckedOutVersionControlledImpl.getInstance();
          }
          else if( nrd.exists(P_VERSION_NAME) ) {
              return VersionImpl.getInstance();
          }
          else if( nrd.exists(P_WORKSPACE_CHECKOUT_SET) ) {
              return WorkspaceImpl.getInstance();
          }
          else if( nrd.exists(P_AUTO_UPDATE) ) {
              return WorkingImpl.getInstance();
          }
          else if( nrd.propertyValueContains(P_RESOURCETYPE, E_VERSION_HISTORY) ) {
              return VersionHistoryImpl.getInstance();
          }
          else if( nrd.propertyValueContains(P_RESOURCETYPE, E_PRINCIPAL) ) {
              return PrincipalImpl.getInstance();
          }
          else if( nrd.propertyValueContains(P_RESOURCETYPE, E_COLLECTION) ) {
              return DeltavCompliantCollectionImpl.getInstance();
          }
          else {
              return VersionableImpl.getInstance();
          }
      }
      
      /**
       *
       */
      protected static boolean isSupportedFeature( String feature ) {
          return supportedFeatures.contains( feature );
      }
      
      /**
       *
       */
      protected static boolean isSupportedFeature( String feature, String[] excludedFeatures ) {
          return supportedFeatures.contains( feature )
              && (Arrays.binarySearch(excludedFeatures, feature) < 0);
      }
      
      /**
       * Return true if the specified property is protected.
       */
      public static boolean isProtectedProperty( String propName ) {
          return( protectedProperties.contains(propName) ||
                  computedProperties.contains(propName) );
      }
      
      /**
       * Return true if the specified property is computed.
       */
      public static boolean isComputedProperty( String propName ) {
          return( computedProperties.contains(propName) );
      }
      
      
      
      /**
       * Get the set properties supported by this resource kind.
       */
      public Set getSupportedLiveProperties() {
          return getSupportedLiveProperties( new String[0] );
      }
      
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String filter ) {
          Set s = getSupportedLiveProperties( new String[0] );
          if( Q_COMPUTED_ONLY.equals(filter) ) {
              s.retainAll( computedProperties );
          }
          if( Q_PROTECTED_ONLY.equals(filter) ) {
              s.retainAll( computedProperties );
              s.retainAll( protectedProperties );
          }
          return s;
      }
      
      /**
       * Get the set properties supported by this resource kind.
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = new HashSet();
          Iterator it = getSuperKinds().iterator();
          while( it.hasNext() ) {
              ResourceKind superkind = (ResourceKind)it.next();
              s.addAll( superkind.getSupportedLiveProperties(excludedFeatures) );
          }
          return s;
      }
      
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String filter, String[] excludedFeatures ) {
          Set s = getSupportedLiveProperties( excludedFeatures );
          if( Q_COMPUTED_ONLY.equals(filter) ) {
              s.retainAll( computedProperties );
          }
          if( Q_PROTECTED_ONLY.equals(filter) ) {
              s.retainAll( computedProperties );
              s.retainAll( protectedProperties );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set result = new HashSet();
          Iterator it = getSuperKinds().iterator();
          while( it.hasNext() ) {
              ResourceKind superkind = (ResourceKind)it.next();
              result.addAll( superkind.getSupportedMethods() );
          }
          return result;
      }
      
      /**
       * Return true, if the specified method is supported by this resource kind.
       */
      public boolean isSupportedMethod( String method ) {
          return getSupportedMethods().contains( method );
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set result = new HashSet();
          Iterator it = getSuperKinds().iterator();
          while( it.hasNext() ) {
              ResourceKind superkind = (ResourceKind)it.next();
              result.addAll( superkind.getSupportedReports() );
          }
          return result;
      }
      
      /**
       *
       */
      public String toString() {
          return plainClassName( getClass() );
      }
      
      protected List getSuperKinds() {
          List result = new ArrayList();
          Class myclass = getClass();
          String myclassName = plainClassName( myclass );
          Class[] ifs = myclass.getInterfaces();
          for( int i = 0; i < ifs.length; i++ ) {
              Class myif = ifs[i];
              String myifName = plainClassName( myif );
              if( !myclassName.startsWith(myifName) )
                  continue;
              Class[] superifs = myif.getInterfaces();
              for( int j = 0; j < superifs.length; j++ ) {
                  Class superif = superifs[j];
                  String superifName = plainClassName( superif );
                  if( "ResourceKind".equals(superifName) )
                      continue;
                  Class superclass = null;
                  ResourceKind superkind = null;
                  try {
                      superclass = Class.forName( superif.getName()+"Impl" );
                      Class[] ptypes = new Class[0];
                      Method facmeth = superclass.getMethod( "getInstance", ptypes );
                      Object[] parms = new Object[0];
                      result.add( facmeth.invoke(null, parms) );
                  }
                  catch( Exception x ) {
                      x.printStackTrace();
                      throw new IllegalStateException( x.getMessage() );
                  }
              }
          }
          
          return result;
      }
      
      private String plainClassName( Class c ) {
          String n = c.getName();
          int i = n.lastIndexOf( '.' );
          return n.substring( i + 1 );
      }
      
      /**
       *
       */
      public static void main(String[] args) {
          String rkn = args[0];
          Class[] pt = new Class[0];
          Object[] p = new Object[0];
          Iterator i;
          
          if( rkn == null || rkn.length() == 0 )
              return;
          try {
              Class rkc = Class.forName(
                  "org.apache.slide.webdav.util.resourcekind."+rkn+"Impl");
              ResourceKind rk =
                  (ResourceKind)rkc.getMethod("getInstance", pt).invoke(null, p);
              System.out.println("\nResource kind: "+rk);
              System.out.println("\nSupported live properties:");
              i = rk.getSupportedLiveProperties().iterator();
              while( i.hasNext() )
                  System.out.println("- "+i.next());
              System.out.println("\nSupported methods:");
              i = rk.getSupportedMethods().iterator();
              while( i.hasNext() )
                  System.out.println("- "+i.next());
              System.out.println("\nSupported reports:");
              i = rk.getSupportedReports().iterator();
              while( i.hasNext() )
                  System.out.println("- "+i.next());
          }
          catch( Exception x ) { x.printStackTrace(); }
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Activity.java
  
  Index: Activity.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Activity.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface Activity extends DeltavCompliant {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/ActivityImpl.java
  
  Index: ActivityImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/ActivityImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class ActivityImpl extends AbstractResourceKind implements Activity {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new ActivityImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected ActivityImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          // Activity
          if( isSupportedFeature(F_ACTIVITY, excludedFeatures) ) {
              s.add( P_ACTIVITY_VERSION_SET );
              s.add( P_ACTIVITY_CHECKOUT_SET );
              s.add( P_SUBACTIVITY_SET );
              s.add( P_CURRENT_WORKSPACE_SET );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Baseline.java
  
  Index: Baseline.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Baseline.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface Baseline extends Version {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/BaselineImpl.java
  
  Index: BaselineImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/BaselineImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class BaselineImpl extends AbstractResourceKind implements Baseline {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new BaselineImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected BaselineImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_BASELINE, excludedFeatures) ) {
              s.add( P_BASELINE_COLLECTION );
              s.add( P_SUBBASELINE_SET );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedInVersionControlled.java
  
  Index: CheckedInVersionControlled.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedInVersionControlled.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface CheckedInVersionControlled extends VersionControlled {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedInVersionControlledImpl.java
  
  Index: CheckedInVersionControlledImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedInVersionControlledImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class CheckedInVersionControlledImpl extends AbstractResourceKind implements CheckedInVersionControlled {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new CheckedInVersionControlledImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected CheckedInVersionControlledImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_VERSION_CONTROL, excludedFeatures) )
              s.add( P_CHECKED_IN );
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          if( isSupportedFeature(F_CHECKOUT_IN_PLACE) )
              s.add( M_CHECKOUT );
          if( isSupportedFeature(F_UPDATE) )
              s.add( M_UPDATE );
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOut.java
  
  Index: CheckedOut.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOut.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface CheckedOut extends DeltavCompliant {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutImpl.java
  
  Index: CheckedOutImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class CheckedOutImpl extends AbstractResourceKind implements CheckedOut {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new CheckedOutImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected CheckedOutImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_VERSION_CONTROL, excludedFeatures) ) {
              s.add( P_CHECKED_OUT );
              s.add( P_PREDECESSOR_SET );
          }
          if( isSupportedFeature(F_CHECKOUT_IN_PLACE, excludedFeatures)
          || isSupportedFeature(F_WORKING_RESOURCE, excludedFeatures) ) {
              s.add( P_CHECKOUT_FORK );
              s.add( P_CHECKIN_FORK );
          }
          if( isSupportedFeature(F_MERGE, excludedFeatures) ) {
              s.add( P_MERGE_SET );
              s.add( P_AUTO_MERGE_SET );
          }
          if( isSupportedFeature(F_ACTIVITY, excludedFeatures) ) {
              s.add( P_UNRESERVED );
              s.add( P_ACTIVITY_SET );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          if( isSupportedFeature(F_CHECKOUT_IN_PLACE) || isSupportedFeature(F_WORKING_RESOURCE) )
              s.add( M_CHECKIN );
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutVersionControlled.java
  
  Index: CheckedOutVersionControlled.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutVersionControlled.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface CheckedOutVersionControlled extends VersionControlled, CheckedOut {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutVersionControlledConfiguration.java
  
  Index: CheckedOutVersionControlledConfiguration.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutVersionControlledConfiguration.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface CheckedOutVersionControlledConfiguration extends VersionControlledConfiguration {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutVersionControlledConfigurationImpl.java
  
  Index: CheckedOutVersionControlledConfigurationImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutVersionControlledConfigurationImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class CheckedOutVersionControlledConfigurationImpl extends AbstractResourceKind implements CheckedOutVersionControlledConfiguration {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new CheckedOutVersionControlledConfigurationImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected CheckedOutVersionControlledConfigurationImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_BASELINE, excludedFeatures) ) {
              s.add( P_SUBBASELINE_SET );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutVersionControlledImpl.java
  
  Index: CheckedOutVersionControlledImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CheckedOutVersionControlledImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class CheckedOutVersionControlledImpl extends AbstractResourceKind implements CheckedOutVersionControlled {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new CheckedOutVersionControlledImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected CheckedOutVersionControlledImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          if( isSupportedFeature(F_CHECKOUT_IN_PLACE) ) {
              s.add( M_UNCHECKOUT );
          }
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CollectionVersion.java
  
  Index: CollectionVersion.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CollectionVersion.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface CollectionVersion extends Version {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CollectionVersionImpl.java
  
  Index: CollectionVersionImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/CollectionVersionImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class CollectionVersionImpl extends AbstractResourceKind implements CollectionVersion {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new CollectionVersionImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected CollectionVersionImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_VERSION_CONTROLLED_COLLECTION, excludedFeatures) ) {
              s.add( P_VERSION_CONTROLLED_BINDING_SET );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliant.java
  
  Index: DeltavCompliant.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliant.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface DeltavCompliant extends ResourceKind {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantCollection.java
  
  Index: DeltavCompliantCollection.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantCollection.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface DeltavCompliantCollection extends DeltavCompliant {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantCollectionImpl.java
  
  Index: DeltavCompliantCollectionImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantCollectionImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class DeltavCompliantCollectionImpl extends AbstractResourceKind implements DeltavCompliantCollection {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new DeltavCompliantCollectionImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected DeltavCompliantCollectionImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          if( isSupportedFeature(F_BASELINE) )
              s.add( M_BASELINE_CONTROL );
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantImpl.java
  
  Index: DeltavCompliantImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class DeltavCompliantImpl extends AbstractResourceKind implements DeltavCompliant {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new DeltavCompliantImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected DeltavCompliantImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          s.add( P_CREATIONDATE );
          s.add( P_DISPLAYNAME );
          s.add( P_GETCONTENTLANGUAGE );
          s.add( P_GETCONTENTLENGTH );
          s.add( P_GETCONTENTTYPE );
          s.add( P_GETETAG );
          s.add( P_GETLASTMODIFIED );
          s.add( P_RESOURCETYPE );
          s.add( P_SOURCE );
          if( isSupportedFeature(F_LOCKING, excludedFeatures) ) {
              s.add( P_LOCKDISCOVERY );
              s.add( P_SUPPORTEDLOCK );
          }
          if( isSupportedFeature(F_ACCESS_CONTROL, excludedFeatures) ) {
              s.add( P_ALTERNATE_URI_SET );
              s.add( P_OWNER );
              s.add( P_SUPPORTED_PRIVILEGE_SET );
              s.add( P_CURRENT_USER_PRIVILEGE_SET );
              s.add( P_ACL );
              s.add( P_ACL_SEMANTICS );
              s.add( P_PRINCIPAL_COLLECTION_SET );
          }
          if( isSupportedFeature(F_VERSION_CONTROL, excludedFeatures) ) {
              s.add( P_COMMENT );
              s.add( P_CREATOR_DISPLAYNAME );
              s.add( P_SUPPORTED_METHOD_SET );
              s.add( P_SUPPORTED_LIVE_PROPERTY_SET );
              s.add( P_SUPPORTED_REPORT_SET );
          }
          if( isSupportedFeature(F_WORKSPACE, excludedFeatures) )
              s.add( P_WORKSPACE );
          if( isSupportedFeature(F_BASELINE, excludedFeatures) )
              s.add( P_VERSION_CONTROLLED_CONFIGURATION );
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          s.add( M_CONNECT );
          s.add( M_COPY );
          s.add( M_DELETE );
          s.add( M_GET );
          s.add( M_HEAD );
          s.add( M_MOVE );
          s.add( M_OPTIONS );
          s.add( M_POST );
          s.add( M_PROPFIND );
          s.add( M_PROPPATCH );
          s.add( M_PUT );
          s.add( M_TRACE );
          if( isSupportedFeature(F_LOCKING) ) {
              s.add( M_LOCK );
              s.add( M_UNLOCK );
          }
          if( isSupportedFeature(F_ACCESS_CONTROL) )
              s.add( M_ACL );
          if( isSupportedFeature(F_ACCESS_CONTROL) || isSupportedFeature(F_VERSION_CONTROL) )
              s.add( M_REPORT );
          if( isSupportedFeature(F_SEARCHING_AND_LOCATING) ) {
              s.add( M_SEARCH );
          }
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          if( isSupportedFeature(F_ACCESS_CONTROL) || isSupportedFeature(F_VERSION_CONTROL) )
              s.add( R_EXPAND_PROPERTY );
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantUnmappedUrl.java
  
  Index: DeltavCompliantUnmappedUrl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantUnmappedUrl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface DeltavCompliantUnmappedUrl extends ResourceKind {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantUnmappedUrlImpl.java
  
  Index: DeltavCompliantUnmappedUrlImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/DeltavCompliantUnmappedUrlImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class DeltavCompliantUnmappedUrlImpl extends AbstractResourceKind implements DeltavCompliantUnmappedUrl {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new DeltavCompliantUnmappedUrlImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected DeltavCompliantUnmappedUrlImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          s.add( M_PUT );
          s.add( M_MKCOL );
          if( isSupportedFeature(F_VERSION_CONTROL) )
              s.add( M_VERSION_CONTROL );
          if( isSupportedFeature(F_WORKSPACE) )
              s.add( M_MKWORKSPACE );
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Principal.java
  
  Index: Principal.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Principal.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface Principal extends ResourceKind {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/PrincipalImpl.java
  
  Index: PrincipalImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/PrincipalImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class PrincipalImpl extends AbstractResourceKind implements Principal {
      
  	protected static ResourceKind singleton = null;
  	
  	/**
  	 * Factory method.
  	 */
  	static public ResourceKind getInstance() {
  		if( singleton == null )
  			singleton = new PrincipalImpl();
  		return singleton;
  	}
      
  	/**
  	 * Protected constructor
  	 */
  	protected PrincipalImpl() {
  	}
  
      /**
  	 * Get the set properties supported by this resource kind.
  	 * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
  	 * @param excludedFeatures array of F_* constants (no filtering if null or empty)
  	 * @see org.apache.slide.webdav.util.WebdavConstants
  	 * @see org.apache.slide.webdav.util.DeltavConstants
  	 * @see org.apache.slide.webdav.util.AclConstants
  	 * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
  		Set s = super.getSupportedLiveProperties( excludedFeatures );
  		return s;
  	}
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
  		Set s = super.getSupportedMethods();
  		return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
  		Set s = super.getSupportedReports();
  		return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/ResourceKind.java
  
  Index: ResourceKind.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/ResourceKind.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  /**
   * Abstraction of a WebDAV-compliant resource kind.
   */
  public interface ResourceKind {
      
      /**
       * Get the set live properties supported by this resource kind.
       */
      Set getSupportedLiveProperties();
      
      /**
       * Get the set live properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      Set getSupportedLiveProperties( String filter );
      
      /**
       * Get the set live properties supported by this resource kind.
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      Set getSupportedLiveProperties( String[] excludedFeatures );
      
      /**
       * Get the set live properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      Set getSupportedLiveProperties( String filter, String[] excludedFeatures );
      
      /**
       * Get the set methods supported by this resource kind.
       */
      Set getSupportedMethods();
      
      /**
       * Return true, if the specified method is supported by this resource kind.
       */
      boolean isSupportedMethod( String method );
      
      /**
       * Get the set reports supported by this resource kind.
       */
      Set getSupportedReports();
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Version.java
  
  Index: Version.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Version.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface Version extends DeltavCompliant {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Versionable.java
  
  Index: Versionable.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Versionable.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface Versionable extends DeltavCompliant {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionableImpl.java
  
  Index: VersionableImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionableImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class VersionableImpl extends AbstractResourceKind implements Versionable {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new VersionableImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected VersionableImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          if( isSupportedFeature(F_VERSION_CONTROL) )
              s.add( M_VERSION_CONTROL );
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlled.java
  
  Index: VersionControlled.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlled.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface VersionControlled extends DeltavCompliant {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledCollection.java
  
  Index: VersionControlledCollection.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledCollection.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface VersionControlledCollection extends VersionControlled {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledCollectionImpl.java
  
  Index: VersionControlledCollectionImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledCollectionImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class VersionControlledCollectionImpl extends AbstractResourceKind implements VersionControlledCollection {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new VersionControlledCollectionImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected VersionControlledCollectionImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_VERSION_CONTROLLED_COLLECTION, excludedFeatures) ) {
              s.add( P_ECLIPSED_SET );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledConfiguration.java
  
  Index: VersionControlledConfiguration.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledConfiguration.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface VersionControlledConfiguration extends VersionControlled {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledConfigurationImpl.java
  
  Index: VersionControlledConfigurationImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledConfigurationImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class VersionControlledConfigurationImpl extends AbstractResourceKind implements VersionControlledConfiguration {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new VersionControlledConfigurationImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected VersionControlledConfigurationImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_BASELINE, excludedFeatures) ) {
              s.add( P_BASELINE_CONTROLLED_COLLECTION );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledImpl.java
  
  Index: VersionControlledImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionControlledImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class VersionControlledImpl extends AbstractResourceKind implements VersionControlled {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new VersionControlledImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected VersionControlledImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_VERSION_CONTROL, excludedFeatures) )
              s.add( P_AUTO_VERSION );
          if( isSupportedFeature(F_VERSION_HISTORY, excludedFeatures) )
              s.add( P_VERSION_HISTORY );
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          if( isSupportedFeature(F_VERSION_CONTROL) )
              s.add( M_VERSION_CONTROL );
          if( isSupportedFeature(F_MERGE) )
              s.add( M_MERGE );
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          if( isSupportedFeature(F_VERSION_CONTROL) )
              s.add( R_VERSION_TREE );
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionHistory.java
  
  Index: VersionHistory.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionHistory.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface VersionHistory extends DeltavCompliant {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionHistoryImpl.java
  
  Index: VersionHistoryImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionHistoryImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class VersionHistoryImpl extends AbstractResourceKind implements VersionHistory {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new VersionHistoryImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected VersionHistoryImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_VERSION_HISTORY, excludedFeatures) ) {
              s.add( P_VERSION_SET );
              s.add( P_ROOT_VERSION );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          if( isSupportedFeature(F_VERSION_CONTROL) )
              s.add( R_VERSION_TREE );
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionImpl.java
  
  Index: VersionImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/VersionImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class VersionImpl extends AbstractResourceKind implements Version {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new VersionImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected VersionImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_VERSION_CONTROL, excludedFeatures) ) {
              s.add( P_PREDECESSOR_SET );
              s.add( P_SUCCESSOR_SET );
              s.add( P_CHECKOUT_SET );
              s.add( P_VERSION_NAME );
          }
          if( isSupportedFeature(F_CHECKOUT_IN_PLACE, excludedFeatures) 
          || isSupportedFeature(F_WORKING_RESOURCE, excludedFeatures) ) {
              s.add( P_CHECKOUT_FORK );
              s.add( P_CHECKIN_FORK );
          }
          if( isSupportedFeature(F_VERSION_HISTORY, excludedFeatures) )
              s.add( P_VERSION_HISTORY );
          if( isSupportedFeature(F_LABEL, excludedFeatures) )
              s.add( P_LABEL_NAME_SET );
          if( isSupportedFeature(F_ACTIVITY, excludedFeatures) )
              s.add( P_ACTIVITY_SET);
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          if( isSupportedFeature(F_LABEL) )
              s.add( M_LABEL );
          if( isSupportedFeature(F_WORKING_RESOURCE) )
              s.add( M_CHECKOUT );
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          if( isSupportedFeature(F_VERSION_CONTROL) )
              s.add( R_VERSION_TREE );
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Working.java
  
  Index: Working.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Working.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface Working extends DeltavCompliant, CheckedOut {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/WorkingImpl.java
  
  Index: WorkingImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/WorkingImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class WorkingImpl extends AbstractResourceKind implements Working {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new WorkingImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected WorkingImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_WORKING_RESOURCE, excludedFeatures) ) {
              s.add( P_AUTO_UPDATE );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Workspace.java
  
  Index: Workspace.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/Workspace.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  public interface Workspace extends DeltavCompliantCollection {
  }
  
  
  
  
  1.1                  jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/WorkspaceImpl.java
  
  Index: WorkspaceImpl.java
  ===================================================================
  /*
   * $Header: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/WorkspaceImpl.java,v 1.1 2002/02/28 12:39:16 pnever Exp $
   * $Revision: 1.1 $
   * $Date: 2002/02/28 12:39:16 $
   *
   * ====================================================================
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 1999 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *    notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *    notice, this list of conditions and the following disclaimer in
   *    the documentation and/or other materials provided with the
   *    distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *    any, must include the following acknowlegement:
   *       "This product includes software developed by the
   *        Apache Software Foundation (http://www.apache.org/)."
   *    Alternately, this acknowlegement may appear in the software itself,
   *    if and wherever such third-party acknowlegements normally appear.
   *
   * 4. The names "The Jakarta Project", "Tomcat", and "Apache Software
   *    Foundation" must not be used to endorse or promote products derived
   *    from this software without prior written permission. For written
   *    permission, please contact apache@apache.org.
   *
   * 5. Products derived from this software may not be called "Apache"
   *    nor may "Apache" appear in their names without prior written
   *    permission of the Apache Group.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * ====================================================================
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * <http://www.apache.org/>.
   *
   * [Additional notices, if required by prior licensing conditions]
   *
   */
  
  package org.apache.slide.webdav.util.resourcekind;
  
  import java.util.*;
  
  
  public class WorkspaceImpl extends AbstractResourceKind implements Workspace {
      
      protected static ResourceKind singleton = null;
      
      /**
       * Factory method.
       */
      static public ResourceKind getInstance() {
          if( singleton == null )
              singleton = new WorkspaceImpl();
          return singleton;
      }
      
      /**
       * Protected constructor
       */
      protected WorkspaceImpl() {
      }
  
      /**
       * Get the set properties supported by this resource kind.
       * @param filter Q_PROTECTED_ONLY or Q_COMPUTED_ONLY (no filtering if null)
       * @param excludedFeatures array of F_* constants (no filtering if null or empty)
       * @see org.apache.slide.webdav.util.WebdavConstants
       * @see org.apache.slide.webdav.util.DeltavConstants
       * @see org.apache.slide.webdav.util.AclConstants
       * @see org.apache.slide.webdav.util.DaslConstants
       */
      public Set getSupportedLiveProperties( String[] excludedFeatures ) {
          Set s = super.getSupportedLiveProperties( excludedFeatures );
          if( isSupportedFeature(F_WORKSPACE, excludedFeatures) ) {
              s.add( P_WORKSPACE_CHECKOUT_SET );
              if( isSupportedFeature(F_BASELINE, excludedFeatures) )
                  s.add( P_BASELINE_CONTROLLED_COLLECTION_SET );
              if( isSupportedFeature(F_ACTIVITY, excludedFeatures) )
                  s.add( P_CURRENT_ACTIVITY_SET );
          }
          return s;
      }
  
      /**
       * Get the set methods supported by this resource kind.
       */
      public Set getSupportedMethods() {
          Set s = super.getSupportedMethods();
          return s;
      }
  
      /**
       * Get the set reports supported by this resource kind.
       */
      public Set getSupportedReports() {
          Set s = super.getSupportedReports();
          return s;
      }
  }
  
  
  
  

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