juergen 02/04/11 05:54:20
Modified: src/webdav/server/org/apache/slide/webdav/util
VersioningHelper.java
Log:
Added signatures of the mustCheckin(out)AutoVersionedVCR() that take the URI of the
resource as parameter.
(ralf)
Revision Changes Path
1.26 +39 -3
jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/VersioningHelper.java
Index: VersioningHelper.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/VersioningHelper.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- VersioningHelper.java 10 Apr 2002 08:09:19 -0000 1.25
+++ VersioningHelper.java 11 Apr 2002 12:54:20 -0000 1.26
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/VersioningHelper.java,v
1.25 2002/04/10 08:09:19 juergen Exp $
- * $Revision: 1.25 $
- * $Date: 2002/04/10 08:09:19 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/VersioningHelper.java,v
1.26 2002/04/11 12:54:20 juergen Exp $
+ * $Revision: 1.26 $
+ * $Date: 2002/04/11 12:54:20 $
*
* ====================================================================
*
@@ -1037,6 +1037,23 @@
* Indicates if the (VCR) reource be checked out prior to modifying it
* depending on its <code><auto-version></code> property.
*
+ * @param resourceUri the URI of the resource.
+ *
+ * @return <code>true</code> if the resource must be checked out prior to
+ * modifying it.
+ *
+ * @throws SlideException
+ */
+ public boolean mustCheckoutAutoVersionedVCR(String resourceUri) throws
SlideException {
+ NodeRevisionDescriptors vcrRevisionDescriptors =
retrieveRevisionDescriptors(resourceUri);
+ NodeRevisionDescriptor vcrRevisionDescriptor =
retrieveLatestRevisionDescriptor(resourceUri, vcrRevisionDescriptors);
+ return mustCheckoutAutoVersionedVCR(vcrRevisionDescriptors,
vcrRevisionDescriptor);
+ }
+
+ /**
+ * Indicates if the (VCR) reource be checked out prior to modifying it
+ * depending on its <code><auto-version></code> property.
+ *
* @param revisionDescriptors the NodeRevisionDescriptors of the resource.
* @param revisionDescriptor the NodeRevisionDescriptor of the resource.
*
@@ -1058,6 +1075,24 @@
* depending on its <code><auto-version></code> property.
*
* @param slideToken the SlideToken to use.
+ * @param resourceUri the URI of the resource.
+ *
+ * @return <code>true</code> if the resource must be checked in after
+ * modifying it.
+ *
+ * @throws SlideException
+ */
+ public boolean mustCheckinAutoVersionedVCR(SlideToken slideToken, String
resourceUri) throws SlideException {
+ NodeRevisionDescriptors vcrRevisionDescriptors =
retrieveRevisionDescriptors(resourceUri);
+ NodeRevisionDescriptor vcrRevisionDescriptor =
retrieveLatestRevisionDescriptor(resourceUri, vcrRevisionDescriptors);
+ return mustCheckinAutoVersionedVCR(slideToken, vcrRevisionDescriptors,
vcrRevisionDescriptor);
+ }
+
+ /**
+ * Indicates if the (VCR) reource be checked in after modifying it
+ * depending on its <code><auto-version></code> property.
+ *
+ * @param slideToken the SlideToken to use.
* @param revisionDescriptors the NodeRevisionDescriptors of the resource.
* @param revisionDescriptor the NodeRevisionDescriptor of the resource.
*
@@ -1362,6 +1397,7 @@
}
}
+
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>