Package org.openbravo.event
Class PriceAdjustmentHandler
- java.lang.Object
-
- org.openbravo.client.kernel.event.EntityPersistenceEventObserver
-
- org.openbravo.event.PriceAdjustmentHandler
-
public class PriceAdjustmentHandler extends EntityPersistenceEventObserver
Validates mandatory to choose Priority Rule if there is max quantity
-
-
Constructor Summary
Constructors Constructor Description PriceAdjustmentHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Entity[]
getObservedEntities()
Must be implemented by subclass to signal whichEntity
types are observed.void
onSave(EntityNewEvent event)
void
onUpdate(EntityUpdateEvent event)
-
Methods inherited from class org.openbravo.client.kernel.event.EntityPersistenceEventObserver
isValidEvent
-
-
-
-
Method Detail
-
getObservedEntities
protected Entity[] getObservedEntities()
Description copied from class:EntityPersistenceEventObserver
Must be implemented by subclass to signal whichEntity
types are observed.- Specified by:
getObservedEntities
in classEntityPersistenceEventObserver
- Returns:
- the array of entity instances to observe.
- See Also:
EntityPersistenceEventObserver.isValidEvent(EntityPersistenceEvent)
-
onSave
public void onSave(@Observes EntityNewEvent event)
-
onUpdate
public void onUpdate(@Observes EntityUpdateEvent event)
-
-