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/08/12 15:24:18 UTC
cvs commit: jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind AbstractResourceKind.java
pnever 2002/08/12 06:24:18
Modified: src/webdav/server/org/apache/slide/webdav/util/resourcekind
AbstractResourceKind.java
Log:
Take switches into account (org.apache.slide.util.Configuration)
Revision Changes Path
1.14 +28 -22 jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/AbstractResourceKind.java
Index: AbstractResourceKind.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/resourcekind/AbstractResourceKind.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- AbstractResourceKind.java 9 Aug 2002 09:14:54 -0000 1.13
+++ AbstractResourceKind.java 12 Aug 2002 13:24:17 -0000 1.14
@@ -69,6 +69,8 @@
import org.apache.slide.common.NamespaceAccessToken;
+import org.apache.slide.util.Configuration;
+
import org.apache.slide.content.NodeRevisionDescriptors;
import org.apache.slide.content.NodeRevisionDescriptor;
import org.apache.slide.content.NodeProperty;
@@ -86,21 +88,20 @@
/**
* Abstraction of a WebDAV-compliant resource kind.
*/
-abstract public class AbstractResourceKind implements ResourceKind,
-WebdavConstants, DeltavConstants, AclConstants, DaslConstants {
-
+abstract public class AbstractResourceKind implements ResourceKind, WebdavConstants, DeltavConstants, AclConstants, DaslConstants {
+
// supported reports
protected static Set supportedFeatures = new HashSet();
-
+
// protected properties
protected static Set liveProperties = new HashSet();
-
+
// protected properties
protected static Set protectedProperties = new HashSet();
-
+
// computed properties
protected static Set computedProperties = new HashSet();
-
+
/**
* A String array containing the names of the Elements supported as a
* value of the <code><auto-version></code> property,
@@ -156,16 +157,21 @@
// features
supportedFeatures.add( F_WEBDAV );
supportedFeatures.add( F_SLIDE );
- 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 );
+ if( Configuration.useIntegratedLocking() )
+ supportedFeatures.add( F_LOCKING );
+ if( Configuration.useIntegratedSecurity() )
+ supportedFeatures.add( F_ACCESS_CONTROL );
+ if( Configuration.useSearch() )
+ supportedFeatures.add( F_SEARCHING_AND_LOCATING );
+ if( Configuration.useVersionControl() ) {
+ 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_ACL);
@@ -400,7 +406,7 @@
}
return s;
}
-
+
/**
* Get the set methods supported by this resource kind.
*/
@@ -427,7 +433,7 @@
public boolean isSupportedMethod( String method ) {
return getSupportedMethods().contains( method );
}
-
+
/**
* Get the set reports supported by this resource kind.
*/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>