All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ikasan.dashboard.ui.visualisation.actions.BusinessStreamSaveAsFunction Maven / Gradle / Ivy

There is a newer version: 4.0.1
Show newest version
package org.ikasan.dashboard.ui.visualisation.actions;

import org.ikasan.dashboard.ui.visualisation.component.BusinessStreamSaveAsDialog;
import org.ikasan.designer.function.SaveAsFunction;
import org.ikasan.spec.metadata.BusinessStreamMetaData;
import org.ikasan.spec.metadata.BusinessStreamMetaDataService;

public class BusinessStreamSaveAsFunction implements SaveAsFunction {

    private BusinessStreamMetaDataService businessStreamMetaDataService;
    private BusinessStreamSaveAsDialog businessStreamSaveAsDialog;

    public BusinessStreamSaveAsFunction(BusinessStreamMetaDataService businessStreamMetaDataService) {
        this.businessStreamMetaDataService = businessStreamMetaDataService;
    }

    @Override
    public void saveAs(String payload) {
        this.businessStreamSaveAsDialog = new BusinessStreamSaveAsDialog(businessStreamMetaDataService,
            payload);
        businessStreamSaveAsDialog.open();
    }

    @Override
    public String getName() {
        return this.businessStreamSaveAsDialog.getName();
    }

    @Override
    public String getId() {
        return this.businessStreamSaveAsDialog.getBusinessStreamId();
    }

    @Override
    public String getDescription() {
        return this.businessStreamSaveAsDialog.getDescription();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy