org.apache.jackrabbit.webdav.jcr.version.report
Class NodeTypesReport

java.lang.Object
  extended by org.apache.jackrabbit.webdav.jcr.version.report.AbstractJcrReport
      extended by 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
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
NodeTypesReport()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NODETYPES_REPORT

public static final ReportType NODETYPES_REPORT
The registered type of this report.

Constructor Detail

NodeTypesReport

public NodeTypesReport()
Method Detail

getType

public ReportType getType()
Returns NODETYPES_REPORT type.

Specified by:
getType in interface Report
Returns:
NODETYPES_REPORT
See Also:
Report.getType()

isMultiStatusReport

public boolean isMultiStatusReport()
Always returns false.

Specified by:
isMultiStatusReport in interface Report
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 interface Report
Overrides:
init in class AbstractJcrReport
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 interface XmlSerializable
Parameters:
document -
Returns:
Xml representation of the node type definition(s)
See Also:
XmlSerializable.toXml(Document)


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.