T
- as location type. T.toString() will be used as a caching Key so, ensure that T.toString() returns a unique string for the location it represents.C
- as returned Content Typepublic interface ContentExtractor<T,C> extends CacheLookups
ContentLocationResolver
this
can locate and extract content from any Data Source.CONTENT_PUBLISH_CACHE_NAME, PRODUCT_LOOKUP_CACHE_NAME, PRODUCT_SEARCH_CACHE_NAME, TEMPLATEPAGE_MAPPING_CACHE_NAME
Modifier and Type | Method and Description |
---|---|
C |
getContent(T location,
ContentContext context)
Get Content.
|
@Cacheable(key="#location.toString()", condition="(#location!=null and #context!=null and T(com.neurosys.content.domain.Status).PUBLISH == #context.status)", value="publishContent") C getContent(T location, ContentContext context) throws Exception, ExecutionPreventedException
ExecutionPreventedException
if for some environmental reason
publishing was explicitly prevented.Exception
ExecutionPreventedException
Cacheable}(key="#location.toString()",
condition="(#location!=null and #context!=null and T(com.neurosys.content.domain.Status).PUBLISH == #context.status)",
value="publishContent")
Copyright © 2018. All rights reserved.