T - public class AccountingUpdater<T extends UsageRecordFactory.Use>
extends java.lang.Object
UsageRecordFactory| Constructor and Description |
|---|
AccountingUpdater(uk.ac.ed.epcc.webapp.AppContext conn,
PropertyMap meta_data,
UsageRecordParseTarget<T> t)
Create an AccountingUpdater.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
compare(java.lang.Object old_value,
java.lang.Object new_value)
compares two values, ignoring any differences due to null or
numerical type.
|
java.lang.String |
receiveAccountingData(java.lang.String update,
boolean replace,
boolean verify,
boolean augment)
Parse new accounting data
|
public AccountingUpdater(uk.ac.ed.epcc.webapp.AppContext conn,
PropertyMap meta_data,
UsageRecordParseTarget<T> t)
conn - AppContextmeta_data - MetaData propertiest - ParseTargetpublic final java.lang.String receiveAccountingData(java.lang.String update,
boolean replace,
boolean verify,
boolean augment)
update - update text one line per recordreplace - should existing records be replacedverify - existing records should be verified against post dataaugment - missing fields should be added to existing recordspublic boolean compare(java.lang.Object old_value,
java.lang.Object new_value)
old_value - new_value -