Class ExportViewReport
- java.lang.Object
-
- org.apache.jackrabbit.webdav.version.report.AbstractReport
-
- org.apache.jackrabbit.webdav.jcr.version.report.AbstractJcrReport
-
- org.apache.jackrabbit.webdav.jcr.version.report.ExportViewReport
-
- All Implemented Interfaces:
Report
,XmlSerializable
public class ExportViewReport extends AbstractJcrReport
ExportViewReport
handles REPORT requests for the 'exportview' report. The 'exportview' report is used to exportDocView
andSysView
of theitem
represented by the requested resource.The request body must contain a
dcr
:exportview element:<!ELEMENT exportview ( (sysview | docview)?, skipbinary?, norecurse ) > <!ELEMENT sysview EMPTY > <!ELEMENT docview EMPTY > <!ELEMENT skipbinary EMPTY > <!ELEMENT norecurse EMPTY >
If no view type is specified the DocView is generated.
-
-
Field Summary
Fields Modifier and Type Field Description static ReportType
EXPORTVIEW_REPORT
The exportview report type
-
Constructor Summary
Constructors Constructor Description ExportViewReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportType
getType()
ReturnsEXPORTVIEW_REPORT
report type.void
init(DavResource resource, ReportInfo info)
Performs basic validation checks common to all JCR specific reports.boolean
isMultiStatusReport()
Always returnsfalse
.Element
toXml(Document document)
Creates a Xml document from the generated view.-
Methods inherited from class org.apache.jackrabbit.webdav.version.report.AbstractReport
normalizeResourceHref
-
-
-
-
Field Detail
-
EXPORTVIEW_REPORT
public static final ReportType EXPORTVIEW_REPORT
The exportview report type
-
-
Method Detail
-
getType
public ReportType getType()
ReturnsEXPORTVIEW_REPORT
report type.- Returns:
EXPORTVIEW_REPORT
- See Also:
Report.getType()
-
isMultiStatusReport
public boolean isMultiStatusReport()
Always returnsfalse
.- Returns:
- false
-
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 interfaceReport
- Overrides:
init
in classAbstractJcrReport
- 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)
-
-