@JsType public class CrudOperations extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CrudOperations.AddCallback
Callback used in
add methods |
static interface |
CrudOperations.AddSingletonCallback
Callback used in
addSingleton methods |
static interface |
CrudOperations.JsReadChildrenCallback |
static interface |
CrudOperations.ReadCallback |
static interface |
CrudOperations.ReadChildrenCallback |
static interface |
CrudOperations.ReadCompositeCallback |
| Constructor and Description |
|---|
CrudOperations(com.google.web.bindery.event.shared.EventBus eventBus,
Dispatcher dispatcher,
MetadataProcessor metadataProcessor,
javax.inject.Provider<Progress> progress,
StatementContext statementContext,
Resources resources) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String name,
AddressTemplate template,
ModelNode payload,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
CrudOperations.AddCallback callback)
Executes an add operation using the specified name and payload.
|
void |
add(String name,
ResourceAddress address,
ModelNode payload,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
CrudOperations.AddCallback callback)
Executes an add operation using the specified name and payload.
|
void |
add(String id,
String type,
AddressTemplate template,
CrudOperations.AddCallback callback)
Opens an add-resource-dialog for the given resource type.
|
void |
add(String id,
String type,
AddressTemplate template,
Iterable<String> attributes,
CrudOperations.AddCallback callback)
Opens an add-resource-dialog for the given resource type.
|
void |
add(String type,
String name,
AddressTemplate template,
ModelNode payload,
CrudOperations.AddCallback callback)
Executes an add operation using the specified name and payload.
|
void |
add(String type,
String name,
ResourceAddress address,
ModelNode payload,
CrudOperations.AddCallback callback)
Executes an add operation using the specified name and payload.
|
void |
addSingleton(String type,
AddressTemplate template,
CrudOperations.AddSingletonCallback callback)
Executes an add operation using the specified template.
|
void |
addSingleton(String type,
AddressTemplate template,
ModelNode payload,
CrudOperations.AddSingletonCallback callback)
Executes an add operation using the specified template and payload.
|
void |
addSingleton(String type,
Operation operation,
CrudOperations.AddSingletonCallback callback)
Executes the specified add operation.
|
void |
addSingleton(String type,
ResourceAddress address,
ModelNode payload,
CrudOperations.AddSingletonCallback callback)
Executes an add operation using the specified address and payload.
|
void |
addSingleton(String id,
String type,
AddressTemplate template,
CrudOperations.AddSingletonCallback callback)
Opens an add-resource-dialog for the given singleton resource type.
|
void |
addSingleton(String id,
String type,
AddressTemplate template,
Iterable<String> attributes,
CrudOperations.AddSingletonCallback callback)
Opens an add-resource-dialog for the given singleton resource type.
|
void |
addSingleton(String id,
String type,
Metadata metadata,
AddressTemplate template,
CrudOperations.AddSingletonCallback callback)
Opens an add-resource-dialog for the given singleton resource type.
|
void |
jsAdd(String type,
String name,
Object address,
ModelNode payload,
CrudOperations.AddCallback callback)
Executes an add operation using the specified name and payload.
|
void |
jsAddDialog(String type,
Object address,
String[] attributes,
CrudOperations.AddCallback callback)
Opens an add-resource dialog for the given resource type.
|
void |
jsAddSingleton(String type,
Object address,
ModelNode payload,
CrudOperations.AddSingletonCallback callback)
Executes an add operation using the specified payload.
|
void |
jsAddSingletonDialog(String type,
Object address,
String[] attributes,
CrudOperations.AddSingletonCallback callback)
Opens an add-resource dialog for the given singleton resource type.
|
void |
jsRead(Object address,
CrudOperations.ReadCallback callback)
Executes a read-resource operation on the specified address and passes the result to the callback.
|
void |
jsReadChildren(Object address,
String childType,
CrudOperations.JsReadChildrenCallback callback)
Executes a read-children-resources operation on the specified address and passes the result as
Property
array to the callback. |
void |
jsReadRecursive(Object address,
CrudOperations.ReadCallback callback)
Executes a recursive read-resource operation on the specified address and passes the result to the callback.
|
void |
jsRemove(String type,
String name,
Object address,
JsCallback callback)
Shows a confirmation dialog and removes the resource if confirmed by the user.
|
void |
jsRemoveSingleton(String type,
Object address,
JsCallback callback)
Shows a confirmation dialog and removes the singleton resource if confirmed by the user.
|
void |
jsSave(String type,
String name,
Object address,
jsinterop.base.JsPropertyMap<Object> changeSet,
JsCallback callback)
Writes the changed values to the specified resource.
|
void |
jsSaveSingleton(String type,
Object address,
jsinterop.base.JsPropertyMap<Object> changeSet,
JsCallback callback)
Writes the changed values to the specified singleton resource.
|
void |
read(AddressTemplate template,
CrudOperations.ReadCallback callback)
Executes an
ModelDescriptionConstants.READ_RESOURCE_OPERATION on the specified
template and passes the result to the specified callback. |
void |
read(AddressTemplate template,
int depth,
CrudOperations.ReadCallback callback)
Executes an
ModelDescriptionConstants.READ_RESOURCE_OPERATION with the specified depth
on the specified template and passes the result to the specified callback. |
void |
read(ResourceAddress address,
CrudOperations.ReadCallback callback)
Executes an
ModelDescriptionConstants.READ_RESOURCE_OPERATION on the specified
address and passes the result to the specified callback. |
void |
read(ResourceAddress address,
int depth,
CrudOperations.ReadCallback callback)
Executes an
ModelDescriptionConstants.READ_RESOURCE_OPERATION with the specified depth
on the specified address and passes the result to the specified callback. |
rx.Single<List<Property>> |
readChildren(AddressTemplate template,
String childType)
Executes an
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified template and returns the result as Single<List<Property>>. |
void |
readChildren(AddressTemplate template,
String childType,
CrudOperations.ReadChildrenCallback callback)
Executes an
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified template and passes the result as List<Property> to the specified callback. |
void |
readChildren(AddressTemplate template,
String childType,
int depth,
CrudOperations.ReadChildrenCallback callback)
Executes an
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified template and passes the result as List<Property> to the specified callback. |
void |
readChildren(ResourceAddress address,
Iterable<String> resources,
CrudOperations.ReadCompositeCallback callback)
Read multiple different child resources using a composite operation.
|
void |
readChildren(ResourceAddress address,
Iterable<String> resources,
int depth,
CrudOperations.ReadCompositeCallback callback)
Read multiple different child resources using a composite operation.
|
rx.Single<List<Property>> |
readChildren(ResourceAddress address,
String resource)
Executes an
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified address and returns the result as Single<List<Property>>. |
void |
readChildren(ResourceAddress address,
String resource,
CrudOperations.ReadChildrenCallback callback)
Executes an
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified address and passes the result as List<Property> to the specified callback. |
void |
readChildren(ResourceAddress address,
String resource,
int depth,
CrudOperations.ReadChildrenCallback callback)
Executes an
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified address and passes the result as List<Property> to the specified callback. |
void |
readRecursive(AddressTemplate template,
CrudOperations.ReadCallback callback)
Executes a recursive
ModelDescriptionConstants.READ_RESOURCE_OPERATION on the
specified template and passes the result to the specified callback. |
void |
readRecursive(ResourceAddress address,
CrudOperations.ReadCallback callback)
Executes a recursive
ModelDescriptionConstants.READ_RESOURCE_OPERATION on the
specified address and passes the result to the specified callback. |
void |
remove(String type,
String name,
AddressTemplate template,
Callback callback)
Shows a confirmation dialog and removes the resource if confirmed by the user.
|
void |
remove(String type,
String name,
ResourceAddress address,
Callback callback)
Shows a confirmation dialog and removes the resource if confirmed by the user.
|
void |
removeSingleton(String type,
AddressTemplate template,
Callback callback)
Shows a confirmation dialog and removes the singleton resource if confirmed by the user.
|
void |
removeSingleton(String type,
ResourceAddress address,
Callback callback)
Shows a confirmation dialog and removes the singleton resource if confirmed by the user.
|
<T> void |
reset(String type,
String name,
AddressTemplate template,
Form<T> form,
Metadata metadata,
Callback callback)
Undefines all non required attributes in the specified form.
|
<T> void |
reset(String type,
String name,
AddressTemplate template,
Form<T> form,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Undefines all non required attributes in the specified form.
|
void |
reset(String type,
String name,
AddressTemplate template,
Set<String> attributes,
Metadata metadata,
Callback callback)
Undefines all non required attributes in the specified set.
|
void |
reset(String type,
String name,
AddressTemplate template,
Set<String> attributes,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Undefines all non required attributes in the specified set.
|
<T> void |
reset(String type,
String name,
ResourceAddress address,
Form<T> form,
Metadata metadata,
Callback callback)
Undefines all non required attributes in the specified form.
|
<T> void |
reset(String type,
String name,
ResourceAddress address,
Form<T> form,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Undefines all non required attributes in the specified form.
|
void |
reset(String type,
String name,
ResourceAddress address,
Set<String> attributes,
Metadata metadata,
Callback callback)
Undefines all non required attributes in the specified set.
|
void |
reset(String type,
String name,
ResourceAddress address,
Set<String> attributes,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Undefines all non required attributes in the specified set.
|
<T> void |
resetSingleton(String type,
AddressTemplate template,
Form<T> form,
Metadata metadata,
Callback callback)
Undefines all non required attributes in the specified form.
|
<T> void |
resetSingleton(String type,
AddressTemplate template,
Form<T> form,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Undefines all non required attributes in the specified form.
|
void |
resetSingleton(String type,
AddressTemplate template,
Set<String> attributes,
Metadata metadata,
Callback callback)
Undefines all non required attributes in the specified set.
|
void |
resetSingleton(String type,
AddressTemplate template,
Set<String> attributes,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Undefines all non required attributes in the specified set.
|
<T> void |
resetSingleton(String type,
ResourceAddress address,
Form<T> form,
Metadata metadata,
Callback callback)
Undefines all non required attributes in the specified form.
|
<T> void |
resetSingleton(String type,
ResourceAddress address,
Form<T> form,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Undefines all non required attributes in the specified form.
|
void |
resetSingleton(String type,
ResourceAddress address,
Set<String> attributes,
Metadata metadata,
Callback callback)
Undefines all non required attributes in the specified set.
|
void |
resetSingleton(String type,
ResourceAddress address,
Set<String> attributes,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Undefines all non required attributes in the specified set.
|
void |
save(Composite operations,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Writes the changed values to the specified resource.
|
void |
save(ResourceAddress address,
Map<String,Object> changedValues,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Writes the changed values to the specified resource.
|
void |
save(String name,
AddressTemplate template,
Map<String,Object> changedValues,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Writes the changed values to the specified resource.
|
void |
save(String type,
String name,
AddressTemplate template,
Map<String,Object> changedValues,
Callback callback)
Writes the changed values to the specified resource.
|
void |
save(String type,
String name,
Composite operations,
Callback callback)
Writes the changed values to the specified resource.
|
void |
save(String type,
String name,
ResourceAddress address,
Map<String,Object> changedValues,
Metadata metadata,
Callback callback)
Writes the changed values to the specified resource.
|
void |
saveSingleton(AddressTemplate template,
Map<String,Object> changedValues,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Writes the changed values to the specified singleton resource.
|
void |
saveSingleton(ResourceAddress address,
Map<String,Object> changedValues,
Metadata metadata,
com.google.gwt.safehtml.shared.SafeHtml successMessage,
Callback callback)
Writes the changed values to the specified singleton resource.
|
void |
saveSingleton(String type,
AddressTemplate template,
Map<String,Object> changedValues,
Callback callback)
Writes the changed values to the specified singleton resource.
|
void |
saveSingleton(String type,
ResourceAddress address,
Map<String,Object> changedValues,
Metadata metadata,
Callback callback)
Writes the changed values to the specified singleton resource.
|
@Inject
@JsIgnore
public CrudOperations(com.google.web.bindery.event.shared.EventBus eventBus,
Dispatcher dispatcher,
MetadataProcessor metadataProcessor,
@Footer
javax.inject.Provider<Progress> progress,
StatementContext statementContext,
Resources resources)
@JsIgnore public void add(String id, String type, AddressTemplate template, CrudOperations.AddCallback callback)
id - the id used for the add resource dialogtype - the human readable resource type used in the dialog header and success messagetemplate - the address template which is resolved against the current statement context to get the resource
address for the add operationcallback - the callback executed after the resource has been added@JsIgnore public void add(String id, String type, AddressTemplate template, Iterable<String> attributes, CrudOperations.AddCallback callback)
attributes. When clicking "Add", a new resource is added using the
specified address template. After the resource has been added a success message is fired and the specified
callback is executed.id - the id used for the add resource dialogtype - the human readable resource type used in the dialog header and success messagetemplate - the address template which is resolved against the current statement context to get the
resource address for the add operationattributes - additional attributes which should be part of the add resource dialogcallback - the callback executed after the resource has been added@JsIgnore public void add(String type, String name, AddressTemplate template, @Nullable ModelNode payload, CrudOperations.AddCallback callback)
type - the human readable resource type used in the dialog header and success messagename - the resource name which is part of the add operationtemplate - the address template which is resolved against the current statement context and the resource
name to get the resource address for the add operationpayload - the optional payload of the add operation (may be null or undefined)callback - the callback executed after the resource has been added@JsIgnore public void add(String name, AddressTemplate template, @Nullable ModelNode payload, com.google.gwt.safehtml.shared.SafeHtml successMessage, CrudOperations.AddCallback callback)
name - the resource name which is part of the add operationtemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the add operationpayload - the optional payload of the add operation (may be null or undefined)successMessage - the success message fired after adding the resourcecallback - the callback executed after the resource has been added@JsIgnore public void add(String type, String name, ResourceAddress address, @Nullable ModelNode payload, CrudOperations.AddCallback callback)
type - the human readable resource type used in the dialog header and success messagename - the resource name which is part of the add operationaddress - the fq address for the add operationpayload - the optional payload of the add operation (may be null or undefined)callback - the callback executed after the resource has been added@JsIgnore public void add(String name, ResourceAddress address, @Nullable ModelNode payload, com.google.gwt.safehtml.shared.SafeHtml successMessage, CrudOperations.AddCallback callback)
name - the resource name which is part of the add operationaddress - the fq address for the add operationpayload - the optional payload of the add operation (may be null or undefined)successMessage - the success message fired after adding the resourcecallback - the callback executed after the resource has been added@JsIgnore public void addSingleton(String id, String type, AddressTemplate template, CrudOperations.AddSingletonCallback callback)
id - the id used for the add resource dialogtype - the human readable resource type used in the dialog header and success messagetemplate - the address template which is resolved against the current statement context to get the
singleton resource address for the add operationcallback - the callback executed after the singleton resource has been added@JsIgnore public void addSingleton(String id, String type, AddressTemplate template, Iterable<String> attributes, CrudOperations.AddSingletonCallback callback)
attributes. When clicking "Add", a new singleton resource
is added using the specified address template. After the singleton resource has been added a success message is
fired and the specified callback is executed.id - the id used for the add resource dialogtype - the human readable resource type used in the dialog header and success messagetemplate - the address template which is resolved against the current statement context to get the
singleton resource address for the add operationattributes - additional attributes which should be part of the add resource dialogcallback - the callback executed after the singleton resource has been added@JsIgnore public void addSingleton(String id, String type, Metadata metadata, AddressTemplate template, CrudOperations.AddSingletonCallback callback)
attributes. When clicking "Add", a new singleton resource
is added using the specified address template. After the singleton resource has been added a success message is
fired and the specified callback is executed.id - the id used for the add resource dialogtype - the human readable resource type used in the dialog header and success messagemetadata - the metadata that contains the resource descriptioncallback - the callback executed after the singleton resource has been added@JsIgnore public void addSingleton(String type, AddressTemplate template, CrudOperations.AddSingletonCallback callback)
type - the human readable resource type used in the dialog header and success messagetemplate - the address template which is resolved against the current statement context to get the
singleton resource address for the add operationcallback - the callback executed after the singleton resource has been added@JsIgnore public void addSingleton(String type, AddressTemplate template, @Nullable ModelNode payload, CrudOperations.AddSingletonCallback callback)
type - the human readable resource type used in the dialog header and success messagetemplate - the address template which is resolved against the current statement context to get the
singleton resource address for the add operationpayload - the optional payload of the add operation (may be null or undefined)callback - the callback executed after the singleton resource has been added@JsIgnore public void addSingleton(String type, ResourceAddress address, @Nullable ModelNode payload, CrudOperations.AddSingletonCallback callback)
type - the human readable resource type used in the dialog header and success messageaddress - the fq address for the add operationpayload - the optional payload of the add operation (may be null or undefined)callback - the callback executed after the singleton resource has been added@JsIgnore public void addSingleton(String type, Operation operation, CrudOperations.AddSingletonCallback callback)
operation - the add operation with the address and payloadtype - the human readable resource type used in the dialog header and success messagecallback - the callback executed after the singleton resource has been added@JsIgnore public void read(AddressTemplate template, CrudOperations.ReadCallback callback)
ModelDescriptionConstants.READ_RESOURCE_OPERATION on the specified
template and passes the result to the specified callback.template - the address template which is resolved against the current statement context to get the
resource address for the read-resource operationcallback - the callback which gets the result of the read-resource operation@JsIgnore public void read(AddressTemplate template, int depth, CrudOperations.ReadCallback callback)
ModelDescriptionConstants.READ_RESOURCE_OPERATION with the specified depth
on the specified template and passes the result to the specified callback.template - the address template which is resolved against the current statement context to get the
resource address for the read-resource operationdepth - the depth used for the recursive-depth parametercallback - the callback which gets the result of the read-resource operation@JsIgnore public void readRecursive(AddressTemplate template, CrudOperations.ReadCallback callback)
ModelDescriptionConstants.READ_RESOURCE_OPERATION on the
specified template and passes the result to the specified callback.template - the address template which is resolved against the current statement context to get the
resource address for the read-resource operationcallback - the callback which gets the result of the read-resource operation@JsIgnore public void readChildren(AddressTemplate template, String childType, CrudOperations.ReadChildrenCallback callback)
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified template and passes the result as List<Property> to the specified callback.template - the address template which is resolved against the current statement context to get the
resource address for the read-children-resource operationchildType - the child resource (not human readable, but the actual child resource name!)callback - the callback which gets the result of the read-children-resource operation as List<Property>@JsIgnore public void readChildren(AddressTemplate template, String childType, int depth, CrudOperations.ReadChildrenCallback callback)
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified template and passes the result as List<Property> to the specified callback.template - the address template which is resolved against the current statement context to get the
resource address for the read-children-resource operationchildType - the child resource (not human readable, but the actual child resource name!)depth - the depth used for the recursive-depth parametercallback - the callback which gets the result of the read-children-resource operation as List<Property>@JsIgnore public void read(ResourceAddress address, CrudOperations.ReadCallback callback)
ModelDescriptionConstants.READ_RESOURCE_OPERATION on the specified
address and passes the result to the specified callback.address - the fq address for the read-resource operationcallback - the callback which gets the result of the read-resource operation@JsIgnore public void read(ResourceAddress address, int depth, CrudOperations.ReadCallback callback)
ModelDescriptionConstants.READ_RESOURCE_OPERATION with the specified depth
on the specified address and passes the result to the specified callback.address - the fq address for the read-resource operationdepth - the depth used for the recursive-depth parametercallback - the callback which gets the result of the read-resource operation@JsIgnore public void readRecursive(ResourceAddress address, CrudOperations.ReadCallback callback)
ModelDescriptionConstants.READ_RESOURCE_OPERATION on the
specified address and passes the result to the specified callback.address - the fq address for the read-resource operationcallback - the callback which gets the result of the read-resource operation@JsIgnore public void readChildren(ResourceAddress address, String resource, CrudOperations.ReadChildrenCallback callback)
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified address and passes the result as List<Property> to the specified callback.address - the fq address for the read-children-resource operationresource - the child resource (not human readable, but the actual child resource name!)callback - the callback which gets the result of the read-children-resource operation as List<Property>@JsIgnore public void readChildren(ResourceAddress address, String resource, int depth, CrudOperations.ReadChildrenCallback callback)
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified address and passes the result as List<Property> to the specified callback.address - the fq address for the read-children-resource operationresource - the child resource (not human readable, but the actual child resource name!)depth - the depth used for the recursive-depth parametercallback - the callback which gets the result of the read-children-resource operation as List<Property>@JsIgnore public void readChildren(ResourceAddress address, Iterable<String> resources, CrudOperations.ReadCompositeCallback callback)
resources collection.address - the fq address for the read-children-resource operationresources - the child resources (not human readable, but the actual child resource name!)callback - the callback which gets the composite result@JsIgnore public void readChildren(ResourceAddress address, Iterable<String> resources, int depth, CrudOperations.ReadCompositeCallback callback)
resources collection.address - the fq address for the read-children-resource operationresources - the child resources (not human readable, but the actual child resource name!)depth - the depth used for the recursive-depth parametercallback - the callback which gets the composite result@JsIgnore public rx.Single<List<Property>> readChildren(AddressTemplate template, String childType)
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified template and returns the result as Single<List<Property>>.template - the address template which is resolved against the current statement context to get the
resource address for the read-children-resource operationchildType - the child resource (not human readable, but the actual child resource name!)@JsIgnore public rx.Single<List<Property>> readChildren(ResourceAddress address, String resource)
ModelDescriptionConstants.READ_CHILDREN_RESOURCES_OPERATION on the
specified address and returns the result as Single<List<Property>>.address - the fq address for the read-children-resource operationresource - the child resource (not human readable, but the actual child resource name!)@JsIgnore public void save(String type, String name, AddressTemplate template, Map<String,Object> changedValues, Callback callback)
If the change set is empty, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nametemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationchangedValues - the changed values / payload for the operationcallback - the callback executed after the resource has been saved@JsIgnore public void save(String name, AddressTemplate template, Map<String,Object> changedValues, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the change set is empty, a warning message is fired and the specified callback is executed.
name - the resource nametemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationchangedValues - the changed values / payload for the operationsuccessMessage - the success message fired after saving the resourcecallback - the callback executed after the resource has been saved@JsIgnore public void save(String type, String name, ResourceAddress address, Map<String,Object> changedValues, Metadata metadata, Callback callback)
If the change set is empty, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nameaddress - the fq address for the operationchangedValues - the changed values / payload for the operationmetadata - the metadata of the attributes in the change setcallback - the callback executed after the resource has been saved@JsIgnore public void save(ResourceAddress address, Map<String,Object> changedValues, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the change set is empty, a warning message is fired and the specified callback is executed.
address - the fq address for the operationchangedValues - the changed values / payload for the operationmetadata - the metadata of the attributes in the change setsuccessMessage - the success message fired after saving the resourcecallback - the callback executed after the resource has been saved@JsIgnore public void save(String type, String name, Composite operations, Callback callback)
If the composite operation is empty (i.e. there were no changes), a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nameoperations - the composite operation to persist the changed valuescallback - the callback executed after the resource has been saved@JsIgnore public void save(Composite operations, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the composite operation is empty (i.e. there were no changes), a warning message is fired and the specified callback is executed.
operations - the composite operation to persist the changed valuessuccessMessage - the success message fired after saving the resourcecallback - the callback executed after the resource has been saved@JsIgnore public void saveSingleton(String type, AddressTemplate template, Map<String,Object> changedValues, Callback callback)
type - the human readable resource type used in the success messagetemplate - the address template which is resolved against the current statement context to get the
resource address for the operationchangedValues - the changed values / payload for the operationcallback - the callback executed after the resource has been saved@JsIgnore public void saveSingleton(AddressTemplate template, Map<String,Object> changedValues, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
template - the address template which is resolved against the current statement context to get the
resource address for the operationchangedValues - the changed values / payload for the operationsuccessMessage - the success message fired after saving the resourcecallback - the callback executed after the resource has been saved@JsIgnore public void saveSingleton(String type, ResourceAddress address, Map<String,Object> changedValues, Metadata metadata, Callback callback)
type - the human readable resource type used in the success messageaddress - the fq address for the operationchangedValues - the changed values / payload for the operationmetadata - the metadata of the attributes in the change setcallback - the callback executed after the resource has been saved@JsIgnore public void saveSingleton(ResourceAddress address, Map<String,Object> changedValues, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
address - the fq address for the operationchangedValues - the changed values / payload for the operationmetadata - the metadata of the attributes in the change setsuccessMessage - the success message fired after saving the resourcecallback - the callback executed after the resource has been saved@JsIgnore public <T> void reset(String type, String name, AddressTemplate template, Form<T> form, Metadata metadata, Callback callback)
If the form contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nametemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationform - the form which should be resetmetadata - the metadata of the attributescallback - the callback executed after the resource has been undefined@JsIgnore public <T> void reset(String type, String name, AddressTemplate template, Form<T> form, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the form contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nametemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationform - the form which should be resetmetadata - the metadata of the attributessuccessMessage - the success message fired after resetting the resourcecallback - the callback executed after the resource has been undefined@JsIgnore public void reset(String type, String name, AddressTemplate template, Set<String> attributes, Metadata metadata, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nametemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationattributes - the attributes which should be resetmetadata - the metadata of the attributescallback - the callback executed after the resource has been undefined@JsIgnore public void reset(String type, String name, AddressTemplate template, Set<String> attributes, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nametemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationattributes - the attributes which should be resetmetadata - the metadata of the attributessuccessMessage - the success message fired after resetting the resourcecallback - the callback executed after the resource has been undefined@JsIgnore public <T> void reset(String type, String name, ResourceAddress address, Form<T> form, Metadata metadata, Callback callback)
If the form contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nameaddress - the fq address for the operationform - the form which should be resetmetadata - the metadata of the attributescallback - the callback executed after the resource has been undefined@JsIgnore public <T> void reset(String type, String name, ResourceAddress address, Form<T> form, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the form contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nameaddress - the fq address for the operationform - the from which should be resetmetadata - the metadata of the attributessuccessMessage - the success message fired after resetting the resourcecallback - the callback executed after the resource has been undefined@JsIgnore public void reset(String type, String name, ResourceAddress address, Set<String> attributes, Metadata metadata, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nameaddress - the fq address for the operationattributes - the attributes which should be resetmetadata - the metadata of the attributescallback - the callback executed after the resource has been undefined@JsIgnore public void reset(String type, String name, ResourceAddress address, Set<String> attributes, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagename - the resource nameaddress - the fq address for the operationattributes - the attributes which should be resetmetadata - the metadata of the attributessuccessMessage - the success message fired after resetting the resourcecallback - the callback executed after the resource has been undefined@JsIgnore public <T> void resetSingleton(String type, AddressTemplate template, Form<T> form, Metadata metadata, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationform - the form which should be resetmetadata - the metadata of the attributescallback - the callback executed after the resource has been undefined@JsIgnore public <T> void resetSingleton(String type, AddressTemplate template, Form<T> form, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationform - the form which should be resetmetadata - the metadata of the attributessuccessMessage - the success message fired after resetting the resourcecallback - the callback executed after the resource has been undefined@JsIgnore public void resetSingleton(String type, AddressTemplate template, Set<String> attributes, Metadata metadata, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationattributes - the attributes which should be resetmetadata - the metadata of the attributescallback - the callback executed after the resource has been undefined@JsIgnore public void resetSingleton(String type, AddressTemplate template, Set<String> attributes, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messagetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationattributes - the attributes which should be resetmetadata - the metadata of the attributessuccessMessage - the success message fired after resetting the resourcecallback - the callback executed after the resource has been undefined@JsIgnore public <T> void resetSingleton(String type, ResourceAddress address, Form<T> form, Metadata metadata, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messageaddress - the fq address for the operationform - the form which should be resetmetadata - the metadata of the attributescallback - the callback executed after the resource has been undefined@JsIgnore public <T> void resetSingleton(String type, ResourceAddress address, Form<T> form, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messageaddress - the fq address for the operationform - the form which should be resetmetadata - the metadata of the attributessuccessMessage - the success message fired after resetting the resourcecallback - the callback executed after the resource has been undefined@JsIgnore public void resetSingleton(String type, ResourceAddress address, Set<String> attributes, Metadata metadata, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messageaddress - the fq address for the operationattributes - the attributes which should be resetmetadata - the metadata of the attributescallback - the callback executed after the resource has been undefined@JsIgnore public void resetSingleton(String type, ResourceAddress address, Set<String> attributes, Metadata metadata, com.google.gwt.safehtml.shared.SafeHtml successMessage, Callback callback)
If the set contains only required attributes, a warning message is fired and the specified callback is executed.
type - the human readable resource type used in the success messageaddress - the fq address for the operationattributes - the attributes which should be resetmetadata - the metadata of the attributessuccessMessage - the success message fired after resetting the resourcecallback - the callback executed after the resource has been undefined@JsIgnore public void remove(String type, String name, AddressTemplate template, Callback callback)
type - the human readable resource type used in the success messagename - the resource nametemplate - the address template which is resolved against the current statement context and the resource
name to get the resource address for the remove operationcallback - the callback executed after the resource has been removed@JsIgnore public void removeSingleton(String type, AddressTemplate template, Callback callback)
type - the human readable resource type used in the success messagetemplate - the address template which is resolved against the current statement context to get the resource
address for the remove operationcallback - the callback executed after the resource has been removed@JsIgnore public void remove(String type, String name, ResourceAddress address, Callback callback)
type - the human readable resource type used in the success messagename - the resource nameaddress - the fq address for the remove operationcallback - the callback executed after the resource has been removed@JsIgnore public void removeSingleton(String type, ResourceAddress address, Callback callback)
type - the human readable resource type used in the success messageaddress - the fq address for the remove operationcallback - the callback executed after the resource has been removed@JsMethod(name="addDialog") public void jsAddDialog(String type, Object address, String[] attributes, CrudOperations.AddCallback callback)
type - The human readable resource type used in the dialog header and success message.address - The address for the add operation. Must end in <resource type>=*.attributes - Additional attributes (besides the required attributes) which should be part of the
add-resource dialog. May be null or empty.callback - The callback executed after the resource has been added.@JsMethod(name="add") public void jsAdd(String type, String name, Object address, ModelNode payload, CrudOperations.AddCallback callback)
type - The human readable resource type used in the dialog header and success message.name - The resource name which is part of the add operation.address - The address for the add operation. Must end in <resource type>=*.payload - The optional payload of the add operation (may be null or undefined).callback - The callback executed after the resource has been added.@JsMethod(name="addSingletonDialog") public void jsAddSingletonDialog(String type, Object address, String[] attributes, CrudOperations.AddSingletonCallback callback)
type - The human readable resource type used in the dialog header and success message.address - The address for the add operation. Must end in <resource type>=<resource
name>.attributes - Additional attributes (besides the required attributes) which should be part of the
add-resource dialog. May be null or empty.callback - The callback executed after the singleton resource has been added.@JsMethod(name="addSingleton") public void jsAddSingleton(String type, Object address, ModelNode payload, CrudOperations.AddSingletonCallback callback)
type - The human readable resource type used in the dialog header and success message.address - The address for the add operation. Must end in <resource type>=<resource
name>.payload - The optional payload of the add operation (may be null or undefined).callback - The callback executed after the singleton resource has been added.@JsMethod(name="read") public void jsRead(Object address, CrudOperations.ReadCallback callback)
address - The address for the read-resource operation operation.callback - The callback which gets the result of the read-resource operation.@JsMethod(name="readRecursive") public void jsReadRecursive(Object address, CrudOperations.ReadCallback callback)
address - The address for the read-resource operation operation.callback - The callback which gets the result of the read-resource operation.@JsMethod(name="readChildren") public void jsReadChildren(Object address, String childType, CrudOperations.JsReadChildrenCallback callback)
Property
array to the callback.address - The address for the read-children-resources operation.childType - The child resource type.callback - The callback which gets the result of the read-children-resources operation.@JsMethod(name="save") public void jsSave(String type, String name, Object address, jsinterop.base.JsPropertyMap<Object> changeSet, JsCallback callback)
type - The human readable resource type used in the success message.name - The resource name.address - The address for the operation.changeSet - A key-value map containing the changes to the resource.callback - The callback executed after the resource has been saved.@JsMethod(name="saveSingleton") public void jsSaveSingleton(String type, Object address, jsinterop.base.JsPropertyMap<Object> changeSet, JsCallback callback)
type - The human readable resource type used in the success message.address - The address for the operation.changeSet - A key-value map containing the changes to the resource.callback - The callback executed after the singleton resource has been saved.@JsMethod(name="remove") public void jsRemove(String type, String name, Object address, JsCallback callback)
type - The human readable resource type used in the success message.name - The resource name.address - The address for the operation.callback - The callback executed after the resource has been removed.@JsMethod(name="removeSingleton") public void jsRemoveSingleton(String type, Object address, JsCallback callback)
type - The human readable resource type used in the success message.address - The address for the operation.callback - The callback executed after the resource has been removed.Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.