Essential ATG Dynamo Training - Got atg Certified Relationship Management Developer?
This is not an official ATG site: ATG, Dynamo, Scenario Server and Personalization Server are trademarks or registered trademarks of Art Technology Group
Articles Exercises Resources Links Search

Repositories Quick Notes

Key Points

  • Caching
  • ItemLookupDroplet
  •  

FAQ

What about ItemLookupDroplet :: useParams?

Setting this to true in the properties or via SETVALUE allows you to specify the repository and item descriptor via params in the droplet tag.

  • repository
  • itemDescriptor

What are the defaults in the repository definition file?

  • String is the default type
  • If column-name is not specified it's the same as the property name

So <property name="test"> </property> means that the property name is a string from the column 'test'

Generic SQL Adapter

SQLRepository is obsolete replaced by gsa.GSARepository

Use case examples of collection types

map: User has many addresses and gives them names, unique within their own realm. 'Home', 'Work', 'Patty' etc

set: Table join ID_USER and ID_BUDDY

array:

Profile\PropertyManager

 Allows for profile property aliasing in the case where your DB is different from the standard profile db

SQL Content Repositories

  • folder item descriptor : folder=true
  • content item descriptor : content=true
  • folder-id-property : the name of the property containing the id of the containing folder
  • content-name-property : the name of the property which contains the content name

Only for content

  • content-property : the location of the content
    •     property-type="atg.repository.FilePropertyDescriptor" : content in a file

    This uses the parentFolder tree, the value of the content-name-property and the pathPrefix passed into the content-property

Storing the full path

You can use it as an id or just store the full path

  • use-id-for-path=true in the item descriptor of the content item or
  • content-path-property is used if you have the full path, this may make getPath faster
 


Technical Training Advertise your Training Programs for Free! Los Angeles Web Design Shopping Cart Software  Form a Corporation