java.lang.Object
org.apache.jackrabbit.webdav.version.report.ReportType
All Implemented Interfaces:
DeltaVConstants, XmlSerializable

public class ReportType extends Object implements DeltaVConstants, XmlSerializable
ReportType...
  • Field Details

    • VERSION_TREE

      public static final ReportType VERSION_TREE
    • EXPAND_PROPERTY

      public static final ReportType EXPAND_PROPERTY
    • LOCATE_BY_HISTORY

      public static final ReportType LOCATE_BY_HISTORY
  • Method Details

    • createReport

      public Report createReport(DeltaVResource resource, ReportInfo info) throws DavException
      Creates a new Report with this type.
      Returns:
      Throws:
      DavException
    • toXml

      public Element toXml(Document document)
      Returns an Xml element representing this report type. It may be used to build the body for a REPORT request.
      Specified by:
      toXml in interface XmlSerializable
      Parameters:
      document -
      Returns:
      Xml representation
      See Also:
    • isRequestedReportType

      public boolean isRequestedReportType(ReportInfo reqInfo)
      Returns true if this ReportType is requested by the given ReportInfo
      Parameters:
      reqInfo -
      Returns:
    • getReportName

      public String getReportName()
      Return the qualified name of this ReportType.
      Returns:
      qualified name
    • getLocalName

      public String getLocalName()
      Returns:
    • getNamespace

      public Namespace getNamespace()
      Returns:
    • register

      public static ReportType register(String localName, Namespace namespace, Class<? extends Report> reportClass)
      Register the report type with the given name, namespace and class, that can run that report.
      Parameters:
      localName -
      namespace -
      reportClass -
      Returns:
      Throws:
      IllegalArgumentException - if either parameter is null or if the given class does not implement the Report interface or if it does not provide an empty constructor.
    • getType

      public static ReportType getType(ReportInfo reportInfo)
      Return the ReportType requested by the given report info object.
      Parameters:
      reportInfo -
      Returns:
      the requested ReportType
      Throws:
      IllegalArgumentException - if the reportInfo is null or if the requested report type has not been registered yet.