Search in sources :

Example 26 with Metadata

use of org.jboss.hal.meta.Metadata in project console by hal.

the class LoggingProfileView method saveCustomFormatter.

void saveCustomFormatter(Form<NamedNode> form, Map<String, Object> changedValues) {
    String name = form.getModel().getName();
    Metadata metadata = mbuiContext.metadataRegistry().lookup(LOGGING_PROFILE_TEMPLATE.append(CUSTOM_FORMATTER + EQ_WILDCARD));
    saveForm(Names.CUSTOM_FORMATTER, name, SELECTED_LOGGING_PROFILE_TEMPLATE.append(CUSTOM_FORMATTER + EQ_WILDCARD).resolve(selectionAwareStatementContext, name), changedValues, metadata);
}
Also used : Metadata(org.jboss.hal.meta.Metadata)

Example 27 with Metadata

use of org.jboss.hal.meta.Metadata in project console by hal.

the class LoggingProfileView method saveAsyncHandler.

void saveAsyncHandler(Form<NamedNode> form, Map<String, Object> changedValues) {
    String name = form.getModel().getName();
    Metadata metadata = mbuiContext.metadataRegistry().lookup(LOGGING_PROFILE_TEMPLATE.append(ASYNC_HANDLER + EQ_WILDCARD));
    saveForm(Names.ASYNC_ACTION_HANDLER, name, SELECTED_LOGGING_PROFILE_TEMPLATE.append(ASYNC_HANDLER + EQ_WILDCARD).resolve(selectionAwareStatementContext, name), changedValues, metadata);
}
Also used : Metadata(org.jboss.hal.meta.Metadata)

Example 28 with Metadata

use of org.jboss.hal.meta.Metadata in project console by hal.

the class LoggingProfileView method saveRootLogger.

// ------------------------------------------------------ root logger
@SuppressWarnings("UnusedParameters")
void saveRootLogger(Form<ModelNode> form, Map<String, Object> changedValues) {
    Metadata metadata = mbuiContext.metadataRegistry().lookup(LOGGING_PROFILE_TEMPLATE.append(ROOT_LOGGER_EQ_ROOT));
    saveSingletonForm("Root Logger", SELECTED_LOGGING_PROFILE_TEMPLATE.append(ROOT_LOGGER_EQ_ROOT).resolve(selectionAwareStatementContext), changedValues, metadata);
}
Also used : Metadata(org.jboss.hal.meta.Metadata)

Example 29 with Metadata

use of org.jboss.hal.meta.Metadata in project console by hal.

the class LoggingProfileView method resetPatternFormatter.

void resetPatternFormatter(Form<NamedNode> form) {
    String name = form.getModel().getName();
    Metadata metadata = mbuiContext.metadataRegistry().lookup(LOGGING_PROFILE_TEMPLATE.append(PATTERN_FORMATTER + EQ_WILDCARD));
    resetForm(Names.PATTERN_FORMATTER, name, SELECTED_LOGGING_PROFILE_TEMPLATE.append(PATTERN_FORMATTER + EQ_WILDCARD).resolve(selectionAwareStatementContext, name), form, metadata);
}
Also used : Metadata(org.jboss.hal.meta.Metadata)

Example 30 with Metadata

use of org.jboss.hal.meta.Metadata in project console by hal.

the class LoggingProfileView method resetCustomFormatter.

void resetCustomFormatter(Form<NamedNode> form) {
    String name = form.getModel().getName();
    Metadata metadata = mbuiContext.metadataRegistry().lookup(LOGGING_PROFILE_TEMPLATE.append(CUSTOM_FORMATTER + EQ_WILDCARD));
    resetForm(Names.CUSTOM_FORMATTER, name, SELECTED_LOGGING_PROFILE_TEMPLATE.append(CUSTOM_FORMATTER + EQ_WILDCARD).resolve(selectionAwareStatementContext, name), form, metadata);
}
Also used : Metadata(org.jboss.hal.meta.Metadata)

Aggregations

Metadata (org.jboss.hal.meta.Metadata)281 ResourceAddress (org.jboss.hal.dmr.ResourceAddress)146 ModelNode (org.jboss.hal.dmr.ModelNode)128 ModelNodeForm (org.jboss.hal.core.mbui.form.ModelNodeForm)95 AddResourceDialog (org.jboss.hal.core.mbui.dialog.AddResourceDialog)80 NamedNode (org.jboss.hal.dmr.NamedNode)73 Ids (org.jboss.hal.resources.Ids)70 Form (org.jboss.hal.ballroom.form.Form)68 Names (org.jboss.hal.resources.Names)67 ModelDescriptionConstants (org.jboss.hal.dmr.ModelDescriptionConstants)63 Resources (org.jboss.hal.resources.Resources)60 List (java.util.List)59 Operation (org.jboss.hal.dmr.Operation)59 AddressTemplate (org.jboss.hal.meta.AddressTemplate)59 Inject (javax.inject.Inject)52 Map (java.util.Map)51 StatementContext (org.jboss.hal.meta.StatementContext)51 Dispatcher (org.jboss.hal.dmr.dispatch.Dispatcher)50 EventBus (com.google.web.bindery.event.shared.EventBus)49 MetadataRegistry (org.jboss.hal.meta.MetadataRegistry)46