Package org.openbravo.portal
Class AccountChangeObserver
- java.lang.Object
-
- org.openbravo.client.kernel.event.EntityPersistenceEventObserver
-
- org.openbravo.portal.AccountChangeObserver
-
public class AccountChangeObserver extends EntityPersistenceEventObserver
Observes cancellation (active is set to false) of users with access to portal and sends an email to the user informing the account is expired.- Author:
- alostale
- See Also:
AccountCancelledEmailGenerator
-
-
Field Summary
Fields Modifier and Type Field Description static String
EVT_ACCOUNT_CANCELLED
-
Constructor Summary
Constructors Constructor Description AccountChangeObserver()
-
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
onUpdateActive(EntityUpdateEvent event)
-
Methods inherited from class org.openbravo.client.kernel.event.EntityPersistenceEventObserver
isValidEvent
-
-
-
-
Field Detail
-
EVT_ACCOUNT_CANCELLED
public static final String EVT_ACCOUNT_CANCELLED
- See Also:
- Constant Field Values
-
-
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)
-
onUpdateActive
public void onUpdateActive(@Observes EntityUpdateEvent event)
-
-