Class DebugOnSaveActionFactory.DebugOnSaveAction

    • Constructor Detail

      • DebugOnSaveAction

        public DebugOnSaveAction​(JspContext jspContext)
    • Method Detail

      • onSave

        public void onSave()
        Description copied from interface: OnSaveAction
        This event is fired first to let the action do something with the current item. Implementors may throw an exception from this method to indicate that something went wrong. If so, any remaining extensions will be unprocessed and the OnSaveAction.onRollback(Exception) is called.
        Specified by:
        onSave in interface OnSaveAction
        Overrides:
        onSave in class AbstractOnSaveAction
      • onCommit

        public void onCommit()
        Description copied from interface: OnSaveAction
        This event is fired after a successful commit. Implementors should not throw any exceptions from this method since it may confuse users to see error messages and may cause other extensions to not be called.
        Specified by:
        onCommit in interface OnSaveAction
        Overrides:
        onCommit in class AbstractOnSaveAction
      • onRollback

        public void onRollback​(Exception ex)
        Description copied from interface: OnSaveAction
        This event is fired after an error that caused the save action to rollback. Implementors should not throw any exceptions from this method since it may hide original exception and may cause other extensions to not be called.
        Specified by:
        onRollback in interface OnSaveAction
        Overrides:
        onRollback in class AbstractOnSaveAction
        Parameters:
        ex - The exception that caused the transaction to rollback