|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.pentaho.platform.dataaccess.datasource.wizard.service.gwt.DatasourceDebugGwtServlet
public class DatasourceDebugGwtServlet
Constructor Summary | |
---|---|
DatasourceDebugGwtServlet()
|
Method Summary | |
---|---|
boolean |
deleteLogicalModel(String domainId,
String modelName)
Delete the Logical Mode identified by the Domain ID and the Model Name |
SerializedResultSet |
doPreview(String connectionName,
String query,
String previewLimit)
Returns the serialized version of SQL ResultSet. |
BusinessData |
generateInlineEtlLogicalModel(String modelName,
String relativeFilePath,
boolean headersPresent,
String delimeter,
String enclosure)
Returns the generated csv based logical model along with the sample data for the given connection name and query |
BusinessData |
generateLogicalModel(String modelName,
String connectionName,
String query,
String previewLimit)
Returns the generated relational based logical model along with the sample data for the given connection name and query |
List<LogicalModelSummary> |
getLogicalModels()
Returns the list of Logical Models. |
BogoPojo |
gwtWorkaround(BogoPojo pojo)
This is a method for the Gwt workaround. |
boolean |
hasPermission()
Returns whether the current user has the authority to create/edit/delete datasources |
BusinessData |
loadBusinessData(String domainId,
String modelId)
Returns the save logical model for a given Domain ID and Model ID |
boolean |
saveLogicalModel(org.pentaho.metadata.model.Domain modelName,
boolean overwrite)
Save the generated model. |
Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
---|
doPost, getSerializationPolicy, processCall |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DatasourceDebugGwtServlet()
Method Detail |
---|
public SerializedResultSet doPreview(String connectionName, String query, String previewLimit) throws DatasourceServiceException
IDatasourceService
doPreview
in interface IDatasourceService
connectionName
- - Name of the connectionquery
- - Query which needs to be executedpreviewLimit
- - Number of row which needs to be returned for this query
DatasourceServiceException
public BusinessData generateLogicalModel(String modelName, String connectionName, String query, String previewLimit) throws DatasourceServiceException
IDatasourceService
generateLogicalModel
in interface IDatasourceService
modelName
- - Name of the model to be generatedconnectionName
- - Name of the connectionquery
- - Query which needs to be executedpreviewLimit
- - Number of row which needs to be returned for this query
DatasourceServiceException
public boolean saveLogicalModel(org.pentaho.metadata.model.Domain modelName, boolean overwrite) throws DatasourceServiceException
IDatasourceService
saveLogicalModel
in interface IDatasourceService
modelName
- - generated Domainoverwrite
- - should the domain be overwritten or not
DatasourceServiceException
public BogoPojo gwtWorkaround(BogoPojo pojo)
IDatasourceService
gwtWorkaround
in interface IDatasourceService
public BusinessData generateInlineEtlLogicalModel(String modelName, String relativeFilePath, boolean headersPresent, String delimeter, String enclosure) throws DatasourceServiceException
IDatasourceService
generateInlineEtlLogicalModel
in interface IDatasourceService
modelName
- - Name of the model to be generatedrelativeFilePath
- - Relative path to the file that needs to be uploadedheadersPresent
- - Are headers present in the file or notdelimeter
- - Delimiter that was used in the fileenclosure
- - Enclosure that was used in the file
DatasourceServiceException
public boolean hasPermission()
IDatasourceService
hasPermission
in interface IDatasourceService
public boolean deleteLogicalModel(String domainId, String modelName) throws DatasourceServiceException
IDatasourceService
deleteLogicalModel
in interface IDatasourceService
DatasourceServiceException
public List<LogicalModelSummary> getLogicalModels() throws DatasourceServiceException
IDatasourceService
getLogicalModels
in interface IDatasourceService
DatasourceServiceException
public BusinessData loadBusinessData(String domainId, String modelId) throws DatasourceServiceException
IDatasourceService
loadBusinessData
in interface IDatasourceService
domainId
- - ID of the domain to be generatedmodelId
- - ID of the model to be generated
DatasourceServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |