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

prerna.ui.components.playsheets.datamakers.IDataMaker Maven / Gradle / Ivy

The newest version!
package prerna.ui.components.playsheets.datamakers;

import java.util.List;
import java.util.Map;

/**
 * This Interface defines responsibilities of a data maker
 * Data makers are used to generate the data necessary for a view
 * Data makers are fed data maker components one by one and the maker performs necessary actions to consume component
 * 
 * @author bisutton
 *
 */
@Deprecated
public interface IDataMaker {

	@Deprecated
	void processDataMakerComponent(DataMakerComponent component);

	@Deprecated
	void processPreTransformations(DataMakerComponent dmc, List transforms);

	@Deprecated
	void processPostTransformations(DataMakerComponent dmc, List transforms, IDataMaker... dataFrame);

	@Deprecated
	Map getDataMakerOutput(String... selectors);

//	@Deprecated
//	List processActions(DataMakerComponent dmc, List actions, IDataMaker... dataMaker);
//	
//	@Deprecated
//	List getActionOutput();

	@Deprecated
	Map getScriptReactors();
	
	/**
	 * Used to update the data id when data has changed within the frame
	 */
	@Deprecated
	void updateDataId();
	
	/**
	 * Returns the current data id
	 * @return 
	 */
	@Deprecated
	int getDataId();
	
	/**
	 * reset the dataId to be 0
	 */
	@Deprecated
	void resetDataId();
	
	/**
	 * Sets the name of the user who created this instance of the data maker
	 * @param userId
	 */
	@Deprecated
	void setUserId(String userId);
	
	/**
	 * Returns the name of the user who created this instance of the data maker
	 * @return
	 */
	@Deprecated
	String getUserId();
	
	/**
	 * Returns the name of the data maker
	 * This name must match that which is defined within RDF_MAP
	 * @return
	 */
	@Deprecated
	String getDataMakerName();
}