Interface IAppHistoryForward
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptiondefault StringisForwardEnabled(IAppHistoryEntry entry, IClientSessionGyro clientGyro) Returns if the forward operation is enabled or not.performForward(IAppHistoryEntry entry, IClientSessionGyro clientGyro, IAppHistoryOperationCompleted completedCallback) Performs the forward operation for the client session in question.
Method Details
isForwardEnabled
Returns if the forward operation is enabled or not.If a
null Stringis returned, the operation is enabled, otherwise the string is the reason why to operation is disabled. This reason is used typically for developers, logging and debugging.If an operation is not enabled or allowed, it will not be performed. This method can be called multiple times and should be quick and efficient.
Override this method to handle other processing than to return true.
If the operation requires some processing of the history entries focus, use the method
to test if the focus operation can be performed.IAppHistoryEntry.isForwardEnabled(IClientSessionGyro)- Parameters:
entry- The history entry.clientGyro- The client session requesting the forward operation enabled state.- Returns:
- Default
nullmeaning enabled, otherwise the reason string for being disabled.
performForward
String performForward(IAppHistoryEntry entry, IClientSessionGyro clientGyro, IAppHistoryOperationCompleted completedCallback) throws PropException, TXPException Performs the forward operation for the client session in question.If a
null Stringis returned, the operation is enabled, otherwise the string is the reason why to operation is disabled. This reason is used typically for developers, logging and debugging.If the operation requires some processing of the history entries focus, use the method
.IAppHistoryEntry.setForwardFocus(IClientSessionGyro)NOTE 1: This method must complete a call to the callback runnable when it has completed the operation completes with or without errors.
NOTE 2: The
completedCallbackfunction SHOULD NOT be called if an exception is thrown. It should be the last call done in the routine that performs the operation, regardless of execution thread.- Parameters:
entry- The history entry.clientGyro- The client session requesting the forward operation execution.completedCallback- The callback to call when operation has completed.- Returns:
- Default
nullmeaning enabled and the operation has begun (perhaps not completed yet), otherwise the reason string for being disabled. - Throws:
PropException- Property exceptions for property or focus errors or problems.TXPException- For transaction exceptions.