T
- as HierarchialDomainObject
public class MultiCategoryLookup<T extends HierarchialDomainObject> extends UsesIntermediateObjectImpl<Map<String,Object>> implements Lookup, CacheLookups
queryTransformer
. Typically search by Name or DisplayName (case insensitive).
UsesIntermediateObject.getResultNamesUsed()
is set to list of {resultNamesUsed1, resultNamesUsed2, resultNamesUsed3}
in the configuration for 3 levels by default.
IHierarchialReference.getName()
or HierarchialDomainObject.getDisplayName()
; whichever matches
#ETL_CATEGORY_CACHE_NAME
UsesIntermediateObject
; it will expect the Category and Sub-Category names to be provided in order in the following convention:intermediateResults, resultNamesUsed, resultsThatAreOptional
CONTENT_PUBLISH_CACHE_NAME, PRODUCT_LOOKUP_CACHE_NAME, PRODUCT_SEARCH_CACHE_NAME, TEMPLATEPAGE_MAPPING_CACHE_NAME
Constructor and Description |
---|
MultiCategoryLookup() |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
org.springframework.cache.CacheManager |
getCacheManager() |
String |
getCacheName() |
protected T |
getCategory(String[] nameSubCats) |
int |
getLevels() |
org.apache.commons.collections.Transformer |
getQueryTransformer()
Accepts an Array of category names.
|
protected T |
lookupCache(String[] nameSubCats) |
protected static String |
printCatHierarchy(String[] subCatLevels) |
void |
setCacheManager(org.springframework.cache.CacheManager cacheManager) |
void |
setCacheName(String cacheName) |
void |
setLevels(int levels) |
void |
setQueryTransformer(org.apache.commons.collections.Transformer queryTransformer)
Accepts an Array of category names.
|
Object |
transform(Object in)
For a Given String, Lookup a value for it
|
determineInput, getInputFromContext, getInterMediateResults, getResultNamesThatAreOptional, getResultNamesUsed, setIntermediateResults, setResultNamesThatAreOptional, setResultNamesUsed
public void clear()
public Object transform(Object in)
Lookup
public org.apache.commons.collections.Transformer getQueryTransformer()
public void setQueryTransformer(org.apache.commons.collections.Transformer queryTransformer)
public int getLevels()
public void setLevels(int levels)
public org.springframework.cache.CacheManager getCacheManager()
public void setCacheManager(org.springframework.cache.CacheManager cacheManager)
public String getCacheName()
public void setCacheName(String cacheName)
Copyright © 2018. All rights reserved.