com.easyinsight.helper
Class APIUtil

java.lang.Object
  extended by com.easyinsight.helper.APIUtil

public class APIUtil
extends java.lang.Object

User: jamesboe Date: 1/6/11 Time: 10:45 AM


Constructor Summary
APIUtil()
           
 
Method Summary
static CompositeDataSourceFactory defineCompositeDataSource(java.lang.String dataSourceName, java.lang.String apiKey, java.lang.String apiSecretKey)
          Creates a CompositeDataSourceFactory used for defining a composite data source inside of Easy Insight
static DataSourceFactory defineDataSource(java.lang.String dataSourceName, java.lang.String apiKey, java.lang.String apiSecretKey)
          Creates a DataSourceFactory used for defining a data source inside of Easy Insight.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

APIUtil

public APIUtil()
Method Detail

defineDataSource

public static DataSourceFactory defineDataSource(java.lang.String dataSourceName,
                                                 java.lang.String apiKey,
                                                 java.lang.String apiSecretKey)
Creates a DataSourceFactory used for defining a data source inside of Easy Insight. Use this method as the starting point to any new code.

Parameters:
dataSourceName - the name of the data source you wish to create inside of Easy Insight
apiKey - your API key, as found in the Developer page in Easy Insight
apiSecretKey - your API secret key, as found in the Developer page in Easy Insight
Returns:
a DataSourceFactory> object you can use to actually define metadata about the data source

defineCompositeDataSource

public static CompositeDataSourceFactory defineCompositeDataSource(java.lang.String dataSourceName,
                                                                   java.lang.String apiKey,
                                                                   java.lang.String apiSecretKey)
Creates a CompositeDataSourceFactory used for defining a composite data source inside of Easy Insight

Parameters:
dataSourceName - the name of the composite data source you wish to create inside of Easy Insight
apiKey - your API key, as found in the Developer page in Easy Insight
apiSecretKey - your API secret key, as found in the Developer page in Easy Insight
Returns:
a CompositeDataSourceFactory> object you can use to actually define metadata about the data source