public class ProcessAccessToCollectionTransformer<C extends Product> extends Object implements org.apache.commons.collections.Transformer
Product.BIT_MASKS is not Product.BIT_MASKS.DISABLED and then if the collection is private or not.
If private and active then ensure openCnt (i.e. Open count) and other stats are maintained.| Modifier and Type | Field and Description |
|---|---|
protected javax.persistence.EntityManager |
em |
protected ThreadLocalTransformer |
threadLocal
An optional
ThreadLocalTransformer that allows Web stats (from WebAnalyticsTransformer) to be passed for the thread |
| Constructor and Description |
|---|
ProcessAccessToCollectionTransformer() |
| Modifier and Type | Method and Description |
|---|---|
C |
execute(C collection) |
ThreadLocalTransformer |
getThreadLocal()
An optional
ThreadLocalTransformer that allows Web stats (from WebAnalyticsTransformer) to be passed for the thread |
void |
setThreadLocal(ThreadLocalTransformer threadLocal)
An optional
ThreadLocalTransformer that allows Web stats (from WebAnalyticsTransformer) to be passed for the thread |
Object |
transform(Object input) |
protected void |
updateStats(C collection,
net.sf.json.JSONObject json) |
protected javax.persistence.EntityManager em
protected ThreadLocalTransformer threadLocal
ThreadLocalTransformer that allows Web stats (from WebAnalyticsTransformer) to be passed for the threadpublic ProcessAccessToCollectionTransformer()
protected void updateStats(C collection, net.sf.json.JSONObject json)
@Transactional(readOnly=false) public C execute(C collection) throws ContinueProcessingException
ContinueProcessingExceptionpublic Object transform(Object input)
transform in interface org.apache.commons.collections.Transformerpublic ThreadLocalTransformer getThreadLocal()
ThreadLocalTransformer that allows Web stats (from WebAnalyticsTransformer) to be passed for the threadpublic void setThreadLocal(ThreadLocalTransformer threadLocal)
ThreadLocalTransformer that allows Web stats (from WebAnalyticsTransformer) to be passed for the threadCopyright © 2018. All rights reserved.