public class TemplateExpander extends UpdateProcessor
| Modifier and Type | Class and Description |
|---|---|
static interface |
TemplateExpander.Initialiser
The template mechanism can be extended by Initialiser objects that can perform extra template work on newly templated objects before they're commited to the provider.
|
| Constructor and Description |
|---|
TemplateExpander() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applySourceFromTemplate(SourceObject object) |
static void |
applySourceFromTemplate(SourceObject template, SourceObject object) |
static java.lang.String |
getTemplateObjectName(DBObject object) |
static <T extends DBObject> |
initialiseObject(T template) |
static boolean |
isPendingObject(DBObject object) |
boolean |
onlyProcessesPrimaryUpdates()
A "primary only" processor is only interested in primary updates.
|
void |
processUpdate(DBObjectTransaction txn, Difference objDiff)
Called by a DBObjectProvider during a create or update process.
|
static void |
registerInitialiser(TemplateExpander.Initialiser ini) |
static void |
registerPropertiesToClear(java.lang.Class clearFromClass, java.util.ArrayList<java.lang.String> clearPropsList, boolean append)
Deprecated.
use registerPropertyToClear
|
static void |
registerPropertyToClear(java.lang.Class clearFromClass, java.lang.String clearProperty) |
getLogger, getProcessorPropertiespublic boolean onlyProcessesPrimaryUpdates()
UpdateProcessoronlyProcessesPrimaryUpdates in class UpdateProcessorpublic void processUpdate(DBObjectTransaction txn, Difference objDiff)
UpdateProcessorprocessUpdate in class UpdateProcessortxn - the overall transaction that is being performedobjDiff - the Difference of two SystemObjects to be processedpublic static final <T extends DBObject> T initialiseObject(T template)
public static final boolean isPendingObject(DBObject object)
public static void registerInitialiser(TemplateExpander.Initialiser ini)
public static void registerPropertyToClear(java.lang.Class clearFromClass,
java.lang.String clearProperty)
@Deprecated
public static void registerPropertiesToClear(java.lang.Class clearFromClass,
java.util.ArrayList<java.lang.String> clearPropsList,
boolean append)
public static java.lang.String getTemplateObjectName(DBObject object)
public static void applySourceFromTemplate(SourceObject object)
public static void applySourceFromTemplate(SourceObject template, SourceObject object)