atg.targeting
Class TargeterUtils

java.lang.Object
  extended by atg.targeting.TargeterUtils

public class TargeterUtils
extends java.lang.Object

Various random utilities useful to targeter classes.


Field Summary
static java.lang.String CLASS_VERSION
           
static char VIEW_SEPARATOR_TOKEN
          The character used to tokenize a RepositoryView hierarchy
 
Constructor Summary
TargeterUtils()
           
 
Method Summary
static atg.targeting.RuleBasedRepositoryItemGroup createGroup(java.lang.String pRule, Repository pRepository, java.lang.String pViewName, ApplicationLogging pLogger)
           
static atg.targeting.RuleBasedRepositoryTargeter createTargeter(java.lang.String pRule, Repository pRepository, java.lang.String pViewName, ApplicationLogging pLogger)
           
static RepositoryView getRepositoryView(Repository pRepository, java.lang.String pViewName)
          Gets a named view from a repository, traversing a subview hierarchy if necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

TargeterUtils

public TargeterUtils()
Method Detail

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