atg.targeting
Class TargeterUtils
java.lang.Object
   atg.targeting.TargeterUtils
atg.targeting.TargeterUtils
- public class TargeterUtils 
- extends java.lang.Object
Various random utilities useful to targeter classes.
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CLASS_VERSION
public static java.lang.String CLASS_VERSION
VIEW_SEPARATOR_TOKEN
public static final char VIEW_SEPARATOR_TOKEN
- The character used to tokenize a RepositoryView hierarchy
 
- See Also:
- Constant Field Values
 
TargeterUtils
public TargeterUtils()
getRepositoryView
public static RepositoryView getRepositoryView(Repository pRepository,
                                               java.lang.String pViewName)
                                        throws RepositoryException
- Gets a named view from a repository, traversing a subview hierarchy
 if necessary.
 
- 
- Throws:
- RepositoryException- if a repository error occurs while looking for the RepositoryView
 
createGroup
public static atg.targeting.RuleBasedRepositoryItemGroup createGroup(java.lang.String pRule,
                                                                     Repository pRepository,
                                                                     java.lang.String pViewName,
                                                                     ApplicationLogging pLogger)
                                                              throws atg.targeting.rules.RulesFileParseException
- 
- Parameters:
- pRule-
- pRepository-
- pViewName-
- pLogger- an ApplicationLogging object for log output, or null
- Returns:
- A RuleBasedRepositoryItemGroup
- Throws:
- atg.targeting.rules.RulesFileParseException
 
createTargeter
public static atg.targeting.RuleBasedRepositoryTargeter createTargeter(java.lang.String pRule,
                                                                       Repository pRepository,
                                                                       java.lang.String pViewName,
                                                                       ApplicationLogging pLogger)
                                                                throws atg.targeting.rules.RulesFileParseException
- 
- Parameters:
- pRule-
- pRepository-
- pViewName-
- pLogger- an ApplicationLogging object for log output, or null
- Returns:
- A RuleBasedRepositoryTargeter
- Throws:
- atg.targeting.rules.RulesFileParseException