Class LatestActivityVersionReport
- java.lang.Object
-
- org.apache.jackrabbit.webdav.version.report.AbstractReport
-
- org.apache.jackrabbit.webdav.version.report.LatestActivityVersionReport
-
- All Implemented Interfaces:
Report
,XmlSerializable
public class LatestActivityVersionReport extends AbstractReport
LatestActivityVersionReport
is applied to a version history to identify the latest version that is selected from that version history by a given activity.
-
-
Field Summary
Fields Modifier and Type Field Description static ReportType
LATEST_ACTIVITY_VERSION
-
Constructor Summary
Constructors Constructor Description LatestActivityVersionReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportType
getType()
ReturnsLATEST_ACTIVITY_VERSION
.void
init(DavResource resource, ReportInfo info)
Check all the preconditions for this report.boolean
isMultiStatusReport()
Always returnsfalse
.org.w3c.dom.Element
toXml(org.w3c.dom.Document document)
Returns the xml representation of the implementing object asElement
.
-
-
-
Field Detail
-
LATEST_ACTIVITY_VERSION
public static final ReportType LATEST_ACTIVITY_VERSION
-
-
Method Detail
-
getType
public ReportType getType()
ReturnsLATEST_ACTIVITY_VERSION
.- Returns:
- the type of this report.
- See Also:
Report.getType()
-
isMultiStatusReport
public boolean isMultiStatusReport()
Always returnsfalse
.- Returns:
- false
- See Also:
Report.isMultiStatusReport()
-
init
public void init(DavResource resource, ReportInfo info) throws DavException
Check all the preconditions for this report.- Throws:
DavException
- if a precondition is not met.- See Also:
Report.init(DavResource, ReportInfo)
-
toXml
public org.w3c.dom.Element toXml(org.w3c.dom.Document document)
Description copied from interface:XmlSerializable
Returns the xml representation of the implementing object asElement
. The givenDocument
is used as factory and represents theowner document
of the returned DOM element.- Parameters:
document
- to be used as factory.- Returns:
- a w3c element representing this object
- See Also:
XmlSerializable.toXml(Document)
-
-