atg.commerce.search.refinement.admin
Class CustomRefinementConfigurationGenerator

java.lang.Object
  extended by atg.nucleus.logging.VariableArgumentApplicationLoggingImpl
      extended by atg.nucleus.GenericService
          extended by atg.commerce.search.refinement.admin.RefinementConfigurationGenerator
              extended by atg.commerce.search.refinement.admin.CustomRefinementConfigurationGenerator
All Implemented Interfaces:
NameContextBindingListener, NameContextElement, NameResolver, AdminableService, ApplicationLogging, atg.nucleus.logging.ApplicationLoggingSender, atg.nucleus.logging.TraceApplicationLogging, VariableArgumentApplicationLogging, ComponentNameResolver, Service, ServiceListener, java.util.EventListener

public class CustomRefinementConfigurationGenerator
extends RefinementConfigurationGenerator

Refinement configuration generator for custom catalogs.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
protected  CustomCatalogTools mCustomCatalogTools
           
 
Fields inherited from class atg.commerce.search.refinement.admin.RefinementConfigurationGenerator
mCommerceRefinementConfigurationPropertyManager, mFacetSourceGenerator, mIdGenerator, mIdSpace, mRefinementElementPropertyManager, mTransactionManager
 
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
CustomRefinementConfigurationGenerator()
           
 
Method Summary
 RefinementConfigurationCollector collect()
          Run the custom catalog refinement configuration collector, and generate the refinement configuration XML files necessary to support each category and catalog.
 void generate(RefinementConfigurationCollector pCollector, RefinementConfigurationXMLHandler pHandler)
          Generate the refinement configurations.
 Repository getCatalogRepository()
          Gets the catalog repository
 RepositoryItem[] getCatalogs()
          Get the catalogs that will be used to generate refinement configurations.
 CustomCatalogTools getCustomCatalogTools()
          Gets the custom catalog tools component.
 void setCustomCatalogTools(CustomCatalogTools pCustomCatalogTools)
          Sets the custom catalog tools component.
 
Methods inherited from class atg.commerce.search.refinement.admin.RefinementConfigurationGenerator
getCollectorFactory, getCommerceRefinementConfigurationPropertyManager, getFacetSourceGenerator, getIdGenerator, getIdSpace, getRefineConfigXMLGenerator, getRefinementElementItemDescriptorName, getRefinementElementPropertyManager, getRefinementRepository, getTransactionManager, setCollectorFactory, setCommerceRefinementConfigurationPropertyManager, setFacetSourceGenerator, setIdGenerator, setIdSpace, setRefineConfigXMLGenerator, setRefinementElementPropertyManager, setTransactionManager, updateAndGenerate
 
Methods inherited from class atg.nucleus.GenericService
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
 
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

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string


mCustomCatalogTools

protected CustomCatalogTools mCustomCatalogTools
Constructor Detail

CustomRefinementConfigurationGenerator

public CustomRefinementConfigurationGenerator()
Method Detail

setCustomCatalogTools

public void setCustomCatalogTools(CustomCatalogTools pCustomCatalogTools)
Sets the custom catalog tools component.


getCustomCatalogTools

public CustomCatalogTools getCustomCatalogTools()
Gets the custom catalog tools component.


getCatalogRepository

public Repository getCatalogRepository()
Gets the catalog repository


getCatalogs

public RepositoryItem[] getCatalogs()
                             throws RepositoryException
Get the catalogs that will be used to generate refinement configurations. The default implementation returns all catalogs in the repository. For efficiency, subclasses can override this method to limit the catalogs that are used for faceting- typically, this would include only those catalogs that are "assignable" to users.

Throws:
RepositoryException

collect

public RefinementConfigurationCollector collect()
Run the custom catalog refinement configuration collector, and generate the refinement configuration XML files necessary to support each category and catalog.

Specified by:
collect in class RefinementConfigurationGenerator

generate

public void generate(RefinementConfigurationCollector pCollector,
                     RefinementConfigurationXMLHandler pHandler)
Description copied from class: RefinementConfigurationGenerator
Generate the refinement configurations.

Specified by:
generate in class RefinementConfigurationGenerator