atg.commerce.search
Class PriceListPropertyProvider

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.search.PriceListPropertyProvider
All Implemented Interfaces:
atg.naming.AbsoluteNameable, NameContextBindingListener, NameContextElement, atg.naming.NameContextParentable, NameResolver, AdminableService, atg.nucleus.Configured, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, atg.repository.search.DynamicMetaPropertyProvider, MetaPropertyProvider, java.util.EventListener

public class PriceListPropertyProvider
extends GenericService
implements atg.repository.search.DynamicMetaPropertyProvider

Provider creates MetaProperty for "external" price property.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  MetaProperty mPriceProperty
           
 
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
PriceListPropertyProvider()
           
 
Method Summary
 void doStartService()
          This is called after a Service has been created, placed into the naming hierarchy, and initialized with its configured property values.
 java.util.Set<MetaProperty> getProperties(java.util.Set<java.lang.String> pSet)
          Builds new price MetaProperty
 java.lang.String getPropertyDisplayName()
           
 java.lang.String getPropertyName()
           
 java.lang.String getPropertyPrefix()
           
 java.lang.String getResourceBundle()
           
 MetaProperty resolveProperty(java.lang.String pName)
          Resolve the MetaProperty for the given name.
 void setPropertyDisplayName(java.lang.String pPropertyDisplayName)
           
 void setPropertyName(java.lang.String pPropertyName)
           
 void setPropertyPrefix(java.lang.String pPropertyPrefix)
           
 void setResourceBundle(java.lang.String pResourceBundle)
          Set the resource bundle to use.
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, 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
 
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, 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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


mPriceProperty

protected MetaProperty mPriceProperty
Constructor Detail

PriceListPropertyProvider

public PriceListPropertyProvider()
Method Detail

getPropertyName

public java.lang.String getPropertyName()
Returns:
propery name

setPropertyName

public void setPropertyName(java.lang.String pPropertyName)
Parameters:
pPropertyName - sets new property name

getPropertyDisplayName

public java.lang.String getPropertyDisplayName()
Returns:
price display name

setPropertyDisplayName

public void setPropertyDisplayName(java.lang.String pPropertyDisplayName)
Parameters:
pPropertyDisplayName - new price display name

getResourceBundle

public java.lang.String getResourceBundle()
Returns:
The resource bundle to use.

setResourceBundle

public void setResourceBundle(java.lang.String pResourceBundle)
Set the resource bundle to use.


getPropertyPrefix

public java.lang.String getPropertyPrefix()
Returns:
the propertyPrefix

setPropertyPrefix

public void setPropertyPrefix(java.lang.String pPropertyPrefix)
Parameters:
pPropertyPrefix - the propertyPrefix to set

getProperties

public java.util.Set<MetaProperty> getProperties(java.util.Set<java.lang.String> pSet)
Builds new price MetaProperty

Specified by:
getProperties in interface MetaPropertyProvider
Parameters:
pSet - unused
Returns:
set with only one "price" MetaProperty

resolveProperty

public MetaProperty resolveProperty(java.lang.String pName)
Resolve the MetaProperty for the given name.

Specified by:
resolveProperty in interface atg.repository.search.DynamicMetaPropertyProvider
Parameters:
pName - String property name.
Returns:
MetaProperty for the given name or null if not resolved.

doStartService

public void doStartService()
                    throws ServiceException
This is called after a Service has been created, placed into the naming hierarchy, and initialized with its configured property values. The Service should override this method to start any processes it requires.

Overrides:
doStartService in class GenericService
Throws:
ServiceException - if the Service had a problem starting up