org.ikasan.dashboard.ui.visualisation.actions.BusinessStreamSaveAsFunction Maven / Gradle / Ivy
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();
}
}