Class CrudOperations


  • public class CrudOperations
    extends Object
    Contains generic CRUD methods to add, read, update and remove (singleton) resources. Some methods just execute the underlying DMR operations, other methods also interact with the user by showing (confirmation) dialogs.
    • Method Detail

      • add

        public void add​(String id,
                        String type,
                        AddressTemplate template,
                        CrudOperations.AddCallback callback)
        Opens an add-resource-dialog for the given resource type. The dialog contains fields for all required request properties. 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.
        Parameters:
        id - the id used for the add resource dialog
        type - the human readable resource type used in the dialog header and success message
        template - the address template which is resolved against the current statement context to get the resource address for the add operation
        callback - the callback executed after the resource has been added
      • add

        public void add​(String id,
                        String type,
                        AddressTemplate template,
                        Iterable<String> attributes,
                        CrudOperations.AddCallback callback)
        Opens an add-resource-dialog for the given resource type. The dialog contains fields for all required request properties plus the ones specified by 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.
        Parameters:
        id - the id used for the add resource dialog
        type - the human readable resource type used in the dialog header and success message
        template - the address template which is resolved against the current statement context to get the resource address for the add operation
        attributes - additional attributes which should be part of the add resource dialog
        callback - the callback executed after the resource has been added
      • add

        public void add​(String type,
                        String name,
                        AddressTemplate template,
                        @Nullable
                        ModelNode payload,
                        CrudOperations.AddCallback callback)
        Executes an add operation using the specified name and payload. After the resource has been added a success message is fired and the specified callback is executed.
        Parameters:
        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
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the add operation
        payload - the optional payload of the add operation (may be null or undefined)
        callback - the callback executed after the resource has been added
      • add

        public void add​(String name,
                        AddressTemplate template,
                        @Nullable
                        ModelNode payload,
                        com.google.gwt.safehtml.shared.SafeHtml successMessage,
                        CrudOperations.AddCallback callback)
        Executes an add operation using the specified name and payload. After the resource has been added the specified success message is fired and the specified callback is executed.
        Parameters:
        name - the resource name which is part of the add operation
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the add operation
        payload - the optional payload of the add operation (may be null or undefined)
        successMessage - the success message fired after adding the resource
        callback - the callback executed after the resource has been added
      • add

        public void add​(String type,
                        String name,
                        ResourceAddress address,
                        @Nullable
                        ModelNode payload,
                        CrudOperations.AddCallback callback)
        Executes an add operation using the specified name and payload. After the resource has been added a success message is fired and the specified callback is executed.
        Parameters:
        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 fq address for the add operation
        payload - the optional payload of the add operation (may be null or undefined)
        callback - the callback executed after the resource has been added
      • add

        public void add​(String name,
                        ResourceAddress address,
                        @Nullable
                        ModelNode payload,
                        com.google.gwt.safehtml.shared.SafeHtml successMessage,
                        CrudOperations.AddCallback callback)
        Executes an add operation using the specified name and payload. After the resource has been added the specified success message is fired and the specified callback is executed.
        Parameters:
        name - the resource name which is part of the add operation
        address - the fq address for the add operation
        payload - the optional payload of the add operation (may be null or undefined)
        successMessage - the success message fired after adding the resource
        callback - the callback executed after the resource has been added
      • addSingleton

        public void addSingleton​(String id,
                                 String type,
                                 AddressTemplate template,
                                 CrudOperations.AddSingletonCallback callback)
        Opens an add-resource-dialog for the given singleton resource type. The dialog contains fields for all required request properties. 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.
        Parameters:
        id - the id used for the add resource dialog
        type - the human readable resource type used in the dialog header and success message
        template - the address template which is resolved against the current statement context to get the singleton resource address for the add operation
        callback - the callback executed after the singleton resource has been added
      • addSingleton

        public 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. The dialog contains fields for all required request properties. plus the ones specified by 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.
        Parameters:
        id - the id used for the add resource dialog
        type - the human readable resource type used in the dialog header and success message
        template - the address template which is resolved against the current statement context to get the singleton resource address for the add operation
        attributes - additional attributes which should be part of the add resource dialog
        callback - the callback executed after the singleton resource has been added
      • addSingleton

        public void addSingleton​(String id,
                                 String type,
                                 Metadata metadata,
                                 AddressTemplate template,
                                 CrudOperations.AddSingletonCallback callback)
        Opens an add-resource-dialog for the given singleton resource type. The dialog contains fields for all required request properties. plus the ones specified by 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.
        Parameters:
        id - the id used for the add resource dialog
        type - the human readable resource type used in the dialog header and success message
        metadata - the metadata that contains the resource description
        callback - the callback executed after the singleton resource has been added
      • addSingleton

        public void addSingleton​(String type,
                                 AddressTemplate template,
                                 CrudOperations.AddSingletonCallback callback)
        Executes an add operation using the specified template. After the resource has been added a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the dialog header and success message
        template - the address template which is resolved against the current statement context to get the singleton resource address for the add operation
        callback - the callback executed after the singleton resource has been added
      • addSingleton

        public void addSingleton​(String type,
                                 AddressTemplate template,
                                 @Nullable
                                 ModelNode payload,
                                 CrudOperations.AddSingletonCallback callback)
        Executes an add operation using the specified template and payload. After the resource has been added a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the dialog header and success message
        template - the address template which is resolved against the current statement context to get the singleton resource address for the add operation
        payload - the optional payload of the add operation (may be null or undefined)
        callback - the callback executed after the singleton resource has been added
      • addSingleton

        public void addSingleton​(String type,
                                 ResourceAddress address,
                                 @Nullable
                                 ModelNode payload,
                                 CrudOperations.AddSingletonCallback callback)
        Executes an add operation using the specified address and payload. After the resource has been added a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the dialog header and success message
        address - the fq address for the add operation
        payload - the optional payload of the add operation (may be null or undefined)
        callback - the callback executed after the singleton resource has been added
      • addSingleton

        public void addSingleton​(String type,
                                 Operation operation,
                                 CrudOperations.AddSingletonCallback callback)
        Executes the specified add operation. After the resource has been added a success message is fired and the specified callback is executed.
        Parameters:
        operation - the add operation with the address and payload
        type - the human readable resource type used in the dialog header and success message
        callback - the callback executed after the singleton resource has been added
      • read

        public 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.
        Parameters:
        template - the address template which is resolved against the current statement context to get the resource address for the read-resource operation
        callback - the callback which gets the result of the read-resource operation
      • read

        public 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.
        Parameters:
        template - the address template which is resolved against the current statement context to get the resource address for the read-resource operation
        depth - the depth used for the recursive-depth parameter
        callback - the callback which gets the result of the read-resource operation
      • readRecursive

        public 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.
        Parameters:
        template - the address template which is resolved against the current statement context to get the resource address for the read-resource operation
        callback - the callback which gets the result of the read-resource operation
      • readChildren

        public 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.
        Parameters:
        template - the address template which is resolved against the current statement context to get the resource address for the read-children-resource operation
        childType - 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>
      • readChildren

        public 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.
        Parameters:
        template - the address template which is resolved against the current statement context to get the resource address for the read-children-resource operation
        childType - the child resource (not human readable, but the actual child resource name!)
        depth - the depth used for the recursive-depth parameter
        callback - the callback which gets the result of the read-children-resource operation as List<Property>
      • read

        public 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.
        Parameters:
        address - the fq address for the read-resource operation
        depth - the depth used for the recursive-depth parameter
        callback - the callback which gets the result of the read-resource operation
      • readChildren

        public 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.
        Parameters:
        address - the fq address for the read-children-resource operation
        resource - the child resource (not human readable, but the actual child resource name!)
        depth - the depth used for the recursive-depth parameter
        callback - the callback which gets the result of the read-children-resource operation as List<Property>
      • readChildren

        public void readChildren​(AddressTemplate template,
                                 Iterable<String> resources,
                                 CrudOperations.ReadCompositeCallback callback)
        Read multiple different child resources using a composite operation. The steps in the composite result map to the position of the resource in the resources collection.
        Parameters:
        template - the address template which is resolved against the current statement context to get the resource address for the read-children-resource operation
        resources - the child resources (not human readable, but the actual child resource name!)
        callback - the callback which gets the composite result
      • readChildren

        public void readChildren​(ResourceAddress address,
                                 Iterable<String> resources,
                                 CrudOperations.ReadCompositeCallback callback)
        Read multiple different child resources using a composite operation. The steps in the composite result map to the position of the resource in the resources collection.
        Parameters:
        address - the fq address for the read-children-resource operation
        resources - the child resources (not human readable, but the actual child resource name!)
        callback - the callback which gets the composite result
      • readChildren

        public void readChildren​(ResourceAddress address,
                                 Iterable<String> resources,
                                 int depth,
                                 CrudOperations.ReadCompositeCallback callback)
        Read multiple different child resources using a composite operation. The steps in the composite result map to the position of the resource in the resources collection.
        Parameters:
        address - the fq address for the read-children-resource operation
        resources - the child resources (not human readable, but the actual child resource name!)
        depth - the depth used for the recursive-depth parameter
        callback - the callback which gets the composite result
      • save

        public void save​(String type,
                         String name,
                         AddressTemplate template,
                         Map<String,​Object> changedValues,
                         Callback successCallback)
        Writes the changed values to the specified resource. After the resource has been saved a standard success message is fired and the specified callback is executed.

        If the change set is empty, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        changedValues - the changed values / payload for the operation
        successCallback - the callback executed after the resource has been saved
      • save

        public void save​(String name,
                         AddressTemplate template,
                         Map<String,​Object> changedValues,
                         com.google.gwt.safehtml.shared.SafeHtml successMessage,
                         Callback successCallback)
        Writes the changed values to the specified resource. After the resource has been saved the specified success message is fired and the specified callback is executed.

        If the change set is empty, a warning message is fired and the specified callback is executed.

        Parameters:
        name - the resource name
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        changedValues - the changed values / payload for the operation
        successMessage - the success message fired after saving the resource
        successCallback - the callback executed after the resource has been saved
      • save

        public void save​(String type,
                         String name,
                         ResourceAddress address,
                         Map<String,​Object> changedValues,
                         Metadata metadata,
                         Callback successCallback)
        Writes the changed values to the specified resource. After the resource has been saved a standard success message is fired and the specified callback is executed.

        If the change set is empty, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        address - the fq address for the operation
        changedValues - the changed values / payload for the operation
        metadata - the metadata of the attributes in the change set
        successCallback - the callback executed after the resource has been saved
      • save

        public void save​(String type,
                         String name,
                         ResourceAddress address,
                         Map<String,​Object> changedValues,
                         Metadata metadata,
                         Callback successCallback,
                         Callback errorCallback)
        Writes the changed values to the specified resource. After the resource has been saved a standard success message is fired and the specified callback is executed.

        If the change set is empty, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        address - the fq address for the operation
        changedValues - the changed values / payload for the operation
        metadata - the metadata of the attributes in the change set
        successCallback - the callback executed after the resource has been saved
        errorCallback - the callback executed if the save operation fails
      • save

        public void save​(ResourceAddress address,
                         Map<String,​Object> changedValues,
                         Metadata metadata,
                         com.google.gwt.safehtml.shared.SafeHtml successMessage,
                         Callback successCallback)
        Writes the changed values to the specified resource. After the resource has been saved the specified success message is fired and the specified callback is executed.

        If the change set is empty, a warning message is fired and the specified callback is executed.

        Parameters:
        address - the fq address for the operation
        changedValues - the changed values / payload for the operation
        metadata - the metadata of the attributes in the change set
        successMessage - the success message fired after saving the resource
        successCallback - the callback executed after the resource has been saved
      • save

        public void save​(String type,
                         String name,
                         Composite operations,
                         Callback successCallback)
        Writes the changed values to the specified resource. After the resource has been saved a standard success message is fired and the specified callback is executed.

        If the composite operation is empty (i.e. there were no changes), a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        operations - the composite operation to persist the changed values
        successCallback - the callback executed after the resource has been saved
      • save

        public void save​(Composite operations,
                         com.google.gwt.safehtml.shared.SafeHtml successMessage,
                         Callback successCallback)
        Writes the changed values to the specified resource. After the resource has been saved the specified success message is fired and the specified successCallback is executed.

        If the composite operation is empty (i.e. there were no changes), a warning message is fired and the specified successCallback is executed.

        Parameters:
        operations - the composite operation to persist the changed values
        successMessage - the success message fired after saving the resource
        successCallback - the callback executed after the resource has been saved
      • save

        public void save​(Composite operations,
                         com.google.gwt.safehtml.shared.SafeHtml successMessage,
                         Callback successCallback,
                         Callback errorCallback)
        Writes the changed values to the specified resource. After the resource has been saved the specified success message is fired and the specified successCallback is executed.

        If the composite operation is empty (i.e. there were no changes), a warning message is fired and the specified successCallback is executed.

        Parameters:
        operations - the composite operation to persist the changed values
        successMessage - the success message fired after saving the resource
        successCallback - the callback executed after the resource has been saved
        errorCallback - the callback executed if the save operation fails
      • saveSingleton

        public void saveSingleton​(String type,
                                  AddressTemplate template,
                                  Map<String,​Object> changedValues,
                                  Callback successCallback)
        Writes the changed values to the specified singleton resource. After the resource has been saved a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the success message
        template - the address template which is resolved against the current statement context to get the resource address for the operation
        changedValues - the changed values / payload for the operation
        successCallback - the callback executed after the resource has been saved
      • saveSingleton

        public void saveSingleton​(AddressTemplate template,
                                  Map<String,​Object> changedValues,
                                  com.google.gwt.safehtml.shared.SafeHtml successMessage,
                                  Callback successCallback)
        Writes the changed values to the specified singleton resource. After the resource has been saved a success message is fired and the specified callback is executed.
        Parameters:
        template - the address template which is resolved against the current statement context to get the resource address for the operation
        changedValues - the changed values / payload for the operation
        successMessage - the success message fired after saving the resource
        successCallback - the callback executed after the resource has been saved
      • saveSingleton

        public void saveSingleton​(String type,
                                  ResourceAddress address,
                                  Map<String,​Object> changedValues,
                                  Metadata metadata,
                                  Callback successCallback)
        Writes the changed values to the specified singleton resource. After the resource has been saved a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the success message
        address - the fq address for the operation
        changedValues - the changed values / payload for the operation
        metadata - the metadata of the attributes in the change set
        successCallback - the callback executed after the resource has been saved
      • saveSingleton

        public void saveSingleton​(String type,
                                  ResourceAddress address,
                                  Map<String,​Object> changedValues,
                                  Metadata metadata,
                                  Callback successCallback,
                                  Callback errorCallback)
        Writes the changed values to the specified singleton resource. After the resource has been saved a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the success message
        address - the fq address for the operation
        changedValues - the changed values / payload for the operation
        metadata - the metadata of the attributes in the change set
        successCallback - the callback executed after the resource has been saved
      • saveSingleton

        public void saveSingleton​(ResourceAddress address,
                                  Map<String,​Object> changedValues,
                                  Metadata metadata,
                                  com.google.gwt.safehtml.shared.SafeHtml successMessage,
                                  Callback successCallback,
                                  Callback errorCallback)
        Writes the changed values to the specified singleton resource. After the resource has been saved a success message is fired and the specified callback is executed.
        Parameters:
        address - the fq address for the operation
        changedValues - the changed values / payload for the operation
        metadata - the metadata of the attributes in the change set
        successMessage - the success message fired after saving the resource
        successCallback - the callback executed after the resource has been saved
      • saveSingleton

        public void saveSingleton​(ResourceAddress address,
                                  Map<String,​Object> changedValues,
                                  Metadata metadata,
                                  com.google.gwt.safehtml.shared.SafeHtml successMessage,
                                  Callback successCallback)
        Writes the changed values to the specified singleton resource. After the resource has been saved a success message is fired and the specified callback is executed.
        Parameters:
        address - the fq address for the operation
        changedValues - the changed values / payload for the operation
        metadata - the metadata of the attributes in the change set
        successMessage - the success message fired after saving the resource
        successCallback - the callback executed after the resource has been saved
      • reset

        public <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. After the resource has been undefined a standard success message is fired and the specified callback is executed.

        If the form contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        form - the form which should be reset
        metadata - the metadata of the attributes
        callback - the callback executed after the resource has been undefined
      • reset

        public <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. After the resource has been undefined the specified success message is fired and the specified callback is executed.

        If the form contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        form - the form which should be reset
        metadata - the metadata of the attributes
        successMessage - the success message fired after resetting the resource
        callback - the callback executed after the resource has been undefined
      • reset

        public void reset​(String type,
                          String name,
                          AddressTemplate template,
                          Set<String> attributes,
                          Metadata metadata,
                          Callback callback)
        Undefines all non required attributes in the specified set. After the resource has been undefined a standard success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        attributes - the attributes which should be reset
        metadata - the metadata of the attributes
        callback - the callback executed after the resource has been undefined
      • reset

        public 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. After the resource has been undefined the specified success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        attributes - the attributes which should be reset
        metadata - the metadata of the attributes
        successMessage - the success message fired after resetting the resource
        callback - the callback executed after the resource has been undefined
      • reset

        public <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. After the resource has been undefined a standard success message is fired and the specified callback is executed.

        If the form contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        address - the fq address for the operation
        form - the form which should be reset
        metadata - the metadata of the attributes
        callback - the callback executed after the resource has been undefined
      • reset

        public <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. After the resource has been undefined the specified success message is fired and the specified callback is executed.

        If the form contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        address - the fq address for the operation
        form - the from which should be reset
        metadata - the metadata of the attributes
        successMessage - the success message fired after resetting the resource
        callback - the callback executed after the resource has been undefined
      • reset

        public void reset​(String type,
                          String name,
                          ResourceAddress address,
                          Set<String> attributes,
                          Metadata metadata,
                          Callback callback)
        Undefines all non required attributes in the specified set. After the resource has been undefined a standard success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        address - the fq address for the operation
        attributes - the attributes which should be reset
        metadata - the metadata of the attributes
        callback - the callback executed after the resource has been undefined
      • reset

        public 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. After the resource has been undefined the specified success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        address - the fq address for the operation
        attributes - the attributes which should be reset
        metadata - the metadata of the attributes
        successMessage - the success message fired after resetting the resource
        callback - the callback executed after the resource has been undefined
      • resetSingleton

        public <T> void resetSingleton​(String type,
                                       AddressTemplate template,
                                       Form<T> form,
                                       Metadata metadata,
                                       Callback callback)
        Undefines all non required attributes in the specified form. After the singleton resource has been undefined a standard success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        form - the form which should be reset
        metadata - the metadata of the attributes
        callback - the callback executed after the resource has been undefined
      • resetSingleton

        public <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. After the singleton resource has been undefined the specified success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        form - the form which should be reset
        metadata - the metadata of the attributes
        successMessage - the success message fired after resetting the resource
        callback - the callback executed after the resource has been undefined
      • resetSingleton

        public void resetSingleton​(String type,
                                   AddressTemplate template,
                                   Set<String> attributes,
                                   Metadata metadata,
                                   Callback callback)
        Undefines all non required attributes in the specified set. After the singleton resource has been undefined a standard success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        attributes - the attributes which should be reset
        metadata - the metadata of the attributes
        callback - the callback executed after the resource has been undefined
      • resetSingleton

        public 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. After the singleton resource has been undefined the specified success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the operation
        attributes - the attributes which should be reset
        metadata - the metadata of the attributes
        successMessage - the success message fired after resetting the resource
        callback - the callback executed after the resource has been undefined
      • resetSingleton

        public <T> void resetSingleton​(String type,
                                       ResourceAddress address,
                                       Form<T> form,
                                       Metadata metadata,
                                       Callback callback)
        Undefines all non required attributes in the specified form. After the singleton resource has been undefined a standard success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        address - the fq address for the operation
        form - the form which should be reset
        metadata - the metadata of the attributes
        callback - the callback executed after the resource has been undefined
      • resetSingleton

        public <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. After the singleton resource has been undefined the specified success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        address - the fq address for the operation
        form - the form which should be reset
        metadata - the metadata of the attributes
        successMessage - the success message fired after resetting the resource
        callback - the callback executed after the resource has been undefined
      • resetSingleton

        public void resetSingleton​(String type,
                                   ResourceAddress address,
                                   Set<String> attributes,
                                   Metadata metadata,
                                   Callback callback)
        Undefines all non required attributes in the specified set. After the singleton resource has been undefined a standard success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        address - the fq address for the operation
        attributes - the attributes which should be reset
        metadata - the metadata of the attributes
        callback - the callback executed after the resource has been undefined
      • resetSingleton

        public 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. After the singleton resource has been undefined the specified success message is fired and the specified callback is executed.

        If the set contains only required attributes, a warning message is fired and the specified callback is executed.

        Parameters:
        type - the human readable resource type used in the success message
        address - the fq address for the operation
        attributes - the attributes which should be reset
        metadata - the metadata of the attributes
        successMessage - the success message fired after resetting the resource
        callback - the callback executed after the resource has been undefined
      • remove

        public void remove​(String type,
                           String name,
                           AddressTemplate template,
                           Callback callback)
        Shows a confirmation dialog and removes the resource if confirmed by the user. After the resource has been removed a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        template - the address template which is resolved against the current statement context and the resource name to get the resource address for the remove operation
        callback - the callback executed after the resource has been removed
      • removeSingleton

        public void removeSingleton​(String type,
                                    AddressTemplate template,
                                    Callback callback)
        Shows a confirmation dialog and removes the singleton resource if confirmed by the user. After the resource has been removed a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the success message
        template - the address template which is resolved against the current statement context to get the resource address for the remove operation
        callback - the callback executed after the resource has been removed
      • remove

        public void remove​(String type,
                           String name,
                           ResourceAddress address,
                           Callback callback)
        Shows a confirmation dialog and removes the resource if confirmed by the user. After the resource has been removed a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the success message
        name - the resource name
        address - the fq address for the remove operation
        callback - the callback executed after the resource has been removed
      • removeSingleton

        public void removeSingleton​(String type,
                                    ResourceAddress address,
                                    Callback callback)
        Shows a confirmation dialog and removes the singleton resource if confirmed by the user. After the resource has been removed a success message is fired and the specified callback is executed.
        Parameters:
        type - the human readable resource type used in the success message
        address - the fq address for the remove operation
        callback - the callback executed after the resource has been removed