juergen     02/03/13 01:23:01

  Modified:    src/webdav/server/org/apache/slide/webdav/util
                        PropertyRetriever.java
  Log:
  Method(s) getPropertiesOfObject() now returns a List of <propstat> Elements instead 
of a single one.
  Added a signature that takes the NodeRevisionDescriptors and NodeRevisionDescriptor 
(needed for PropfindMethod).
  (ralf)
  
  Revision  Changes    Path
  1.3       +52 -14    
jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/PropertyRetriever.java
  
  Index: PropertyRetriever.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/PropertyRetriever.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PropertyRetriever.java    8 Mar 2002 11:56:40 -0000       1.2
  +++ PropertyRetriever.java    13 Mar 2002 09:23:01 -0000      1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/PropertyRetriever.java,v
 1.2 2002/03/08 11:56:40 juergen Exp $
  - * $Revision: 1.2 $
  - * $Date: 2002/03/08 11:56:40 $
  + * $Header: 
/home/cvs/jakarta-slide/src/webdav/server/org/apache/slide/webdav/util/PropertyRetriever.java,v
 1.3 2002/03/13 09:23:01 juergen Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/03/13 09:23:01 $
    *
    * ====================================================================
    *
  @@ -80,19 +80,22 @@
   
   import org.apache.slide.content.RevisionDescriptorNotFoundException;
   import org.apache.slide.content.NodeRevisionNumber;
  +import org.apache.slide.content.NodeRevisionDescriptor;
  +import org.apache.slide.content.NodeRevisionDescriptors;
   
   import org.jdom.Element;
   import org.jdom.JDOMException;
   
  +import java.util.List;
   
   /**
    * An implementation of this interface is used to retrieve the properties of a
  - * resource as a <code>&lt;propstat&gt;</code> element. The main code of this
  + * resource as a list of <code>&lt;propstat&gt;</code> elements. The main code of 
this
    * class has been copied from the <code>PropFindMethod</code>. All methods
    * providing property information (<code>PropFindMethod</code>,
    * <code>ReportMethod</code>) should use an implementation of this interface.
    *
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>Ralf Stuckert</a>
    */
  @@ -101,9 +104,9 @@
       
       
       /**
  -     * Returnes the requested properties of the last revision of the resource
  -     * identified by the given <code>uri</code> as an XML JDOM Element (which
  -     * is the <code>&lt;propstat&gt;</code>).
  +     * Returns the requested properties of the last revision of the resource
  +     * identified by the given <code>uri</code> as list of 
<code>&lt;propstat&gt;</code>
  +     * JDOM Elements.
        *
        * @param      requestedProperties  the requested properties.
        * @param      uri                  the URI of the resource.
  @@ -115,7 +118,8 @@
        *                                    properties should be included in case
        *                                    all properties are requested.
        *
  -     * @return     the requested properties as an XML JDOM Element.
  +     * @return     the requested properties as list of <code>&lt;propstat&gt;</code>
  +     *             JDOM Element.
        *
        * @throws     ObjectLockedException
        * @throws     ServiceAccessException
  @@ -126,15 +130,16 @@
        * @throws     LockTokenNotFoundException
        * @throws     JDOMException  if creating the JDOM Element fails.
        */
  -    public Element getPropertiesOfObject(RequestedProperties requestedProperties, 
String uri, String contextPath, String serverURL, boolean allpropSupportsDeltaV) 
throws ObjectLockedException, ServiceAccessException, LinkedObjectNotFoundException, 
AccessDeniedException, ObjectNotFoundException, RevisionDescriptorNotFoundException, 
LockTokenNotFoundException, JDOMException;
  +    public List getPropertiesOfObject(RequestedProperties requestedProperties, 
String uri, String contextPath, String serverURL, boolean allpropSupportsDeltaV) 
throws ObjectLockedException, ServiceAccessException, LinkedObjectNotFoundException, 
AccessDeniedException, ObjectNotFoundException, RevisionDescriptorNotFoundException, 
LockTokenNotFoundException, JDOMException;
       
       /**
  -     * Returnes the requested properties of the resource identified by the given
  -     * <code>uri</code> and <code>revisionNumber</code> as an XML Document (starting
  -     * with the <code>&lt;propstat&gt;</code>).
  +     * Returns the requested properties of the resource identified by the given
  +     * <code>uri</code> and <code>revisionNumber</code> as list of
  +     * <code>&lt;propstat&gt;</code> JDOM Elements.
        *
        * @param      requestedProperties  the requested properties.
        * @param      uri                  the URI of the resource.
  +     * @param      revisionNumber       the revision number of the requested 
resource.
        * @param      contextPath          the context path of the uri. The 
concatenation of
        *                                  
<code>serverURL</code>/<code>contextPath</code>
        *                                  /<code>uri</code> gives the absolute URL of 
the resource.
  @@ -143,6 +148,39 @@
        *                                    properties should be included in case
        *                                    all properties are requested.
        *
  +     * @return     the requested properties as list of <code>&lt;propstat&gt;</code>
  +     *             JDOM Element.
  +     *
  +     * @throws     ObjectLockedException
  +     * @throws     ServiceAccessException
  +     * @throws     LinkedObjectNotFoundException
  +     * @throws     AccessDeniedException
  +     * @throws     ObjectNotFoundException
  +     * @throws     RevisionDescriptorNotFoundException
  +     * @throws     LockTokenNotFoundException
  +     * @throws     JDOMException  if creating the JDOM Element fails.
  +     */
  +    public List getPropertiesOfObject(RequestedProperties requestedProperties, 
String uri, NodeRevisionNumber revisionNumber, String contextPath, String serverURL, 
boolean allpropSupportsDeltaV) throws ObjectLockedException, ServiceAccessException, 
LinkedObjectNotFoundException, AccessDeniedException, ObjectNotFoundException, 
RevisionDescriptorNotFoundException, LockTokenNotFoundException, JDOMException;
  +    
  +    /**
  +     * Returns the requested properties of the resource identified by the given
  +     * <code>uri</code> and <code>revisionNumber</code> as list of
  +     * <code>&lt;propstat&gt;</code> JDOM Elements.
  +     *
  +     * @param      requestedProperties  the requested properties.
  +     * @param      revisionDescriptors    the NodeRevisionDescriptors of the 
resource.
  +     * @param      revisionDescriptor     the NodeRevisionDescriptor of the 
resource.
  +     * @param      contextPath          the context path of the uri. The 
concatenation of
  +     *                                  
<code>serverURL</code>/<code>contextPath</code>
  +     *                                  /<code>uri</code> gives the absolute URL of 
the resource.
  +     * @param      serverURL            the URL of the server (e.g. 
<code>http://www.abc.com</code>).
  +     * @param      allpropSupportsDeltaV  indicates if the <code>DeltaV</code> 
specific
  +     *                                    properties should be included in case
  +     *                                    all properties are requested.
  +     *
  +     * @return     the requested properties as list of <code>&lt;propstat&gt;</code>
  +     *             JDOM Element.
  +     *
        * @throws     ObjectLockedException
        * @throws     ServiceAccessException
        * @throws     LinkedObjectNotFoundException
  @@ -152,7 +190,7 @@
        * @throws     LockTokenNotFoundException
        * @throws     JDOMException  if creating the JDOM Element fails.
        */
  -    public Element getPropertiesOfObject(RequestedProperties requestedProperties, 
String uri, NodeRevisionNumber revisionNumber, String contextPath, String serverURL, 
boolean allpropSupportsDeltaV) throws ObjectLockedException, ServiceAccessException, 
LinkedObjectNotFoundException, AccessDeniedException, ObjectNotFoundException, 
RevisionDescriptorNotFoundException, LockTokenNotFoundException, JDOMException;
  +    public List getPropertiesOfObject(RequestedProperties requestedProperties, 
NodeRevisionDescriptors revisionDescriptors, NodeRevisionDescriptor 
revisionDescriptor, String contextPath, String serverURL, boolean 
allpropSupportsDeltaV) throws ObjectLockedException, ServiceAccessException, 
LinkedObjectNotFoundException, AccessDeniedException, ObjectNotFoundException, 
RevisionDescriptorNotFoundException, LockTokenNotFoundException, JDOMException;
       
       
   }
  
  
  

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

Reply via email to