public class ProfileContextValueSource extends ContextValueSourceImpl
Created: August 18 2016
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string from source code control system.
|
SERVICE_INFO_KEY
DEFAULT_VALUE
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
ProfileContextValueSource() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getPropertyNameForSourceItem(atg.commerce.util.ContextValueRetrieverArguments pArguments)
Returns profilePropertyName from pArguments.
|
protected RepositoryItem |
getSourceItem(atg.commerce.util.ContextValueRetrieverArguments pArguments)
Get the source item.
|
RepositoryItem |
retrieveValue(atg.commerce.util.ContextValueRetrieverArguments pArguments)
Determine the appropriate value for one profile property based on information provided
in an arguments object.
|
adjustForCandidateId, getContextValueRetriever, setContextValueRetriever
addLogListener, clearAbsoluteNameAndContext, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, isStartServiceComplete, 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, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
protected RepositoryItem getSourceItem(atg.commerce.util.ContextValueRetrieverArguments pArguments) throws RepositoryException
true
for shouldUseProfile().
Return the source RepositoryItem item.
getSourceItem
in class ContextValueSourceImpl
pArguments
- the context value retriever arguments.RepositoryException
protected java.lang.String getPropertyNameForSourceItem(atg.commerce.util.ContextValueRetrieverArguments pArguments)
Return the property name appropriate for the source RepositoryItem.
The default implementation returns sitePropertyName from pArguments.
getPropertyNameForSourceItem
in class ContextValueSourceImpl
pArguments
- the argumentspublic RepositoryItem retrieveValue(atg.commerce.util.ContextValueRetrieverArguments pArguments) throws RepositoryException
retrieveValue
in interface ContextValueSource
retrieveValue
in class ContextValueSourceImpl
pArguments
- an object containing properties that define possible
sources for the value to be retrievedRepositoryException