public class ComplexAttributeOperations extends Object
CrudOperations.| Constructor and Description |
|---|
ComplexAttributeOperations(CrudOperations crud,
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 complexAttribute,
String type,
ResourceAddress address,
ModelNode payload,
Callback callback)
Writes the payload to the complex attribute in the specified resource.
|
void |
add(String resource,
String complexAttribute,
String type,
AddressTemplate template,
ModelNode payload,
Callback callback)
Writes the payload to the complex attribute in the specified resource.
|
void |
add(String id,
String resource,
String complexAttribute,
String type,
AddressTemplate template,
Callback callback)
Opens an add-resource-dialog for the given complex attribute.
|
void |
add(String id,
String resource,
String complexAttribute,
String type,
AddressTemplate template,
Iterable<String> attributes,
Callback callback)
Opens an add-resource-dialog for the given complex attribute.
|
void |
listAdd(String resource,
String complexAttribute,
String type,
AddressTemplate template,
ModelNode payload,
Callback callback)
Adds the payload to the complex attribute in the specified resource.
|
void |
listAdd(String id,
String resource,
String complexAttribute,
String type,
AddressTemplate template,
Callback callback)
Opens an add-resource-dialog for the given complex attribute.
|
void |
listAdd(String id,
String resource,
String complexAttribute,
String type,
AddressTemplate template,
Iterable<String> attributes,
Callback callback)
Opens an add-resource-dialog for the given complex attribute.
|
void |
remove(String complexAttribute,
String type,
ResourceAddress address,
Callback callback)
Undefines the complex attribute.
|
void |
remove(String resource,
String complexAttribute,
String type,
AddressTemplate template,
Callback callback)
Undefines the complex attribute.
|
void |
remove(String resource,
String complexAttribute,
String type,
int index,
AddressTemplate template,
Callback callback)
Undefines the complex attribute at the specified index.
|
<T> void |
reset(String complexAttribute,
String type,
ResourceAddress address,
Metadata metadata,
Form<T> form,
Callback callback)
Undefines all non required attributes in the specified form.
|
<T> void |
reset(String resource,
String complexAttribute,
String type,
AddressTemplate template,
Form<T> form,
Callback callback)
Undefines all non required attributes in the specified form.
|
<T> void |
reset(String resource,
String complexAttribute,
String type,
AddressTemplate template,
Metadata metadata,
Form<T> form,
Callback callback)
Undefines all non required attributes in the specified form.
|
void |
save(String complexAttribute,
String type,
int index,
ResourceAddress address,
Map<String,Object> changedValues,
Metadata metadata,
Callback callback)
Writes the changed values to the list-type complex attribute.
|
void |
save(String complexAttribute,
String type,
ResourceAddress address,
Map<String,Object> changedValues,
Metadata metadata,
Callback callback)
Writes the changed values to the complex attribute.
|
void |
save(String resource,
String complexAttribute,
String type,
AddressTemplate template,
Map<String,Object> changedValues,
Callback callback)
Writes the changed values to the complex attribute.
|
void |
save(String resource,
String complexAttribute,
String type,
int index,
AddressTemplate template,
Map<String,Object> changedValues,
Callback callback)
Writes the changed values to the list-type complex attribute.
|
@Inject public ComplexAttributeOperations(CrudOperations crud, 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 resource, String complexAttribute, String type, AddressTemplate template, Callback callback)
id - the id used for the add resource dialogresource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationcallback - the callback executed after the resource has been added@JsIgnore public void add(String id, String resource, String complexAttribute, String type, AddressTemplate template, Iterable<String> attributes, Callback callback)
id - the id used for the add resource dialogresource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationattributes - additional attributes which should be part of the add resource dialogcallback - the callback executed after the resource has been added@JsIgnore public void listAdd(String id, String resource, String complexAttribute, String type, AddressTemplate template, Callback callback)
id - the id used for the add resource dialogresource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationcallback - the callback executed after the resource has been added@JsIgnore public void listAdd(String id, String resource, String complexAttribute, String type, AddressTemplate template, Iterable<String> attributes, Callback callback)
id - the id used for the add resource dialogresource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the 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 resource, String complexAttribute, String type, AddressTemplate template, @Nullable ModelNode payload, Callback callback)
resource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationpayload - the optional payload for the complex attribute (may be null or undefined)callback - the callback executed after the resource has been added@JsIgnore public void add(String complexAttribute, String type, ResourceAddress address, @Nullable ModelNode payload, Callback callback)
complexAttribute - the name of the complex attributetype - the human readable name of the complex attributeaddress - the fq address for the operationpayload - the optional payload for the complex attribute (may be null or undefined)callback - the callback executed after the resource has been added@JsIgnore public void listAdd(String resource, String complexAttribute, String type, AddressTemplate template, @Nullable ModelNode payload, Callback callback)
resource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationpayload - the optional payload for the complex attribute (may be null or undefined)callback - the callback executed after the resource has been added@JsIgnore public void save(String resource, String complexAttribute, String type, 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.
resource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - 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 resource, String complexAttribute, String type, int index, 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.
resource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributeindex - the index for the list-type complex attributetemplate - 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 complexAttribute, String type, 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.
complexAttribute - the name of the complex attributetype - the human readable name of the complex attributeaddress - the fq address for the operationchangedValues - the changed values / payload for the operationmetadata - the metadata for the complex attributecallback - the callback executed after the resource has been saved@JsIgnore public void save(String complexAttribute, String type, int index, 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.
complexAttribute - the name of the complex attributetype - the human readable name of the complex attributeindex - the index for the list-type complex attributeaddress - the fq address for the operationchangedValues - the changed values / payload for the operationmetadata - the metadata for the complex attributecallback - the callback executed after the resource has been saved@JsIgnore public <T> void reset(String resource, String complexAttribute, String type, AddressTemplate template, Form<T> form, Callback callback)
If the form contains only required attributes, a warning message is fired and the specified callback is executed.
resource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - 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 resetcallback - the callback executed after the resource has been saved@JsIgnore public <T> void reset(String resource, String complexAttribute, String type, AddressTemplate template, Metadata metadata, Form<T> form, Callback callback)
If the form contains only required attributes, a warning message is fired and the specified callback is executed.
resource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - 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 resetcallback - the callback executed after the resource has been saved@JsIgnore public <T> void reset(String complexAttribute, String type, ResourceAddress address, Metadata metadata, Form<T> form, Callback callback)
If the form contains only required attributes, a warning message is fired and the specified callback is executed.
complexAttribute - the name of the complex attributetype - the human readable name of the complex attributeaddress - the fq address for the operationform - the form which should be resetcallback - the callback executed after the resource has been saved@JsIgnore public void remove(String resource, String complexAttribute, String type, AddressTemplate template, Callback callback)
resource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationcallback - the callback executed after the complex attribute has been undefined@JsIgnore public void remove(String complexAttribute, String type, ResourceAddress address, Callback callback)
complexAttribute - the name of the complex attributetype - the human readable name of the complex attributeaddress - the fq address for the operationcallback - the callback executed after the complex attribute has been undefined@JsIgnore public void remove(String resource, String complexAttribute, String type, int index, AddressTemplate template, Callback callback)
resource - the resource namecomplexAttribute - the name of the complex attributetype - the human readable name of the complex attributeindex - the index for the list-type complex attributetemplate - the address template which is resolved against the current statement context and the
resource name to get the resource address for the operationcallback - the callback executed after the complex attribute has been undefinedCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.