Class JcrPrivilegeReport

  • All Implemented Interfaces:
    org.apache.jackrabbit.webdav.version.report.Report, org.apache.jackrabbit.webdav.xml.XmlSerializable

    public class JcrPrivilegeReport
    extends AbstractJcrReport

    Report to retrieve the permissions granted to the reading session as defined by Session.hasPermission(String, String).

    NOTE: the name of this report and the names of the privileges are misleading as they rather correspond to the actions defined by Session; while the JCR privileges s.str. have only been specified as of JSR 283 in the Privilege interface. A better name would have been JcrActionReport

    See Also:
    for the webdav correspondence to mapped to the .
    • Field Detail

      • PRIVILEGES_REPORT

        public static final org.apache.jackrabbit.webdav.version.report.ReportType PRIVILEGES_REPORT
        The exportview report type
    • Constructor Detail

      • JcrPrivilegeReport

        public JcrPrivilegeReport()
    • Method Detail

      • getType

        public org.apache.jackrabbit.webdav.version.report.ReportType getType()
        Returns PRIVILEGES_REPORT report type.
        Returns:
        PRIVILEGES_REPORT
        See Also:
        Report.getType()
      • isMultiStatusReport

        public boolean isMultiStatusReport()
        Always returns true.
        Returns:
        true
        See Also:
        Report.isMultiStatusReport()
      • init

        public void init​(org.apache.jackrabbit.webdav.DavResource resource,
                         org.apache.jackrabbit.webdav.version.report.ReportInfo info)
                  throws org.apache.jackrabbit.webdav.DavException
        Description copied from class: AbstractJcrReport
        Performs basic validation checks common to all JCR specific reports.
        Specified by:
        init in interface org.apache.jackrabbit.webdav.version.report.Report
        Overrides:
        init in class AbstractJcrReport
        Throws:
        org.apache.jackrabbit.webdav.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)