A content item descriptor must define a content-property property and optionally can define a lastModified or length property. The content-property attribute specifies the name of an item descriptor property that is used to store or reference the content data itself. The content property is usually a java.io.File, String or a byte[] data type.

These properties can be implemented as user-defined properties so they can be computed at run time. This approach enables them to be taken from the file system, not stored in the database. For example:

<item-descriptor name="files" content-length-property="length"
                 last-modified-property="lastModified" content-property="data">
  <table name="media_files" type="auxiliary" id-column-names="media_id">
    <property name="length" data-type="long" column-names="length"/>
    <property name="lastModified" data-type="timestamp"
    <property name="data" data-type="binary" column-names="data"/>

You configure your content item descriptors by naming the properties to use to retrieve each of these values. This is done with the following attributes in the <item-descriptor> tag:

Attribute Name



Specifies the ID of the folder containing this folder or content item.


Refers to the name of this folder or content item (not the full path name)


For content item descriptors, this is the name of the property that holds the content itself.


For content item descriptors, this optionally is used to specify a property that can be used to retrieve the last modified time for that piece of content.