juergen     2002/07/31 02:10:51

  Modified:    src/webdav/server/org/apache/slide/webdav/method
                        CheckinMethod.java
  Log:
  Handle the <keep-checked-out> in the request content.
  (ralf)
  
  Revision  Changes    Path
  1.12      +8 -4      
jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/CheckinMethod.java
  
  Index: CheckinMethod.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/method/CheckinMethod.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- CheckinMethod.java        27 Jun 2002 10:49:58 -0000      1.11
  +++ CheckinMethod.java        31 Jul 2002 09:10:51 -0000      1.12
  @@ -96,6 +96,7 @@
       
       /** Marshalling variables */
       private boolean forkOk = false;
  +    private boolean keepCheckedOut = false;
       
       
       // ----------------------------------------------------------- Constructors
  @@ -138,6 +139,9 @@
                       Element e = (Element)i.next();
                       if( e.getName().equals(E_FORK_OK) )
                           forkOk = true;
  +                    if( e.getName().equals(E_KEEP_CHECKED_OUT) ) {
  +                        keepCheckedOut = true;
  +                    }
                   }
               }
               catch (IOException  e){
  @@ -169,7 +173,7 @@
           try {
               VersioningHelper vh = VersioningHelper.getVersioningHelper(
                   slideToken, token, req, resp, getConfig() );
  -            locationValue = vh.checkin( resourcePath , false, false);
  +            locationValue = vh.checkin( resourcePath , false, keepCheckedOut);
           }
           catch (PreconditionViolationException e) {
               sendPreconditionViolation(e);
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to