org.apache.jackrabbit.webdav.jcr.version.report
Class RegisteredNamespacesReport
java.lang.Object
org.apache.jackrabbit.webdav.jcr.version.report.RegisteredNamespacesReport
- All Implemented Interfaces:
- ItemResourceConstants, org.apache.jackrabbit.webdav.version.report.Report
- public class RegisteredNamespacesReport
- extends Object
- implements org.apache.jackrabbit.webdav.version.report.Report, ItemResourceConstants
RegisteredNamespacesReport let the client retrieve the namespaces
registered on the repository.
Request body:
<!ELEMENT registerednamespaces EMPTY >
Response body:
<!ELEMENT registerednamespaces-report (namespace)* >
<!ELEMENT namespace (prefix, uri) >
<!ELEMENT prefix (#PCDATA) >
<!ELEMENT uri (#PCDATA) >
- See Also:
Workspace.getNamespaceRegistry()
|
Field Summary |
static org.apache.jackrabbit.webdav.version.report.ReportType |
REGISTERED_NAMESPACES_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 |
|
Method Summary |
org.apache.jackrabbit.webdav.version.report.ReportType |
getType()
Returns REGISTERED_NAMESPACES_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 |
REGISTERED_NAMESPACES_REPORT
public static final org.apache.jackrabbit.webdav.version.report.ReportType REGISTERED_NAMESPACES_REPORT
- The registered type of this report.
RegisteredNamespacesReport
public RegisteredNamespacesReport()
getType
public org.apache.jackrabbit.webdav.version.report.ReportType getType()
- Returns
REGISTERED_NAMESPACES_REPORT type.
- Specified by:
getType in interface org.apache.jackrabbit.webdav.version.report.Report
- Returns:
REGISTERED_NAMESPACES_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:registerednamespaces 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.