Java Doc for ProductPromoWorker.java in  » ERP-CRM-Financial » ofbiz » org » ofbiz » order » shoppingcart » product » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » ofbiz » org.ofbiz.order.shoppingcart.product 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.order.shoppingcart.product.ProductPromoWorker

ProductPromoWorker
public class ProductPromoWorker (Code)
ProductPromoWorker - Worker class for catalog/product promotion related functionality

Inner Class :public static class ActionResultInfo
Inner Class :protected static class UseLimitException extends Exception

Field Summary
final public static  Stringmodule
    
final public static  Stringresource_error
    


Method Summary
public static  StringcheckCanUsePromoCode(String productPromoCodeId, String partyId, GenericDelegator delegator)
    
protected static  booleancheckCondition(GenericValue productPromoCond, ShoppingCart cart, GenericDelegator delegator, LocalDispatcher dispatcher, Timestamp nowTimestamp)
    
protected static  voiddistributeDiscountAmount(double discountAmountTotal, double totalAmount, List cartItemsUsed, GenericValue productPromoAction, GenericDelegator delegator)
    
public static  voiddoOrderItemPromoAction(GenericValue productPromoAction, ShoppingCartItem cartItem, double amount, String amountField, GenericDelegator delegator)
    
public static  voiddoOrderPromoAction(GenericValue productPromoAction, ShoppingCart cart, double amount, String amountField, GenericDelegator delegator)
    
public static  voiddoPromotions(ShoppingCart cart, LocalDispatcher dispatcher)
    
public static  voiddoPromotions(ShoppingCart cart, List productPromoList, LocalDispatcher dispatcher)
    
protected static  IntegerfindAdjustment(GenericValue productPromoAction, List adjustments)
    
protected static  IntegerfindPromoItem(GenericValue productPromoAction, ShoppingCart cart)
    
public static  ListgetAgreementPromotions(ShoppingCart cart, Timestamp nowTimestamp, LocalDispatcher dispatcher)
    
protected static  voidgetAllProductIds(Set productCategoryIdSet, Set productIdSet, GenericDelegator delegator, Timestamp nowTimestamp, boolean include)
    
protected static  ListgetCartItemsUsed(ShoppingCart cart, GenericValue productPromoAction)
    
protected static  doublegetCartItemsUsedTotalAmount(ShoppingCart cart, GenericValue productPromoAction)
    
public static  LonggetProductPromoCodeUseLimit(GenericValue productPromoCode, String partyId, GenericDelegator delegator)
    
public static  LonggetProductPromoUseLimit(GenericValue productPromo, String partyId, GenericDelegator delegator)
    
public static  ListgetProductStorePromotions(ShoppingCart cart, Timestamp nowTimestamp, LocalDispatcher dispatcher)
    
public static  SetgetPromoRuleActionProductIds(GenericValue productPromoAction, GenericDelegator delegator, Timestamp nowTimestamp)
    
public static  SetgetPromoRuleCondProductIds(GenericValue productPromoCond, GenericDelegator delegator, Timestamp nowTimestamp)
    
public static  ListgetStoreProductPromos(GenericDelegator delegator, LocalDispatcher dispatcher, ServletRequest request)
    
protected static  voidhandleProductPromoCategories(Set productIds, List productPromoCategories, String productPromoApplEnumId, GenericDelegator delegator, Timestamp nowTimestamp)
    
protected static  voidhandleProductPromoProducts(Set productIds, List productPromoProducts, String productPromoApplEnumId)
    
protected static  booleanhasOrderTotalCondition(GenericValue productPromo, GenericDelegator delegator)
    
protected static  booleanisProductOld(String productId, GenericDelegator delegator, Timestamp nowTimestamp)
    
public static  StringmakeAutoDescription(GenericValue productPromo, GenericDelegator delegator, Locale locale)
    
public static  voidmakeProductPromoCondActionIdSets(String productPromoId, Set productIdsCond, Set productIdsAction, GenericDelegator delegator, Timestamp nowTimestamp)
    
public static  voidmakeProductPromoCondActionIdSets(String productPromoId, Set productIdsCond, Set productIdsAction, GenericDelegator delegator, Timestamp nowTimestamp, boolean filterOldProducts)
    
public static  voidmakeProductPromoIdSet(Set productIds, List productPromoCategories, List productPromoProducts, GenericDelegator delegator, Timestamp nowTimestamp, boolean filterOldProducts)
    
protected static  ActionResultInfoperformAction(GenericValue productPromoAction, ShoppingCart cart, GenericDelegator delegator, LocalDispatcher dispatcher, Timestamp nowTimestamp)
    
protected static  booleanrunProductPromoRules(ShoppingCart cart, boolean cartChanged, Long useLimit, boolean requireCode, String productPromoCodeId, Long codeUseLimit, long maxUseLimit, GenericValue productPromo, List productPromoRules, LocalDispatcher dispatcher, GenericDelegator delegator, Timestamp nowTimestamp)
    
protected static  voidrunProductPromos(List productPromoList, ShoppingCart cart, GenericDelegator delegator, LocalDispatcher dispatcher, Timestamp nowTimestamp, boolean isolatedTestRun)
    

Field Detail
module
final public static String module(Code)



resource_error
final public static String resource_error(Code)





Method Detail
checkCanUsePromoCode
public static String checkCanUsePromoCode(String productPromoCodeId, String partyId, GenericDelegator delegator)(Code)



checkCondition
protected static boolean checkCondition(GenericValue productPromoCond, ShoppingCart cart, GenericDelegator delegator, LocalDispatcher dispatcher, Timestamp nowTimestamp) throws GenericEntityException(Code)



distributeDiscountAmount
protected static void distributeDiscountAmount(double discountAmountTotal, double totalAmount, List cartItemsUsed, GenericValue productPromoAction, GenericDelegator delegator)(Code)



doOrderItemPromoAction
public static void doOrderItemPromoAction(GenericValue productPromoAction, ShoppingCartItem cartItem, double amount, String amountField, GenericDelegator delegator)(Code)



doOrderPromoAction
public static void doOrderPromoAction(GenericValue productPromoAction, ShoppingCart cart, double amount, String amountField, GenericDelegator delegator)(Code)



doPromotions
public static void doPromotions(ShoppingCart cart, LocalDispatcher dispatcher)(Code)



doPromotions
public static void doPromotions(ShoppingCart cart, List productPromoList, LocalDispatcher dispatcher)(Code)



findAdjustment
protected static Integer findAdjustment(GenericValue productPromoAction, List adjustments)(Code)



findPromoItem
protected static Integer findPromoItem(GenericValue productPromoAction, ShoppingCart cart)(Code)



getAgreementPromotions
public static List getAgreementPromotions(ShoppingCart cart, Timestamp nowTimestamp, LocalDispatcher dispatcher)(Code)



getAllProductIds
protected static void getAllProductIds(Set productCategoryIdSet, Set productIdSet, GenericDelegator delegator, Timestamp nowTimestamp, boolean include) throws GenericEntityException(Code)



getCartItemsUsed
protected static List getCartItemsUsed(ShoppingCart cart, GenericValue productPromoAction)(Code)



getCartItemsUsedTotalAmount
protected static double getCartItemsUsedTotalAmount(ShoppingCart cart, GenericValue productPromoAction)(Code)



getProductPromoCodeUseLimit
public static Long getProductPromoCodeUseLimit(GenericValue productPromoCode, String partyId, GenericDelegator delegator) throws GenericEntityException(Code)



getProductPromoUseLimit
public static Long getProductPromoUseLimit(GenericValue productPromo, String partyId, GenericDelegator delegator) throws GenericEntityException(Code)
calculate low use limit for this promo for the current "order", check per order, customer, promo



getProductStorePromotions
public static List getProductStorePromotions(ShoppingCart cart, Timestamp nowTimestamp, LocalDispatcher dispatcher)(Code)



getPromoRuleActionProductIds
public static Set getPromoRuleActionProductIds(GenericValue productPromoAction, GenericDelegator delegator, Timestamp nowTimestamp) throws GenericEntityException(Code)



getPromoRuleCondProductIds
public static Set getPromoRuleCondProductIds(GenericValue productPromoCond, GenericDelegator delegator, Timestamp nowTimestamp) throws GenericEntityException(Code)



getStoreProductPromos
public static List getStoreProductPromos(GenericDelegator delegator, LocalDispatcher dispatcher, ServletRequest request)(Code)



handleProductPromoCategories
protected static void handleProductPromoCategories(Set productIds, List productPromoCategories, String productPromoApplEnumId, GenericDelegator delegator, Timestamp nowTimestamp) throws GenericEntityException(Code)



handleProductPromoProducts
protected static void handleProductPromoProducts(Set productIds, List productPromoProducts, String productPromoApplEnumId) throws GenericEntityException(Code)



hasOrderTotalCondition
protected static boolean hasOrderTotalCondition(GenericValue productPromo, GenericDelegator delegator) throws GenericEntityException(Code)



isProductOld
protected static boolean isProductOld(String productId, GenericDelegator delegator, Timestamp nowTimestamp) throws GenericEntityException(Code)



makeAutoDescription
public static String makeAutoDescription(GenericValue productPromo, GenericDelegator delegator, Locale locale) throws GenericEntityException(Code)



makeProductPromoCondActionIdSets
public static void makeProductPromoCondActionIdSets(String productPromoId, Set productIdsCond, Set productIdsAction, GenericDelegator delegator, Timestamp nowTimestamp) throws GenericEntityException(Code)



makeProductPromoCondActionIdSets
public static void makeProductPromoCondActionIdSets(String productPromoId, Set productIdsCond, Set productIdsAction, GenericDelegator delegator, Timestamp nowTimestamp, boolean filterOldProducts) throws GenericEntityException(Code)



makeProductPromoIdSet
public static void makeProductPromoIdSet(Set productIds, List productPromoCategories, List productPromoProducts, GenericDelegator delegator, Timestamp nowTimestamp, boolean filterOldProducts) throws GenericEntityException(Code)



performAction
protected static ActionResultInfo performAction(GenericValue productPromoAction, ShoppingCart cart, GenericDelegator delegator, LocalDispatcher dispatcher, Timestamp nowTimestamp) throws GenericEntityException, CartItemModifyException(Code)
returns true if the cart was changed and rules need to be re-evaluted



runProductPromoRules
protected static boolean runProductPromoRules(ShoppingCart cart, boolean cartChanged, Long useLimit, boolean requireCode, String productPromoCodeId, Long codeUseLimit, long maxUseLimit, GenericValue productPromo, List productPromoRules, LocalDispatcher dispatcher, GenericDelegator delegator, Timestamp nowTimestamp) throws GenericEntityException, UseLimitException(Code)



runProductPromos
protected static void runProductPromos(List productPromoList, ShoppingCart cart, GenericDelegator delegator, LocalDispatcher dispatcher, Timestamp nowTimestamp, boolean isolatedTestRun) throws GeneralException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.