public interface TransactionFilter
TransactionFilter instances must be thread-safe, and should not store any data in any instance variables when processing, as it is likely that several threads will be invoking the same filter several times.
Modifier and Type | Method and Description |
---|---|
void |
doCreate(IOTransaction object)
Called by the API just before an object is created in the database.
|
void |
doDelete(IOTransaction object)
Called by the API just before an object is removed from the database.
|
void |
doStagedDelete(IOTransaction object)
Called by the API just before a staged variant is deleted.
|
void |
doStagedUpdate(IOTransaction object)
Called by the API just before an object is updated in staged mode.
|
void |
doUpdate(IOTransaction object)
Called by the API just before an object is updated.
|
boolean |
getErrorsAreFatal()
Deprecated.
This method is deprecated because it might cause a racecondition. Use
FilterException(String message,boolean isErrorFatal) instead |
boolean |
isEnabled()
Return wether or not a filter is to be executed.
|
void doCreate(IOTransaction object) throws FilterException
object
- The object in question, for example an ArticleTransactionFilterException
- if the filter wants to signal that the create operation
should be aborted. The behaviour is configured via the errorsAreFatal property.void doDelete(IOTransaction object) throws FilterException
object
- The object in question, for example an ArticleTransactionFilterException
- if the filter wants to signal that the create operation
should be aborted. The behaviour is configured via the errorsAreFatal property.void doUpdate(IOTransaction object) throws FilterException
object
- The object in question, for example an ArticleTransactionFilterException
- if the filter wants to signal that the create operation
should be aborted. The behaviour is configured via the errorsAreFatal property.void doStagedUpdate(IOTransaction object) throws FilterException
object
- The object in question, for example an ArticleTransactionFilterException
- if the filter wants to signal that the create operation
should be aborted. The behaviour is configured via the errorsAreFatal property.void doStagedDelete(IOTransaction object) throws FilterException
object
- The object in question, for example an ArticleTransactionFilterException
- if the filter wants to signal that the delete operation
should be aborted. The behaviour is configured via the errorsAreFatal property.boolean getErrorsAreFatal()
FilterException(String message,boolean isErrorFatal)
insteadboolean isEnabled()
© 1998- 2018 Stibo DX