org.apache.jackrabbit.webdav.version.report
Class LatestActivityVersionReport

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

public class LatestActivityVersionReport
extends Object
implements Report

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
static ReportType LATEST_ACTIVITY_VERSION
           
 
Constructor Summary
LatestActivityVersionReport()
           
 
Method Summary
 ReportType getType()
          Returns LATEST_ACTIVITY_VERSION.
 void init(DavResource resource, ReportInfo info)
          Check all the preconditions for this report.
 boolean isMultiStatusReport()
          Always returns false.
 Element toXml(Document document)
          Returns the xml representation of the implementing object as Element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LATEST_ACTIVITY_VERSION

public static final ReportType LATEST_ACTIVITY_VERSION
Constructor Detail

LatestActivityVersionReport

public LatestActivityVersionReport()
Method Detail

getType

public ReportType getType()
Returns LATEST_ACTIVITY_VERSION.

Specified by:
getType in interface Report
Returns:
the type of this report.
See Also:
Report.getType()

isMultiStatusReport

public boolean isMultiStatusReport()
Always returns false.

Specified by:
isMultiStatusReport in interface Report
Returns:
false
See Also:
Report.isMultiStatusReport()

init

public void init(DavResource resource,
                 ReportInfo info)
          throws DavException
Check all the preconditions for this report.

Specified by:
init in interface Report
Throws:
DavException - if a precondition is not met.
See Also:
Report.init(DavResource, ReportInfo)

toXml

public Element toXml(Document document)
Description copied from interface: XmlSerializable
Returns the xml representation of the implementing object as Element. The given Document is used as factory and represents the owner document of the returned DOM element.

Specified by:
toXml in interface XmlSerializable
Parameters:
document - to be used as factory.
Returns:
a w3c element representing this object
See Also:
XmlSerializable.toXml(Document)


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.