public interface ModelHelper
| Modifier and Type | Method and Description |
|---|---|
boolean |
isWritable(ItemModel model,
java.lang.String attribute,
boolean creationMode)
Checks write permissions for the given item and attribute.
|
void |
removeModel(ItemModel model,
boolean createUndoOperation)
Removes the given model and creates a change log entry.
|
void |
removeModel(ItemModel model,
boolean createUndoOperation,
boolean sendChangeEvents)
Removes the given model and creates a change log entry.
|
void |
saveModel(ItemModel model,
boolean createUndoOperation)
Saves the given model and creates a change log entry.
|
void |
saveModel(ItemModel model,
boolean createUndoOperation,
boolean sendChangeEvents)
Saves the given model and creates a change log entry.
|
void |
saveModels(java.util.Set<ItemModel> models,
boolean createUndoOperation)
Saves given models and creates change log entry for each modification.
|
void |
saveModels(java.util.Set<ItemModel> models,
boolean createUndoOperation,
boolean sendChangeEvents)
Saves given models and creates change log entry for each modification.
|
void saveModel(ItemModel model, boolean createUndoOperation) throws ValueHandlerException
model - the model to savecreateUndoOperation - undo operation will be created if set to trueValueHandlerException - when problem occurs, e.g. user rights check failsvoid saveModel(ItemModel model, boolean createUndoOperation, boolean sendChangeEvents) throws ValueHandlerException
model - the model to savecreateUndoOperation - undo operation will be created if set to trueValueHandlerException - when problem occurs, e.g. user rights check failsvoid saveModels(java.util.Set<ItemModel> models, boolean createUndoOperation) throws ValueHandlerException
models - models to savecreateUndoOperation - undo operation will be created if set to trueValueHandlerException - when problem occurs, e.g. user rights check failsvoid saveModels(java.util.Set<ItemModel> models, boolean createUndoOperation, boolean sendChangeEvents) throws ValueHandlerException
models - models to savecreateUndoOperation - undo operation will be created if set to truesendChangeEvents - if true, item change events will be sentValueHandlerException - when problem occurs, e.g. user rights check failsvoid removeModel(ItemModel model, boolean createUndoOperation) throws ValueHandlerException
model - the model to removecreateUndoOperation - undo operation will be created if set to trueValueHandlerException - when problem occurs, e.g. user rights check failsvoid removeModel(ItemModel model, boolean createUndoOperation, boolean sendChangeEvents) throws ValueHandlerException
model - the model to removecreateUndoOperation - undo operation will be created if set to truesendChangeEvents - if true, item change events will be sentValueHandlerException - when problem occurs, e.g. user rights check failsboolean isWritable(ItemModel model, java.lang.String attribute, boolean creationMode)
model - the item to check permission forattribute - the attribute to check permission forcreationMode - creation modeCopyright © 2018 SAP SE. All Rights Reserved.