public class CacheEntityToDmrBridge<T extends LocalCache> extends EntityToDmrBridgeImpl<T>
address, beanMetaData, dispatcher, entityAdapter, entityComparator, entityList, formMetaData, nameOfLastEdited, propertyMetadata, type, view| Constructor and Description |
|---|
CacheEntityToDmrBridge(ApplicationMetaData propertyMetadata,
Class<? extends T> type,
FrameworkView view,
DispatchAsync dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName(T entity)
Get the name of the given entity.
|
protected ModelNode |
getResourceAddress(String name) |
void |
loadEntities(String nameEditedOrAdded)
Query the server for the full entity list.
|
protected void |
onLoadEntitiesSuccess(ModelNode response) |
void |
onSaveDetails(T entity,
Map<String,Object> changedValues,
ModelNode... extraSteps)
Save the edited form.
|
execute, findEntity, getEntityList, getNameOfLastEdited, loadEntities, newEntity, onAdd, onCancel, onEdit, onRemove, refreshView, sortEntitiespublic CacheEntityToDmrBridge(ApplicationMetaData propertyMetadata, Class<? extends T> type, FrameworkView view, DispatchAsync dispatcher)
public String getName(T entity)
EntityToDmrBridgegetName in interface EntityToDmrBridge<T extends LocalCache>getName in class EntityToDmrBridgeImpl<T extends LocalCache>entity - The entity.protected ModelNode getResourceAddress(String name)
getResourceAddress in class EntityToDmrBridgeImpl<T extends LocalCache>public void loadEntities(String nameEditedOrAdded)
EntityToDmrBridgeloadEntities in interface EntityToDmrBridge<T extends LocalCache>loadEntities in class EntityToDmrBridgeImpl<T extends LocalCache>protected void onLoadEntitiesSuccess(ModelNode response)
onLoadEntitiesSuccess in class EntityToDmrBridgeImpl<T extends LocalCache>public void onSaveDetails(T entity, Map<String,Object> changedValues, ModelNode... extraSteps)
EntityToDmrBridgeonSaveDetails in interface EntityToDmrBridge<T extends LocalCache>onSaveDetails in class EntityToDmrBridgeImpl<T extends LocalCache>entity - the edited entity.changedValues - the changed valuesextraSteps - Extra "step" operations to be added when saving.Copyright © 2014 JBoss, a division of Red Hat. All rights reserved.