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 >
Modifier and Type | Field and Description |
---|---|
static ReportType |
NODETYPES_REPORT
The registered type of this report.
|
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 and Description |
---|
NodeTypesReport() |
Modifier and Type | Method and Description |
---|---|
ReportType |
getType()
Returns
NODETYPES_REPORT type. |
void |
init(DavResource resource,
ReportInfo info)
Performs basic validation checks common to all JCR specific reports.
|
boolean |
isMultiStatusReport()
Always returns
false . |
Element |
toXml(Document document)
Returns a Xml representation of the node type definition(s) according
to the info object.
|
normalizeResourceHref
public static final ReportType NODETYPES_REPORT
public ReportType getType()
NODETYPES_REPORT
type.getType
in interface Report
NODETYPES_REPORT
Report.getType()
public boolean isMultiStatusReport()
false
.isMultiStatusReport
in interface Report
Report.isMultiStatusReport()
public void init(DavResource resource, ReportInfo info) throws DavException
AbstractJcrReport
init
in interface Report
init
in class AbstractJcrReport
DavException
Report.init(DavResource, ReportInfo)
public Element toXml(Document document)
toXml
in interface XmlSerializable
document
- XmlSerializable.toXml(Document)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.