|
SAP NetWeaver 7.30 (SP05) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.protocol.webdav.repository.WDProperties
public class WDProperties
Helper functions for WebDAV repository interaction regarding property objects.
Attributes on the property element are persisted by mapping from/to repository property attributes. As the XML format used in WebDAV allows namespaced property names, while the repository only allows simple names, the following mapping is used:
| name=value | as is |
| xml:localName=value | as is |
| xmlns:prefix=value | as is |
| prefix:localName=value | {namespaceUri}localName=value and xmlns:prefix=namespaceUri |
Copyright (c) SAP AG 2001-2005
| Constructor Summary | |
|---|---|
WDProperties()
|
|
| Method Summary | |
|---|---|
static void |
appendProperty(Element parent,
IPropertyName pname,
IProperty prop,
com.sapportals.wcm.util.http.DateFormat df,
com.sapportals.wcm.util.uri.IHierarchicalUri baseUri)
|
static void |
appendProperty(Element parent,
IPropertyName pname,
IProperty prop,
com.sapportals.wcm.util.http.DateFormat df,
com.sapportals.wcm.util.uri.IHierarchicalUri baseUri,
boolean includeHiddenFlag)
Add a Property definition as child of an element. |
static void |
appendPropertyValue(Element parent,
IProperty prop,
com.sapportals.wcm.util.http.DateFormat df,
boolean includeHiddenFlag)
|
static void |
appendPropertyValue(Element parent,
IProperty prop,
com.sapportals.wcm.util.http.DateFormat df,
com.sapportals.wcm.util.uri.IHierarchicalUri baseUri,
boolean includeHiddenFlag)
Add a Property Value as child of an element. |
static IMutableProperty |
getProperty(IPropertyName pname,
Element e,
com.sapportals.wcm.util.http.DateFormat df,
com.sapportals.wcm.util.uri.IHierarchicalUri baseUri,
boolean tolerateTypeError)
Create a Property from its XML/WebDAV serialization. |
static IMutableProperty |
getProperty(IPropertyName pname,
PropertyType pt,
Element e,
com.sapportals.wcm.util.http.DateFormat df)
Create a Property from its XML/WebDAV serialization. |
static void |
setElementAttributes(Element elem,
IProperty property)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WDProperties()
| Method Detail |
|---|
public static void setElementAttributes(Element elem,
IProperty property)
throws ResourceException
ResourceException
public static void appendProperty(Element parent,
IPropertyName pname,
IProperty prop,
com.sapportals.wcm.util.http.DateFormat df,
com.sapportals.wcm.util.uri.IHierarchicalUri baseUri,
boolean includeHiddenFlag)
throws ResourceException
parent - where to append property elementpname - name to use for propertyprop - the property to adddf - date format object to use
ResourceException - when property is not valid
public static void appendProperty(Element parent,
IPropertyName pname,
IProperty prop,
com.sapportals.wcm.util.http.DateFormat df,
com.sapportals.wcm.util.uri.IHierarchicalUri baseUri)
throws ResourceException
ResourceException
public static void appendPropertyValue(Element parent,
IProperty prop,
com.sapportals.wcm.util.http.DateFormat df,
boolean includeHiddenFlag)
throws ResourceException
ResourceException
public static void appendPropertyValue(Element parent,
IProperty prop,
com.sapportals.wcm.util.http.DateFormat df,
com.sapportals.wcm.util.uri.IHierarchicalUri baseUri,
boolean includeHiddenFlag)
throws ResourceException
parent - where to append property value and set attributes onprop - the property to adddf - date format object to use
ResourceException - when property is not valid
public static IMutableProperty getProperty(IPropertyName pname,
Element e,
com.sapportals.wcm.util.http.DateFormat df,
com.sapportals.wcm.util.uri.IHierarchicalUri baseUri,
boolean tolerateTypeError)
throws ParseException,
ResourceException
pname - the name to use in the propertye - the element with the property name in WebDAV XML serializationdf - date formattertolerateTypeError - when set to true, tolerate errors
in parsing data types and fall back to simple types like string or XML.
null
ParseException
ResourceException
public static IMutableProperty getProperty(IPropertyName pname,
PropertyType pt,
Element e,
com.sapportals.wcm.util.http.DateFormat df)
throws ParseException,
ResourceException
pname - the name to use in the propertypt - the property type to usee - the element with the property name in WebDAV XML serializationdf - date formatter
null
ParseException
ResourceException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.30 (SP05) KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||