public abstract class BaseUsageRecordPolicy extends BasePolicy implements UsageRecordPolicy
| Constructor and Description |
|---|
BaseUsageRecordPolicy() |
| 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, modifyDefaultTableSpecification, startParse, uniqueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseendParse, getDerivedProperties, initFinder, modifyDefaultTableSpecification, startParsepublic void postCreate(PropertyContainer props, UsageRecord rec) throws java.lang.Exception
UsageRecordPolicypostCreate in interface UsageRecordPolicyjava.lang.Exceptionprops - Full set of properties from the parse stagerec - The actual committed recordpublic void preDelete(UsageRecord rec) throws java.lang.Exception
UsageRecordPolicypreDelete in interface UsageRecordPolicyjava.lang.Exceptionpublic boolean allowReplace(PropertyContainer props, UsageRecord rec)
UsageRecordPolicyallowReplace in interface UsageRecordPolicyprops - new parsed valuesrec - old record