The Repository Loader module includes a simple example of a SQL repository that uses the Repository Loader. The Repository Loader Example can be found in the <ATG2007.3dir>/RL/Example directory.

The SQL repository in the Repository Loader Example is a GSARepository component with a Nucleus address of /atg/rl-example/ExampleRepository. The repository item types in the ExampleRepository are specified by the repository definition file found at <ATG2007.3dir>/RL/Example/config/atg/rl-example/exampleRepository.xml. It defines the following item types in its item descriptors. Note how the content item types use item descriptor inheritance:

Item Descriptor Name

Description

fileFolder

A content folder item type.

fileAsset

A content item type. This is the super-type for a series of item types that inherit from the fileAsset item type. The type property specifies which subtype (textFileAsset, binaryFileAsset, htmlArticle, txtPressRelease, xmlPressRelease, gifImage, or jpgImage) an item belongs to.

A fileAsset item also defines lastModified, size, and parentFolder properties.

textFileAsset

A content item type that inherits from fileAsset. It is designed for text files. The text content is stored in the content big string property. It has subtypes named htmlArticle, txtPressRelease, and xmlPressRelease.

binaryFileAsset

A content item type that inherits from fileAsset. The content is stored in the content binary property. It has subtypes named gifImage and jpgImage.

htmlArticle

A content item type that inherits from fileAsset and from textFileAsset. It defines a published timestamp property and a keywords string property.

txtPressRelease

A content item type that inherits from fileAsset and from textFileAsset.

xmlPressRelease

A content item type that inherits from fileAsset and from textFileAsset.

gifImage

A content item type that inherits from fileAsset and from binaryFileAsset.

jpgImage

A content item type that inherits from fileAsset and from binaryFileAsset.

address

A simple non-content item type. Used by the user item type’s addresses property.

contact

A non-content item type. Used by the user item type’s contacts property.

phone

A simple non-content item type. Used by the user item type’s numbers property.

user

A complex non-content item type. The user item type is described in detail in the User Example Item Type section.

 
loading table of contents...