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 2004/09/01 16:25:02 UTC
cvs commit: jakarta-slide/src/share/org/apache/slide/content NodeRevisionDescriptor.java
pnever 2004/09/01 07:25:02
Modified: src/share/org/apache/slide/search/basic Tag:
SLIDE_2_0_RELEASE_BRANCH
ComparableResourceImpl.java
src/webdav/server/org/apache/slide/webdav/method Tag:
SLIDE_2_0_RELEASE_BRANCH MkcolMethod.java
src/share/org/apache/slide/content Tag:
SLIDE_2_0_RELEASE_BRANCH
NodeRevisionDescriptor.java
Log:
Minor: use constant NodeRevisionDescriptor.COLLECTION_TYPE
Revision Changes Path
No revision
No revision
1.7.2.2 +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.7.2.1
retrieving revision 1.7.2.2
diff -u -r1.7.2.1 -r1.7.2.2
--- ComparableResourceImpl.java 5 Feb 2004 16:05:10 -0000 1.7.2.1
+++ ComparableResourceImpl.java 1 Sep 2004 14:25:02 -0000 1.7.2.2
@@ -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.
@@ -418,7 +418,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.29.2.2 +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.29.2.1
retrieving revision 1.29.2.2
diff -u -r1.29.2.1 -r1.29.2.2
--- MkcolMethod.java 5 Feb 2004 16:11:23 -0000 1.29.2.1
+++ MkcolMethod.java 1 Sep 2004 14:25:02 -0000 1.29.2.2
@@ -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.31.2.4 +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.31.2.3
retrieving revision 1.31.2.4
diff -u -r1.31.2.3 -r1.31.2.4
--- NodeRevisionDescriptor.java 12 May 2004 12:38:17 -0000 1.31.2.3
+++ NodeRevisionDescriptor.java 1 Sep 2004 14:25:02 -0000 1.31.2.4
@@ -1031,7 +1031,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: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org