pnever 02/05/22 09:25:06
Modified: src/webdav/server/org/apache/slide/webdav/util
VersioningHelper.java
Log:
Added "auto-update" processing (working-resource feature)
Revision Changes Path
1.51 +13 -11
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.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- VersioningHelper.java 20 May 2002 12:10:15 -0000 1.50
+++ VersioningHelper.java 22 May 2002 16:25:06 -0000 1.51
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/VersioningHelper.java,v
1.50 2002/05/20 12:10:15 pnever Exp $
- * $Revision: 1.50 $
- * $Date: 2002/05/20 12:10:15 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/VersioningHelper.java,v
1.51 2002/05/22 16:25:06 pnever Exp $
+ * $Revision: 1.51 $
+ * $Date: 2002/05/22 16:25:06 $
*
* ====================================================================
*
@@ -729,9 +729,8 @@
// set specific live props
wrNrd.setProperty(
new NodeProperty(P_CHECKED_OUT, pHelp.createHrefValue(rUri)) );
- NodeProperty predsetProp = rNrd.getProperty( P_PREDECESSOR_SET );
- if( predsetProp != null )
- wrNrd.setProperty( predsetProp );
+ wrNrd.setProperty(
+ new NodeProperty(P_PREDECESSOR_SET, pHelp.createHrefValue(rUri)) );
NodeProperty coutfProp = rNrd.getProperty(P_CHECKOUT_FORK);
if( coutfProp != null )
wrNrd.setProperty( coutfProp );
@@ -928,11 +927,6 @@
NodeRevisionDescriptor rNrd, boolean forkOk, boolean
keepCheckedOut )
throws SlideException, JDOMException, IOException,
PreconditionViolationException {
- // *************************************
- // TODO:
- // process auto-update property for WRs
- // *************************************
-
Iterator i;
Enumeration j;
NodeRevisionContent rNrc = content.retrieve( sToken, rNrds, rNrd );
@@ -1046,6 +1040,14 @@
}
content.store( sToken, vhrUri, vhrNrd, null ); //revisionContent=null
content.store( sToken, vhrUri, vrNrdNew, null ); //revisionContent=null
+
+ // auto-update
+ NodeProperty auProp = rNrd.getProperty( P_AUTO_UPDATE );
+ if( auProp != null ) {
+ Element auElm = pHelp.parsePropertyValue( (String)auProp.getValue()
);
+ String auUri = auElm.getTextTrim();
+ update( auUri, vrUriNew );
+ }
// Set status created
resp.setStatus( WebdavStatus.SC_CREATED );
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>