use of org.jboss.hal.dmr.Composite in project console by hal.
the class ComplexAttributeOperations method save.
// ------------------------------------------------------ (u)pdate using address
/**
* Writes the changed values to the complex attribute. After the complex attribute has been saved a standard success message
* is fired and the specified callback is executed.
* <p>
* If the change set is empty, a warning message is fired and the specified callback is executed.
*
* @param complexAttribute the name of the complex attribute
* @param type the human readable name of the complex attribute
* @param address the fq address for the operation
* @param changedValues the changed values / payload for the operation
* @param metadata the metadata for the complex attribute
* @param callback the callback executed after the resource has been saved
*/
@JsIgnore
public void save(String complexAttribute, String type, ResourceAddress address, Map<String, Object> changedValues, Metadata metadata, Callback callback) {
Composite operations = operationFactory(complexAttribute).fromChangeSet(address, changedValues, metadata);
crud.save(operations, resources.messages().modifySingleResourceSuccess(type), callback);
}
Aggregations