public class TargetingServices extends GenericService
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
CLASS_VERSION
Class version string 
 | 
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description | 
|---|
TargetingServices()
Constructs an instanceof TargetingServices 
 | 
| Modifier and Type | Method and Description | 
|---|---|
java.lang.String[] | 
executeRepositoryTargeter(java.lang.String pTargeterPath)
Executes the repository targeter that exists at
  
pTargeterPath in the config layer, and returns
 the results as Repo2XML items. | 
java.lang.String[] | 
executeRepositoryTargeter(java.lang.String pTargeterPath,
                         int pMaxNumber)
Executes the repository targeter that exists at
  
pTargeterPath in the config layer, and returns
 the results as Repo2XML items. | 
java.lang.String[] | 
executeRepositoryTargeter(java.lang.String pTargeterPath,
                         int pStartingIndex,
                         int pMaxNumber)
Executes the repository targeter that exists at  
pTargeterPath
 in the config layer, and returns the results as Repo2XML items. | 
java.lang.String[] | 
executeRepositoryTargeter(java.lang.String pTargeterPath,
                         int pStartingIndex,
                         int pMaxNumber,
                         java.lang.String pMappingFile)
Executes the repository targeter that exists at  
pTargeterPath
 in the config layer, and returns the results as Repo2XML items. | 
java.lang.String[] | 
executeRepositoryTargeter(java.lang.String pTargeterPath,
                         int pMaxNumber,
                         java.lang.String pMappingFile)
Executes the repository targeter that exists at
  
pTargeterPath in the config layer, and returns
 the results as Repo2XML items. | 
java.lang.String[] | 
executeRepositoryTargeter(java.lang.String pTargeterPath,
                         java.lang.String pMappingFile)
Executes the repository targeter that exists at  
pTargeterPath
 in the config layer, and returns the results as Repo2XML items. | 
protected RepositoryItem[] | 
executeRepositoryTargeterItems(NameResolver pResolver,
                              java.lang.Object pTargeter,
                              int pStartingIndex,
                              int pMaxNumber)
Executes the repository targeter and returns the results as
 RepositoryItem[]. 
 | 
RepositoryItem[] | 
executeRepositoryTargeterItems(java.lang.String pTargeterPath)
Executes the repository targeter that exists at  
pTargeterPath
 in the config layer, and returns the results as RepositoryItem[]. | 
RepositoryItem[] | 
executeRepositoryTargeterItems(java.lang.String pTargeterPath,
                              int pMaxNumber)
Executes the repository targeter that exists at  
pTargeterPath
 in the config layer, and returns the results as RepositoryItem[]. | 
RepositoryItem[] | 
executeRepositoryTargeterItems(java.lang.String pTargeterPath,
                              int pStartingIndex,
                              int pMaxNumber)
Executes the repository targeter that exists at  
pTargeterPath
 in the config layer, and returns the results as RepositoryItem[]. | 
atg.repository.xml.ItemDescriptorMappingManager | 
getMappingManager()
Get property  
MappingManager | 
protected NameResolver | 
getTargerterResolver()
Get the NameResolver to get the targeter. 
 | 
TargetingSourceMap | 
getTargetingSourceMap()
Get property  
TargetingSourceMap | 
GetService | 
getXmlGetService()
Get property  
XmlGetService | 
boolean | 
isUseDefaultMappings()
Get property  
UseDefaultMappings
 DEFAULT: true | 
protected Targeter | 
resolveTargeter(NameResolver pTargeterResolver,
               java.lang.String pTargeterPath)
Get the targeter denoted by a path. 
 | 
void | 
setMappingManager(atg.repository.xml.ItemDescriptorMappingManager pMappingManager)
Set property  
MappingManager | 
void | 
setTargetingSourceMap(TargetingSourceMap pTargetingSourceMap)
Set property  
TargetingSourceMap | 
void | 
setUseDefaultMappings(boolean pUseDefaultMappings)
Set property  
UseDefaultMappings
 DEFAULT: true | 
void | 
setXmlGetService(GetService pXmlGetService)
Set property  
XmlGetService | 
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService, toStringvlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic TargetingServices()
public void setXmlGetService(GetService pXmlGetService)
XmlGetServicepXmlGetService - the service that turns a RepositoryItem
 into an XML filepublic GetService getXmlGetService()
XmlGetServicepublic void setMappingManager(atg.repository.xml.ItemDescriptorMappingManager pMappingManager)
MappingManagerpMappingManager - the service that controls mapping files for all
 item descriptorspublic atg.repository.xml.ItemDescriptorMappingManager getMappingManager()
MappingManagerpublic void setUseDefaultMappings(boolean pUseDefaultMappings)
UseDefaultMappings
 DEFAULT: truepUseDefaultMappings - true if services that return Repo2Xml
 items should use default mapping files supplied by the
 ItemMappingManager configured for this component. This
 property is ignored if a mapping file is explicitly passed to
 the servicepublic boolean isUseDefaultMappings()
UseDefaultMappings
 DEFAULT: trueItemMappingManager configured for this component. This
 property is ignored if a mapping file is explicitly passed to
 the servicepublic void setTargetingSourceMap(TargetingSourceMap pTargetingSourceMap)
TargetingSourceMappTargetingSourceMap - The TargetingSourceMap to setpublic TargetingSourceMap getTargetingSourceMap()
TargetingSourceMappublic java.lang.String[] executeRepositoryTargeter(java.lang.String pTargeterPath)
                                             throws atg.targeting.TargetingException,
                                                    GetException
pTargeterPath in the config layer, and returns
 the results as Repo2XML items. If this targeter is called in
 the context or a request, then that request is used to
 resolve and execute the targeter, so that any session or request
 scoped components referenced (e.g. Profile) can be resolved
 properlypTargeterPath - the nucleus path of the targeter to executeTargetingException - if a targeting error occursGetException - if an error occurs turning the
 results into Repo2XML itemspublic java.lang.String[] executeRepositoryTargeter(java.lang.String pTargeterPath,
                                                    java.lang.String pMappingFile)
                                             throws atg.targeting.TargetingException,
                                                    GetException
pTargeterPath
 in the config layer, and returns the results as Repo2XML items. If this
 targeter is called in the context or a request, then that request is used
 to resolve and execute the targeter, so that any session or request scoped
 components referenced (e.g. Profile) can be resolved properlypTargeterPath - the nucleus path of the targeter to executepMappingFile - the mapping file to use when turning the item into an
          XML documentTargetingException - if a targeting error occursGetException - if an error occurs turning the results into
              Repo2XML itemspublic java.lang.String[] executeRepositoryTargeter(java.lang.String pTargeterPath,
                                                    int pMaxNumber)
                                             throws atg.targeting.TargetingException,
                                                    GetException
pTargeterPath in the config layer, and returns
 the results as Repo2XML items. If this targeter is called in
 the context or a request, then that request is used to
 resolve and execute the targeter, so that any session or request
 scoped components referenced (e.g. Profile) can be resolved
 properlypTargeterPath - the nucleus path of the targeter to executepMaxNumber - the maximum number of elements to returnTargetingException - if a targeting error occursGetException - if an error occurs turning the
 results into Repo2XML itemspublic java.lang.String[] executeRepositoryTargeter(java.lang.String pTargeterPath,
                                                    int pMaxNumber,
                                                    java.lang.String pMappingFile)
                                             throws atg.targeting.TargetingException,
                                                    GetException
pTargeterPath in the config layer, and returns
 the results as Repo2XML items. If this targeter is called in
 the context or a request, then that request is used to
 resolve and execute the targeter, so that any session or request
 scoped components referenced (e.g. Profile) can be resolved
 properlypTargeterPath - the nucleus path of the targeter to executepMaxNumber - the maximum number of elements to returnpMappingFile - the mapping file to use when turning the item
 into an XML documentTargetingException - if a targeting error occursGetException - if an error occurs turning the
 results into Repo2XML itemspublic java.lang.String[] executeRepositoryTargeter(java.lang.String pTargeterPath,
                                                    int pStartingIndex,
                                                    int pMaxNumber)
                                             throws atg.targeting.TargetingException,
                                                    GetException
pTargeterPath
 in the config layer, and returns the results as Repo2XML items. If this
 targeter is called in the context or a request, then that request is used
 to resolve and execute the targeter, so that any session or request scoped
 components referenced (e.g. Profile) can be resolved properlypTargeterPath - the nucleus path of the targeter to executepStartingIndex - if items are returned from the targeter, the index of
          the result that should be the first item in the result setpMaxNumber - the maximum number of elements to returnTargetingException - if a targeting error occursGetException - if an error occurs turning the results into
              Repo2XML itemspublic java.lang.String[] executeRepositoryTargeter(java.lang.String pTargeterPath,
                                                    int pStartingIndex,
                                                    int pMaxNumber,
                                                    java.lang.String pMappingFile)
                                             throws atg.targeting.TargetingException,
                                                    GetException
pTargeterPath
 in the config layer, and returns the results as Repo2XML items. If this
 targeter is called in the context or a request, then that request is used
 to resolve and execute the targeter, so that any session or request scoped
 components referenced (e.g. Profile) can be resolved properlypTargeterPath - the nucleus path of the targeter to executepStartingIndex - if items are returned from the targeter, the index of
          the result that should be the first item in the result setpMaxNumber - the maximum number of elements to returnpMappingFile - the mapping file to use when turning the item into an
          XML documentTargetingException - if a targeting error occursGetException - if an error occurs turning the results into
              Repo2XML itemspublic RepositoryItem[] executeRepositoryTargeterItems(java.lang.String pTargeterPath, int pStartingIndex, int pMaxNumber) throws atg.targeting.TargetingException
pTargeterPath
 in the config layer, and returns the results as RepositoryItem[]. If this
 targeter is called in the context or a request, then that request is used
 to resolve and execute the targeter, so that any session or request scoped
 components referenced (e.g. Profile) can be resolved properlypTargeterPath - the nucleus path of the targeter to executepStartingIndex - if items are returned from the targeter, the index of
          the result that should be the first item in the result setpMaxNumber - the maximum number of elements to returnTargetingException - if a targeting error occurspublic RepositoryItem[] executeRepositoryTargeterItems(java.lang.String pTargeterPath) throws atg.targeting.TargetingException
pTargeterPath
 in the config layer, and returns the results as RepositoryItem[]. If this
 targeter is called in the context or a request, then that request is used
 to resolve and execute the targeter, so that any session or request scoped
 components referenced (e.g. Profile) can be resolved properlypTargeterPath - the nucleus path of the targeter to executeTargetingException - if a targeting error occurspublic RepositoryItem[] executeRepositoryTargeterItems(java.lang.String pTargeterPath, int pMaxNumber) throws atg.targeting.TargetingException
pTargeterPath
 in the config layer, and returns the results as RepositoryItem[]. If this
 targeter is called in the context or a request, then that request is used
 to resolve and execute the targeter, so that any session or request scoped
 components referenced (e.g. Profile) can be resolved properlypTargeterPath - the nucleus path of the targeter to executepMaxNumber - the maximum number of elements to returnTargetingException - if a targeting error occursprotected NameResolver getTargerterResolver()
protected Targeter resolveTargeter(NameResolver pTargeterResolver, java.lang.String pTargeterPath) throws atg.targeting.TargetingException
pTargeterResolver - The NameResolver to use when resolving the
          targeterpTargeterPath - The path to the targeterTargetingException - if a targeting error occursprotected RepositoryItem[] executeRepositoryTargeterItems(NameResolver pResolver, java.lang.Object pTargeter, int pStartingIndex, int pMaxNumber) throws atg.targeting.TargetingException
pResolver - The NameResolver used to get the targeterpTargeter - The TargeterpStartingIndex - if items are returned from the targeter, the index of
          the result that should be the first item in the result setpMaxNumber - the maximum number of elements to returnTargetingException - if a targeting error occurs