|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.webdav.security.report.SearchablePropertyReport
public class SearchablePropertyReport
SearchablePropertyReport identifies those properties that may be
searched using the DAV:principal-property-search REPORT.
This report must be supported on all collections identified in the value of
a DAV:principal-collection-set property.
<!ELEMENT principal-search-property-set (principal-search-property*) > <!ELEMENT principal-search-property (prop, description) > prop: see RFC 2518, Section 12.11 <!ELEMENT description #PCDATA > Human readable description. Note, that the language of the description must be indicated by the xml:lang attribute.Note that a DAV:principal-search-property XML element is required for each property that may be searched with the DAV:principal-property-search REPORT.
| Field Summary | |
|---|---|
static String |
REPORT_NAME
The report name |
static ReportType |
REPORT_TYPE
The report type |
static String |
XML_PRINCIPAL_SEARCH_PROPERTY_SET
Constant used for the DAV:principal-search-property-set response element. |
| Constructor Summary | |
|---|---|
SearchablePropertyReport()
|
|
| Method Summary | |
|---|---|
void |
addPrincipalSearchProperty(DavPropertyName propName,
String description,
String language)
Add a property name that should be listed in the DAV:principal-search-property-set. |
ReportType |
getType()
Returns the registered type of this report. |
void |
init(DavResource resource,
ReportInfo info)
Set the DeltaVResource for which this report was requested
and the ReportInfo as specified by the REPORT request body,
that defines the details for this report. |
boolean |
isMultiStatusReport()
Returns true if this Report will send a MultiStatus
response. |
Element |
toXml(Document document)
Returns the xml representation of the implementing object as Element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String REPORT_NAME
public static final ReportType REPORT_TYPE
public static final String XML_PRINCIPAL_SEARCH_PROPERTY_SET
| Constructor Detail |
|---|
public SearchablePropertyReport()
| Method Detail |
|---|
public ReportType getType()
Report
getType in interface ReportReport.getType()public boolean isMultiStatusReport()
ReportReport will send a MultiStatus
response.
isMultiStatusReport in interface Report200 (ok).Report.isMultiStatusReport()
public void init(DavResource resource,
ReportInfo info)
throws DavException
ReportDeltaVResource for which this report was requested
and the ReportInfo as specified by the REPORT request body,
that defines the details for this report.
init in interface ReportDavExceptionReport.init(DavResource, ReportInfo)public Element toXml(Document document)
XmlSerializableElement. The given Document is used
as factory and represents the owner document of the returned DOM element.
toXml in interface XmlSerializabledocument - to be used as factory.
XmlSerializable.toXml(Document)
public void addPrincipalSearchProperty(DavPropertyName propName,
String description,
String language)
propName - a property name that may be searched in the PrincipalSearchReport.description - Human readable description of the searchable property.language - defines in which language the description is written.
IllegalArgumentException - if propName is null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||