Class NodeTypesReport
- 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.NodeTypesReport
-
- All Implemented Interfaces:
NodeTypeConstants
,Report
,XmlSerializable
public class NodeTypesReport extends AbstractJcrReport implements NodeTypeConstants
NodeTypesReport
allows to retrieve the definition of a single or multiple node types. The request body must be a 'dcr:nodetypes' element:<!ELEMENT nodetypes ( nodetype+ | all-nodetypes | mixin-nodetypes | primary-nodetypes ) > <!ELEMENT nodetype ( nodetypename ) > <!ELEMENT nodetypename (#PCDATA) > <!ELEMENT all-nodetypes EMPTY > <!ELEMENT mixin-nodetypes EMPTY > <!ELEMENT primary-nodetypes EMPTY >
-
-
Field Summary
Fields Modifier and Type Field Description static ReportType
NODETYPES_REPORT
The registered type of this report.-
Fields inherited from interface org.apache.jackrabbit.commons.webdav.NodeTypeConstants
AUTOCREATED_ATTRIBUTE, AVAILABLE_QUERY_OPERATOR_ELEMENT, AVAILABLE_QUERY_OPERATORS_ELEMENT, CHILDNODEDEFINITION_ELEMENT, DECLARINGNODETYPE_ATTRIBUTE, DEFAULTPRIMARYTYPE_ATTRIBUTE, DEFAULTVALUE_ELEMENT, DEFAULTVALUES_ELEMENT, FULL_TEXT_SEARCHABLE_ATTRIBUTE, HASORDERABLECHILDNODES_ATTRIBUTE, ISABSTRACT_ATTRIBUTE, ISMIXIN_ATTRIBUTE, ISQUERYABLE_ATTRIBUTE, MANDATORY_ATTRIBUTE, MULTIPLE_ATTRIBUTE, NAME_ATTRIBUTE, NODETYPE_ELEMENT, NODETYPES_ELEMENT, ONPARENTVERSION_ATTRIBUTE, PRIMARYITEMNAME_ATTRIBUTE, PROPERTYDEFINITION_ELEMENT, PROTECTED_ATTRIBUTE, QUERY_ORDERABLE_ATTRIBUTE, REQUIREDPRIMARYTYPE_ELEMENT, REQUIREDPRIMARYTYPES_ELEMENT, REQUIREDTYPE_ATTRIBUTE, SAMENAMESIBLINGS_ATTRIBUTE, SUPERTYPE_ELEMENT, SUPERTYPES_ELEMENT, VALUECONSTRAINT_ELEMENT, VALUECONSTRAINTS_ELEMENT, XML_NODETYPE, XML_NODETYPENAME, XML_NODETYPES, XML_REPORT_ALLNODETYPES, XML_REPORT_MIXINNODETYPES, XML_REPORT_PRIMARYNODETYPES
-
-
Constructor Summary
Constructors Constructor Description NodeTypesReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportType
getType()
ReturnsNODETYPES_REPORT
type.void
init(DavResource resource, ReportInfo info)
Performs basic validation checks common to all JCR specific reports.boolean
isMultiStatusReport()
Always returnsfalse
.Element
toXml(Document document)
Returns a Xml representation of the node type definition(s) according to the info object.-
Methods inherited from class org.apache.jackrabbit.webdav.version.report.AbstractReport
normalizeResourceHref
-
-
-
-
Field Detail
-
NODETYPES_REPORT
public static final ReportType NODETYPES_REPORT
The registered type of this report.
-
-
Method Detail
-
getType
public ReportType getType()
ReturnsNODETYPES_REPORT
type.- Specified by:
getType
in interfaceReport
- Returns:
NODETYPES_REPORT
- See Also:
Report.getType()
-
isMultiStatusReport
public boolean isMultiStatusReport()
Always returnsfalse
.- Specified by:
isMultiStatusReport
in interfaceReport
- Returns:
- false
- See Also:
Report.isMultiStatusReport()
-
init
public void init(DavResource resource, ReportInfo info) throws DavException
Description copied from class:AbstractJcrReport
Performs basic validation checks common to all JCR specific reports.- Specified by:
init
in interfaceReport
- Overrides:
init
in classAbstractJcrReport
- Throws:
DavException
- See Also:
Report.init(DavResource, ReportInfo)
-
toXml
public Element toXml(Document document)
Returns a Xml representation of the node type definition(s) according to the info object.- Specified by:
toXml
in interfaceXmlSerializable
- Parameters:
document
-- Returns:
- Xml representation of the node type definition(s)
- See Also:
XmlSerializable.toXml(Document)
-
-