Class JcrPrivilegeReport
- 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.JcrPrivilegeReport
-
- All Implemented Interfaces:
Report,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 thePrivilegeinterface. A better name would have been JcrActionReport
-
-
Field Summary
Fields Modifier and Type Field Description static ReportTypePRIVILEGES_REPORTThe exportview report type
-
Constructor Summary
Constructors Constructor Description JcrPrivilegeReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportTypegetType()ReturnsPRIVILEGES_REPORTreport type.voidinit(DavResource resource, ReportInfo info)Performs basic validation checks common to all JCR specific reports.booleanisMultiStatusReport()Always returnstrue.ElementtoXml(Document document)Creates a Xml document from the generated view.-
Methods inherited from class org.apache.jackrabbit.webdav.version.report.AbstractReport
normalizeResourceHref
-
-
-
-
Field Detail
-
PRIVILEGES_REPORT
public static final ReportType PRIVILEGES_REPORT
The exportview report type
-
-
Method Detail
-
getType
public ReportType getType()
ReturnsPRIVILEGES_REPORTreport type.- Returns:
PRIVILEGES_REPORT- See Also:
Report.getType()
-
isMultiStatusReport
public boolean isMultiStatusReport()
Always returnstrue.- Returns:
- true
- See Also:
Report.isMultiStatusReport()
-
init
public void init(DavResource resource, ReportInfo info) throws DavException
Description copied from class:AbstractJcrReportPerforms basic validation checks common to all JCR specific reports.- Specified by:
initin interfaceReport- Overrides:
initin 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)
-
-