text: 	/********************************************************************************
  	 * generated by de.acegen
  	 ********************************************************************************/
  	
  	
  	
  
  	import SynchronousCommand from "../../ace/SynchronousCommand";
  	import Event from "../../ace/Event";
  	import * as AppUtils from "../../../src/AppUtils";
  	import * as AppState from "../../../src/AppState";
  	
  	export default class AbstractEditCardCommand extends SynchronousCommand {
  	    constructor() {
  	        super("card.EditCardCommand");
  	    }
  	
  	    initCommandData(data) {
  	        data.cardList = AppState.get(
  	        	["rootContainer", "mainView", "authorView", "categoryTree", "cardView", "cardTable", "cardList"]
  	        )
  	        ;
  	        data.outcomes = [];
  	    }
  
  		addOkOutcome(data) {
  			data.outcomes.push("ok");
  		}
  		
  		publishEvents(data) {
  			const events = [];
  			const actionsToBeTriggered = [];
  			if (data.outcomes.includes("ok")) {
  				events.push(new Event('card.EditCardOkEvent'));
  			}
  			
  			this.publish(events, data);
  		  	AppState.stateUpdated();
  			this.trigger(actionsToBeTriggered);
  	
  		}
  
  	}
  	
  	
  	
  	/******* S.D.G. *******/
  	
  	
  	
  