pnever 2004/09/01 08:40:13
Modified: src/share/org/apache/slide/search/basic Tag:
SLIDE_2_1_RELEASE_BRANCH
ComparableResourceImpl.java
src/webdav/server/org/apache/slide/webdav/method Tag:
SLIDE_2_1_RELEASE_BRANCH MkcolMethod.java
src/share/org/apache/slide/content Tag:
SLIDE_2_1_RELEASE_BRANCH
NodeRevisionDescriptor.java
Log:
Minor: use constant NodeRevisionDescriptor.COLLECTION_TYPE
Revision Changes Path
No revision
No revision
1.9.2.1 +6 -6
jakarta-slide/src/share/org/apache/slide/search/basic/ComparableResourceImpl.java
Index: ComparableResourceImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/search/basic/ComparableResourceImpl.java,v
retrieving revision 1.9
retrieving revision 1.9.2.1
diff -u -r1.9 -r1.9.2.1
--- ComparableResourceImpl.java 28 Jul 2004 09:35:02 -0000 1.9
+++ ComparableResourceImpl.java 1 Sep 2004 15:40:12 -0000 1.9.2.1
@@ -5,7 +5,7 @@
*
* ====================================================================
*
- * Copyright 1999-2002 The Apache Software Foundation
+ * Copyright 1999-2002 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -417,7 +417,7 @@
NodeProperty property = revisionDescriptor.getProperty("resourcetype");
if ((property != null)
- && (property.getValue().equals("<collection/>"))) {
+ &&
(property.getValue().equals(NodeRevisionDescriptor.COLLECTION_TYPE))) {
result = true;
}
No revision
No revision
1.37.2.1 +5 -5
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/MkcolMethod.java
Index: MkcolMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/MkcolMethod.java,v
retrieving revision 1.37
retrieving revision 1.37.2.1
diff -u -r1.37 -r1.37.2.1
--- MkcolMethod.java 5 Aug 2004 14:43:29 -0000 1.37
+++ MkcolMethod.java 1 Sep 2004 15:40:13 -0000 1.37.2.1
@@ -5,7 +5,7 @@
*
* ====================================================================
*
- * Copyright 1999-2002 The Apache Software Foundation
+ * Copyright 1999-2002 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -138,7 +138,7 @@
}
// Resource type
- revisionDescriptor.setResourceType("<collection/>");
+ revisionDescriptor.setResourceType(NodeRevisionDescriptor.COLLECTION_TYPE);
// Creation date
revisionDescriptor.setCreationDate(new Date());
No revision
No revision
1.34.2.1 +5 -5
jakarta-slide/src/share/org/apache/slide/content/NodeRevisionDescriptor.java
Index: NodeRevisionDescriptor.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/share/org/apache/slide/content/NodeRevisionDescriptor.java,v
retrieving revision 1.34
retrieving revision 1.34.2.1
diff -u -r1.34 -r1.34.2.1
--- NodeRevisionDescriptor.java 28 Jul 2004 09:37:55 -0000 1.34
+++ NodeRevisionDescriptor.java 1 Sep 2004 15:40:13 -0000 1.34.2.1
@@ -1030,7 +1030,7 @@
setCreationDate(new Date());
// setName("");
// By default, a resource is a collection
- setResourceType("<collection/>");
+ setResourceType(COLLECTION_TYPE);
setProperty(SOURCE, ""); // live property, can not be modified
setContentLength(-1);
setLastModified(new Date());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]