org.apache.jackrabbit.webdav.jcr.version.report
Class LocateByUuidReport

java.lang.Object
  extended by org.apache.jackrabbit.webdav.jcr.version.report.AbstractJcrReport
      extended by org.apache.jackrabbit.webdav.jcr.version.report.LocateByUuidReport
All Implemented Interfaces:
Report, XmlSerializable

public class LocateByUuidReport
extends AbstractJcrReport

LocateByUuidReport handles REPORT requests for the 'locate-by-uuid' report.

The request body must be a 'dcr:locate-by-uuid' XML element:

 <!ELEMENT locate-by-uuid ( href , prop? ) >
 
The response to a successful report request will be a Multi-Status response.


Field Summary
static ReportType LOCATE_BY_UUID_REPORT
          The exportview report type
 
Constructor Summary
LocateByUuidReport()
           
 
Method Summary
 ReportType getType()
          Returns LOCATE_BY_UUID_REPORT report type.
 void init(DavResource resource, ReportInfo info)
          Performs basic validation checks common to all JCR specific reports.
 boolean isMultiStatusReport()
          Always returns true.
 Element toXml(Document document)
          Creates a Xml document from the generated view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOCATE_BY_UUID_REPORT

public static final ReportType LOCATE_BY_UUID_REPORT
The exportview report type

Constructor Detail

LocateByUuidReport

public LocateByUuidReport()
Method Detail

getType

public ReportType getType()
Returns LOCATE_BY_UUID_REPORT report type.

Returns:
LOCATE_BY_UUID_REPORT
See Also:
Report.getType()

isMultiStatusReport

public boolean isMultiStatusReport()
Always returns true.

Returns:
true
See Also:
Report.isMultiStatusReport()

init

public void init(DavResource resource,
                 ReportInfo info)
          throws DavException
Description copied from class: AbstractJcrReport
Performs basic validation checks common to all JCR specific reports.

Specified by:
init in interface Report
Overrides:
init in class AbstractJcrReport
Throws:
DavException
See Also:
Report.init(DavResource, ReportInfo)

toXml

public Element toXml(Document document)
Creates a Xml document from the generated view.

Parameters:
document -
Returns:
Xml element representing the output of the specified view.
See Also:
XmlSerializable.toXml(Document)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.