Class OrderBillPrintedEntityListenerContribution
java.lang.Object
ch.tocco.nice2.optional.order.api.entitylistener.OrderBillPrintedEntityListenerContribution
example:
set a field or relation to be ignored in OrderBillPrintedEntityListener or OrderPositionBillPrintedEntityListener
set type="field" for fields and "relation" for relations
by default contributions are used for Orders, this can be changed by setting model="Order_position"
@Bean
public OrderBillPrintedEntityListenerContribution orderPositionRegistrationBillPrintedEntityListenerContribution() {
OrderBillPrintedEntityListenerContribution contribution = new OrderBillPrintedEntityListenerContribution();
contribution.setName("relRegistration");
contribution.setAction("ignore");
contribution.setModel("Order_position");
contribution.setType("relation");
return contribution;
}
Set action attribute to "warning" to remove contribution from standard modules in customer modules
public OrderBillPrintedEntityListenerContribution removeOrderPositionRegistrationBillPrintedEntityListenerContribution() {
OrderBillPrintedEntityListenerContribution contribution = new OrderBillPrintedEntityListenerContribution();
contribution.setName("relRegistration");
contribution.setAction("warning");
contribution.setModel("Order_position");
contribution.setType("relation");
return contribution;
}
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
OrderBillPrintedEntityListenerContribution
public OrderBillPrintedEntityListenerContribution()
-
-
Method Details
-
getType
-
setType
-
getAction
-
setAction
-
getName
-
setName
-
getModel
-
setModel
-