Once you’ve set up a Rule Set Service for your rules, you implement targeting with the rules by setting up a RuleBasedRepositoryTargeter service that uses the Rule Set Service. Do this by creating a targeter component as an instance of atg.targeting.RuleBasedRepositoryTargeter. Continuing with the example in Setting Up a RuleSetService, you would create a component with a name like NewEnglandSnowboardersTargeter.

A RuleBasedRepositoryTargeter component can have the following properties:

repository

The repository that holds content objects to match against the profiles in the source.

ruleSetService

The Nucleus path name of the Rule Set Service used by the targeter component.

Example

The following example shows how a NewEnglandSnowboardersTargeter.properties file could look.

$class=atg.targeting.RuleBasedRepositoryTargeter
repository=/atg/adapter/html/TargetedContent
ruleSetService=/atg/targeting/NewEnglandSnowboardersRuleSet

Note that when you create a targeter component using the ACC, the component you create is an instance of atg.targeting.DynamicContentTargeter with a Nucleus address of /atg/registry/RepositoryTargeters.

 
loading table of contents...