The Repository Loader module includes a simple example of an SQL repository that uses the Repository Loader. The Repository Loader example is in the <ATG10dir>/RL/Example directory. It loads the files in the FileSystemMonitorService’s root path:

<ATG10dir>/RL/Example/j2ee-apps/example/web-app/public

The SQL repository in this example is a GSARepository component with this Nucleus address:

/atg/rl-example/ExampleRepository

Repository item types in ExampleRepository are specified by this repository definition file:

<ATG10dir>/RL/Example/config/atg/rl-example/exampleRepository.xml.

This XML file defines the following item types in its item descriptors (note how 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 Item Type section.


Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved.

Legal Notices