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

java.lang.Object
  extended byorg.apache.jackrabbit.webdav.jcr.version.report.RepositoryDescriptorsReport
All Implemented Interfaces:
ItemResourceConstants, org.apache.jackrabbit.webdav.version.report.Report

public class RepositoryDescriptorsReport
extends Object
implements org.apache.jackrabbit.webdav.version.report.Report, ItemResourceConstants

RepositoryDescriptorsReport allows to retrieve the repository descriptors. The request body must be an empty 'dcr:repositorydescriptors' element:

 <!ELEMENT repositorydescriptors EMPTY >
 

The response body must match the following format
 <!ELEMENT repositorydescriptors-report ( descriptor )* >
 <!ELEMENT descriptor ( descriptorkey, descriptorvalue ) >
 <!ELEMENT descriptorkey (#PCDATA) >
 <!ELEMENT descriptorvalue (#PCDATA) >
 

See Also:
Repository.getDescriptorKeys(), Repository.getDescriptor(String)

Field Summary
static org.apache.jackrabbit.webdav.version.report.ReportType REPOSITORY_DESCRIPTORS_REPORT
          The registered type of this report.
 
Fields inherited from interface org.apache.jackrabbit.webdav.jcr.ItemResourceConstants
COMPLIANCE_CLASS, EXCLUSIVE_SESSION, JCR_DEPTH, JCR_INDEX, JCR_ISMODIFIED, JCR_ISNEW, JCR_LENGTH, JCR_LENGTHS, JCR_MIXINNODETYPES, JCR_NAME, JCR_NAMESPACES, JCR_PARENT, JCR_PATH, JCR_PRIMARYITEM, JCR_PRIMARYNODETYPE, JCR_REFERENCES, JCR_TYPE, JCR_UUID, JCR_VALUE, JCR_VALUES, JCR_VERSIONABLEUUID, METHODS, NAMESPACE, ROOT_ITEM_PATH, VERSIONSTORAGE_PATH, XML_DESCRIPTOR, XML_DESCRIPTORKEY, XML_DESCRIPTORVALUE, XML_EXCLUSIVE_SESSION_SCOPED, XML_LENGTH, XML_NAMESPACE, XML_PREFIX, XML_PRIMARYNODETYPE, XML_RELPATH, XML_REMOVEEXISTING, XML_URI, XML_VALUE
 
Constructor Summary
RepositoryDescriptorsReport()
           
 
Method Summary
 org.apache.jackrabbit.webdav.version.report.ReportType getType()
          Returns REPOSITORY_DESCRIPTORS_REPORT type.
 void setInfo(org.apache.jackrabbit.webdav.version.report.ReportInfo info)
           
 void setResource(org.apache.jackrabbit.webdav.version.DeltaVResource resource)
           
 org.jdom.Document toXml()
          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

REPOSITORY_DESCRIPTORS_REPORT

public static final org.apache.jackrabbit.webdav.version.report.ReportType REPOSITORY_DESCRIPTORS_REPORT
The registered type of this report.

Constructor Detail

RepositoryDescriptorsReport

public RepositoryDescriptorsReport()
Method Detail

getType

public org.apache.jackrabbit.webdav.version.report.ReportType getType()
Returns REPOSITORY_DESCRIPTORS_REPORT type.

Specified by:
getType in interface org.apache.jackrabbit.webdav.version.report.Report
Returns:
REPOSITORY_DESCRIPTORS_REPORT
See Also:
Report.getType()

setResource

public void setResource(org.apache.jackrabbit.webdav.version.DeltaVResource resource)
Specified by:
setResource in interface org.apache.jackrabbit.webdav.version.report.Report
Parameters:
resource -
Throws:
IllegalArgumentException - if the resource or the session retrieved from the specified resource is null
See Also:
Report.setResource(org.apache.jackrabbit.webdav.version.DeltaVResource)

setInfo

public void setInfo(org.apache.jackrabbit.webdav.version.report.ReportInfo info)
Specified by:
setInfo in interface org.apache.jackrabbit.webdav.version.report.Report
Parameters:
info -
Throws:
IllegalArgumentException - if the specified info does not contain a dcr:repositorydescriptors element.
See Also:
Report.setInfo(org.apache.jackrabbit.webdav.version.report.ReportInfo)

toXml

public org.jdom.Document toXml()
                        throws org.apache.jackrabbit.webdav.DavException
Returns a Xml representation of the node type definition(s) according to the info object.

Specified by:
toXml in interface org.apache.jackrabbit.webdav.version.report.Report
Returns:
Xml representation of the node type definition(s)
Throws:
org.apache.jackrabbit.webdav.DavException - if the specified nodetypes are not known or if another error occurs while retrieving the nodetype definitions.
See Also:
Report.toXml()


Copyright © 2005 . All Rights Reserved.