|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.targeting.TargetingSourceMap
public class TargetingSourceMap
Represents a mapping between source names used in a targeting
operation and their Nucleus paths. For example, if the
sourceMap property of this service contains a
mapping of "Profile" to "/atg/profiler/ProfileBean," then a
rules file employed by a rule-based Targeter can use these
two lines interchangeably:
<valueof property="Profile.email"> <valueof property="/atg/profiler/ProfileBean.email">
A TargetingSourceMap is supplied as a parameter to all the targeting droplets. The droplet uses the source map to obtain a NameResolver object and passes it on to the Targeter, which uses the NameResolver to resolve the names of source objects associated with a targeting operation.
Targeter,
NameResolver| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
protected java.util.Properties |
mSourceMap
The map of source names to their Nucleus paths |
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
|---|
DEFAULT_LOG_TRACE_STATUS |
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
| Constructor Summary | |
|---|---|
TargetingSourceMap()
|
|
| Method Summary | |
|---|---|
void |
addSourceMapping(java.lang.String pName,
java.lang.String pPath)
Adds a new mapping between a source name and its Nucleus path. |
void |
doStartService()
Called after the service has been created, placed into the naming hierarchy, and initialized with its configured property values. |
ComponentNameResolver |
getNameResolver()
Returns a ComponentNameResolver which can be used to resolve names which have been added to the source map. |
ComponentNameResolver |
getNameResolver(ComponentNameResolver pResolver)
Returns a ComponentNameResolver which can be used to resolve names which have been added to the source map. |
ComponentNameResolver |
getNameResolver(DynamoHttpServletRequest pRequest)
Returns a ComponentNameResolver which can be used to resolve names which have been added to the source map. |
NameResolver |
getNameResolver(NameResolver pResolver)
Returns a NameResolver which can be used to resolve names which have been added to the source map. |
java.util.Properties |
getSourceMap()
Gets the map of source names to their Nucleus paths. |
void |
removeSourceMapping(java.lang.String pName)
Removes the mapping associated with the given source name. |
void |
setSourceMap(java.util.Properties pSourceMap)
Sets the map of source names to their Nucleus paths. |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String CLASS_VERSION
protected java.util.Properties mSourceMap
| Constructor Detail |
|---|
public TargetingSourceMap()
| Method Detail |
|---|
public java.util.Properties getSourceMap()
public void setSourceMap(java.util.Properties pSourceMap)
public void addSourceMapping(java.lang.String pName,
java.lang.String pPath)
public void removeSourceMapping(java.lang.String pName)
public ComponentNameResolver getNameResolver()
ComponentNameResolverpublic ComponentNameResolver getNameResolver(DynamoHttpServletRequest pRequest)
getNameResolver().
atg.nucleus.naming.NameResolverpublic ComponentNameResolver getNameResolver(ComponentNameResolver pResolver)
ComponentNameResolverpublic NameResolver getNameResolver(NameResolver pResolver)
NameResolver
public void doStartService()
throws ServiceException
doStartService in class GenericServiceServiceException - if the service had a problem
starting up
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||