package com.braintree.customersupportbackoffice.actions.braintreePluginConfiguration.importConfiguration;

import com.hybris.cockpitng.actions.ActionContext;
import com.hybris.cockpitng.actions.ActionResult;
import com.hybris.cockpitng.actions.CockpitAction;
import com.hybris.cockpitng.engine.impl.AbstractComponentWidgetAdapterAware;
import de.hybris.platform.core.model.BraintreePluginConfigurationModel;

public class BraintreeImportConfiguration extends AbstractComponentWidgetAdapterAware implements
        CockpitAction<BraintreePluginConfigurationModel, BraintreePluginConfigurationModel> {

    protected static final String SOCKET_OUT_CONTEXT = "importConfigurationContext";

    @Override
    public ActionResult<BraintreePluginConfigurationModel> perform(ActionContext<BraintreePluginConfigurationModel> actionContext) {
        sendOutput(SOCKET_OUT_CONTEXT, actionContext.getData());

        ActionResult<BraintreePluginConfigurationModel> actionResult = new ActionResult<>(ActionResult.SUCCESS);
        return actionResult;
    }
}