public class DisplayableModelController<T extends Displayable> extends StandardModelController<T>
Constructor and Description |
---|
DisplayableModelController() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultTemplate() |
String |
getTemplate(T model) |
void |
onPostLoadItem(T obj)
Override this to perform some action after an item is loaded from the datastore
|
protected void |
preInitialize(DataAccessRegistration registration) |
String |
render(T item,
Map<String,Object> context) |
DisplayableModelController<T> |
setDefaultTemplate(String template) |
all, countForKey, detach, filter, filter, filterBy, filterByKey, filterChain, forId, forIdWithDeleted, forUniqueKey, getBucket, getKeyFields, getModelClass, getPersister, getReadonlyWrapper, getStash, getUniqueFields, hardDelete, init, isWritable, listForKey, newModel, newModel, newModel, onPostCreate, onPostSave, onPreCreatePrepare, onPreCreateValidate, onPreRead, onPreSavePrepare, onPreSaveValidate, originalForId, originalForId, postInitialize, reset, save, setPersister, setWritable, softDelete
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
anyOf, anyOf, find, forIdOrNotFound, forUniqueKeyOrNotFound, onPostSaveAuditTrailLog, search, update, updateValues
public DisplayableModelController()
protected void preInitialize(DataAccessRegistration registration)
preInitialize
in class StandardModelController<T extends Displayable>
public String getDefaultTemplate()
public DisplayableModelController<T> setDefaultTemplate(String template)
public String getTemplate(T model)
public void onPostLoadItem(T obj)
ModelController
onPostLoadItem
in interface ModelController<T extends Displayable>
onPostLoadItem
in class StandardModelController<T extends Displayable>
Copyright © 2016. All rights reserved.