public interface I_CmsPropertyProvider
Dynamic properties don't actually exist in the VFS, instead they are read and written by calling methods on the subclasses implementing this interface which have been configured in the repository configuration.
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getName()
Returns the name of the dynamic property.
|
java.lang.String |
getPropertyValue(CmsObject cms,
CmsResource resource)
Reads the property value.
|
boolean |
isWritable()
Returns true if this dynamic property is writable.
|
void |
setPropertyValue(CmsObject cms,
CmsResource resource,
java.lang.String valueToSet)
Writes the property value.
|
java.lang.String getName()
The id of the property will consist of the name combined with an opencms-dynamic: prefix.
java.lang.String getPropertyValue(CmsObject cms, CmsResource resource) throws CmsException
cms
- the current CMS contextresource
- the resource for which the property should be readCmsException
- if something goes wrongboolean isWritable()
void setPropertyValue(CmsObject cms, CmsResource resource, java.lang.String valueToSet) throws CmsException
cms
- the current CMS context.resource
- the resource for which to write the propertyvalueToSet
- the value to writeCmsException
- if something goes wrong