public interface UsageRecordPolicy extends PropertyContainerPolicy
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowReplace(PropertyContainer props,
UsageRecord rec)
Allow a veto on record replacement
|
void |
postCreate(PropertyContainer props,
UsageRecord rec)
once record has been committed apply any side effects such as budget
charging.
|
void |
preDelete(UsageRecord rec)
perform any operations required prior to an existing record being
deleted, such as budget refunds
|
parseendParse, getDerivedProperties, initFinder, modifyDefaultTableSpecification, startParsevoid postCreate(PropertyContainer props, UsageRecord rec) throws java.lang.Exception
java.lang.Exceptionprops - Full set of properties from the parse stagerec - The actual committed recordvoid preDelete(UsageRecord rec) throws java.lang.Exception
java.lang.Exceptionrec - boolean allowReplace(PropertyContainer props, UsageRecord rec)
props - new parsed valuesrec - old record