pnever 2004/09/01 08:46:32
Modified: src/share/org/apache/slide/search/basic
ComparableResourceImpl.java
src/webdav/server/org/apache/slide/webdav/method
MkcolMethod.java
src/share/org/apache/slide/content
NodeRevisionDescriptor.java
Log:
Minor: use constant NodeRevisionDescriptor.COLLECTION_TYPE
Revision Changes Path
1.10 +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.10
diff -u -r1.9 -r1.10
--- ComparableResourceImpl.java 28 Jul 2004 09:35:02 -0000 1.9
+++ ComparableResourceImpl.java 1 Sep 2004 15:46:32 -0000 1.10
@@ -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;
}
1.38 +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.38
diff -u -r1.37 -r1.38
--- MkcolMethod.java 5 Aug 2004 14:43:29 -0000 1.37
+++ MkcolMethod.java 1 Sep 2004 15:46:32 -0000 1.38
@@ -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());
1.36 +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.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- NodeRevisionDescriptor.java 11 Aug 2004 07:51:06 -0000 1.35
+++ NodeRevisionDescriptor.java 1 Sep 2004 15:46:32 -0000 1.36
@@ -1060,7 +1060,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]