| org.romaframework.core.flow.UserObjectEventListener
All known Subclasses: org.romaframework.aspect.flow.impl.POJOFlow, org.romaframework.aspect.view.echo2.Echo2ViewAspect, org.romaframework.aspect.persistence.PersistenceContextInjector, org.romaframework.aspect.flow.FlowAspectAbstract, org.romaframework.aspect.i18n.rb.I18NAspectResourceBundleImpl,
UserObjectEventListener | public interface UserObjectEventListener (Code) | | Listener interface of events. Aspects and modules can implement this interface to intercept events generated by Roma controller.
author: Luca Garulli (luca.garulli@assetdata.it) |
Method Summary | |
public void | onAfterActionExecution(Object iContent, SchemaElement iAction) Callback invoked after the execution of any action by the Controller. | public Object | onAfterFieldRead(Object iContent, SchemaField iField, Object iCurrentValue) Callback invoked after have read a field. | public Object | onAfterFieldWrite(Object iContent, SchemaField iField, Object iCurrentValue) Callback invoked after a field is written. | public boolean | onBeforeActionExecution(Object iContent, SchemaElement iAction) Callback invoked before the execution of any action by the Controller. | public Object | onBeforeFieldRead(Object iContent, SchemaField iField, Object iCurrentValue) Callback invoked before to read a field. | public Object | onBeforeFieldWrite(Object iContent, SchemaField iField, Object iCurrentValue) Callback invoked before a field is written. | public void | onFieldRefresh(SessionInfo iSession, Object iContent, SchemaField iField) Invoked when a field is changed outside Roma, usually from the user side. |
onAfterActionExecution | public void onAfterActionExecution(Object iContent, SchemaElement iAction)(Code) | | Callback invoked after the execution of any action by the Controller. Events are themselve Actions.
Parameters: iContent - The User Object Parameters: iAction - The Schema Action instance |
onAfterFieldRead | public Object onAfterFieldRead(Object iContent, SchemaField iField, Object iCurrentValue)(Code) | | Callback invoked after have read a field.
Parameters: iContent - Object owns the field to be read Parameters: iField - Field to be read Parameters: iCurrentValue - Current field value If the implementation change the value, returns the modified value, otherwise the same of iCurrentValue parameter |
onAfterFieldWrite | public Object onAfterFieldWrite(Object iContent, SchemaField iField, Object iCurrentValue)(Code) | | Callback invoked after a field is written.
Parameters: iContent - Object owns the field to be written Parameters: iField - Field to be written Parameters: iCurrentValue - Value to write in the field If the implementation change the value, returns the modified value, otherwise the same of iCurrentValue parameter |
onBeforeActionExecution | public boolean onBeforeActionExecution(Object iContent, SchemaElement iAction)(Code) | | Callback invoked before the execution of any action by the Controller. Events are themselve Actions.
Parameters: iContent - The User Object Parameters: iAction - The Schema Action instance true if the execution can proceed, false otherwise |
onBeforeFieldRead | public Object onBeforeFieldRead(Object iContent, SchemaField iField, Object iCurrentValue)(Code) | | Callback invoked before to read a field.
Parameters: iContent - Object owns the field to be read Parameters: iField - Field to be read Parameters: iCurrentValue - Current field value If the implementation change the value, returns the modified value, otherwise the same of iCurrentValue parameter |
onBeforeFieldWrite | public Object onBeforeFieldWrite(Object iContent, SchemaField iField, Object iCurrentValue)(Code) | | Callback invoked before a field is written.
Parameters: iContent - Object owns the field to be written Parameters: iField - Field to be written Parameters: iCurrentValue - Value to write in the field If the implementation change the value, returns the modified value, otherwise the same of iCurrentValue parameter |
onFieldRefresh | public void onFieldRefresh(SessionInfo iSession, Object iContent, SchemaField iField)(Code) | | Invoked when a field is changed outside Roma, usually from the user side.
Parameters: iSession - User's session Parameters: iContent - POJO refreshed Parameters: iField - Field refreshed |
|
|